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

trainer.py #2

Open
diangu001 opened this issue Jun 14, 2023 · 1 comment
Open

trainer.py #2

diangu001 opened this issue Jun 14, 2023 · 1 comment

Comments

@diangu001
Copy link

TypeError: Cannot convert a symbolic Keras input/output to a numpy array. This error may indicate that you're trying to pass a symbolic value to a NumPy call, which is not supported. Or, 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.

@EdwardFerdian
Copy link
Owner

Either remove the @tf.function decorator from the training and test step or disable_eager_execution.
Please refer to this post https://stackoverflow.com/questions/69033906/tensorflow-model-fit-format-data-correctly-typeerror-cannot-convert-a-symbol

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