I am trying to use capslayer in Tensorflow (1.4.0) estimator API. Everything works well when I train the model. But for prediction it doesn't work. I have copied most of the code from vectorCapsNet.py file and commented all image reconstruction related code. My model definition looks like this:
Error Description:
TypeError: Expected binary or unicode string, got None
During handling of the above exception, another exception occurred:
TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [None, 6, 6, 32, 8, 1]. Consider casting elements to a supported type.
(For second error it points to this line )
I am new to Tensorflow. But it seems I am getting [None, 6, 6] shaped output from conv1 layer defined in baseline function. If its supposed to be like that maybe we want to use this method for reshaping tensor?
I am trying to use capslayer in Tensorflow (1.4.0) estimator API. Everything works well when I train the model. But for prediction it doesn't work. I have copied most of the code from vectorCapsNet.py file and commented all image reconstruction related code. My model definition looks like this:
Error Description: TypeError: Expected binary or unicode string, got None During handling of the above exception, another exception occurred: TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [None, 6, 6, 32, 8, 1]. Consider casting elements to a supported type. (For second error it points to this line )
I am new to Tensorflow. But it seems I am getting [None, 6, 6] shaped output from
conv1
layer defined in baseline function. If its supposed to be like that maybe we want to use this method for reshaping tensor?