MrEliptik/Keras_to_TF_NCS2

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.

Opened this issue · 0 comments

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.