We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing the model using tensorflow and keras gives me the following error:
NameError Traceback (most recent call last) in () ----> 1 model = tf.keras.models.load_model('model.h5')
12 frames /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/core.py in (x) 680 681 def compute_output_shape(self, input_shape): --> 682 input_shape = tensor_shape.as_shape(input_shape).as_list() 683 if not input_shape: 684 output_shape = tensor_shape.TensorShape([1])
NameError: name 'customPooling' is not defined
The text was updated successfully, but these errors were encountered:
I think you will need to save the customPooling layer as custom object while saving your model. See below link for help: https://www.tensorflow.org/guide/keras/save_and_serialize
customPooling
Sorry, something went wrong.
No branches or pull requests
Importing the model using tensorflow and keras gives me the following error:
NameError Traceback (most recent call last)
in ()
----> 1 model = tf.keras.models.load_model('model.h5')
12 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/layers/core.py in (x)
680
681 def compute_output_shape(self, input_shape):
--> 682 input_shape = tensor_shape.as_shape(input_shape).as_list()
683 if not input_shape:
684 output_shape = tensor_shape.TensorShape([1])
NameError: name 'customPooling' is not defined
The text was updated successfully, but these errors were encountered: