-
Notifications
You must be signed in to change notification settings - Fork 266
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: Using a tf.Tensor
as a Python bool
is not allowed.
#57
Comments
tf.Tensor
as a Python bool
is not allowed. Use if t is not None:
instead of if t:
to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.tf.Tensor
as a Python bool
is not allowed.
TypeError: Using a |
maybe you can change |
did you manage to find a solution to this issue? I am having the same problem with the latest TF unfortunately. |
getting the same error here for TF v2.0.0 cant seem to find a solution. anyone? |
you need to rebuild it with setup.py before run the script |
The text was updated successfully, but these errors were encountered: