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

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. #31

Open
Ajith61 opened this issue Feb 21, 2022 · 0 comments

Comments

@Ajith61
Copy link

Ajith61 commented Feb 21, 2022

Warning (from warnings module):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\backend.py", line 414
warnings.warn('tf.keras.backend.set_learning_phase is deprecated and '
UserWarning: tf.keras.backend.set_learning_phase is deprecated and will be removed after 2020-10-11. To update it, simply pass a True/False value to the training argument of the __call__ method of your layer or model.
WARNING:tensorflow:No training configuration found in the save file, so the model was not compiled. Compile it manually.
Traceback (most recent call last):
File "E:\PYTHON\KERAS TO TF NCS\Keras_to_TF_NCS2-master\keras_to_tf.py", line 43, in
output_names=[out.op.name for out in model.outputs])
File "E:\PYTHON\KERAS TO TF NCS\Keras_to_TF_NCS2-master\keras_to_tf.py", line 43, in
output_names=[out.op.name for out in model.outputs])
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\engine\keras_tensor.py", line 233, in op
raise TypeError('Keras symbolic inputs/outputs do not '
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.

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

1 participant