You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to reload the model after saving it. I used the same code as the test.py and the command for saving is the same as what you posted. The tensorflow version is 1.14.0 and Keras-application is 1.0.8. Thank you for your help!
The error message is as following:
`rbfnet = load_model("test_rbf.h5", custom_objects={'RBFLayer': RBFLayer})
~\anaconda3\lib\site-packages\tensorflow\python\framework\tensor_util.py in make_tensor_proto(values, dtype, shape, verify_shape, allow_broadcast)
560 raise TypeError("Failed to convert object of type %s to Tensor. "
561 "Contents: %s. Consider casting elements to a "
--> 562 "supported type." % (type(values), values))
563 tensor_proto.string_val.extend(str_values)
564 return tensor_proto
TypeError: Failed to convert object of type <class 'tuple'> to Tensor. Contents: (10, Dimension(1)). Consider casting elements to a supported type.
`
The text was updated successfully, but these errors were encountered:
I was trying to reload the model after saving it. I used the same code as the test.py and the command for saving is the same as what you posted. The tensorflow version is 1.14.0 and Keras-application is 1.0.8. Thank you for your help!
The error message is as following:
`rbfnet = load_model("test_rbf.h5", custom_objects={'RBFLayer': RBFLayer})
~\anaconda3\lib\site-packages\tensorflow\python\framework\tensor_util.py in make_tensor_proto(values, dtype, shape, verify_shape, allow_broadcast)
560 raise TypeError("Failed to convert object of type %s to Tensor. "
561 "Contents: %s. Consider casting elements to a "
--> 562 "supported type." % (type(values), values))
563 tensor_proto.string_val.extend(str_values)
564 return tensor_proto
TypeError: Failed to convert object of type <class 'tuple'> to Tensor. Contents: (10, Dimension(1)). Consider casting elements to a supported type.
`
The text was updated successfully, but these errors were encountered: