Skip to content
New issue

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

Get error converting this basic model #119

Open
EricTheRed20 opened this issue Jun 30, 2021 · 2 comments
Open

Get error converting this basic model #119

EricTheRed20 opened this issue Jun 30, 2021 · 2 comments

Comments

@EricTheRed20
Copy link

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")
@Levon-Wild
Copy link

I got the same issue...

@Levon-Wild
Copy link

There is a solution I founded. It works to me.
https://www.olvidarkaka.com/contents/2403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants