Facing this issue while running the code
OperatorNotAllowedInGraphError: using a tf.Tensor
as a Python bool
is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.
Facing this issue while running the code
OperatorNotAllowedInGraphError: using a tf.Tensor
as a Python bool
is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.
Hey! What function are you having this issue in?
One common way to get that error on this assignment is shown on this other recent thread.
Here’s another thread that explains what is going on with a bit more context.
def convolution Model
Solved. Tysm paulinpaloalto. The set of parans.