In the exercise 2 where we are supposed to build the convolutional model using the functional fashion. I tried my best to follow all the instructions and build my model but I see that this error persists.
"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."
I wouldn’t be able to post my code here since its againt the honor code but if anyone faced the same issue could you please help me out solving this.
Thankyou
Hi @ankitha_rkr,
Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
Thanks,
Mubsi
Yes @Mubsi , My lab ID is mycpqrto.
Thanks for your help,
Ankitha
That error message has been seen before. Here’s a previous thread which discusses the type of mistake that causes that error.
Hi @ankitha_rkr,
@paulinpaloalto has shared a topic which should help you sort out your issue. Try that first. If any error still remains after, then I shall take a look at your notebook.
Thanks for sharing it @paulinpaloalto !
Best,
Mubsi
Thank you @paulinpaloalto this helped me get rid of the error and you have also given the explanation for it precisely and that cleared my doubt.
Thankyou @Mubsi for your initiation to clear my doubt. and yes this worked for me
Best,
Ankitha