DLS course 4 CNN- Week 1 assignment 2- Application of CNN models

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.

1 Like