-
Notifications
You must be signed in to change notification settings - Fork 533
Open
Description
When I create the following model file and then try to convert it, I get an error:-
"TypeError: Keras symbolic inputs/outputs do not implement op
. You may be trying to pass Keras symbolic inputs/outputs to a TF API that does not register dispatching, preventing Keras from automatically converting the API call to a lambda layer in the Functional Model."
Am I doing something wrong is is it a bug?
from keras.models import Model
from keras.models import Input
from keras.layers import Conv2D
# Build the model (this is a minimalist version of a much bigger model)
in_image = Input(shape=(256,256,3))
out_image = Conv2D(512, (4,4))(in_image)
model = Model(in_image, out_image)
model.compile()
# Save the model file
model.save("test_model.h5") #, include_optimizer=True
print("Saved OK")
Metadata
Metadata
Assignees
Labels
No labels