DeepLearning.AI
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
Course Q&A
Deep Learning Specialization
Convolutional Neural Networks
TimoteiBidila
June 29, 2021, 5:32pm
4
Hello! Can you please explain how you solved the error? I am encountering it too.
1 Like
DLS course 4 CNN- Week 1 assignment 2- Application of CNN models
show post in topic
Related topics
Topic
Replies
Views
Activity
Week 1 Assignment 2 Exercise 2 OperatorNotAllowedInGraphError in ReLU
Convolutional Neural Networks
2
589
November 6, 2022
Help to solve my error in Course 4:Week1, Assignment2, Exercise 2
Convolutional Neural Networks
5
635
October 14, 2021
DLS course 4 CNN- Week 1 assignment 2- Application of CNN models
Convolutional Neural Networks
4
825
July 1, 2021
ะก4 -CNN-W1-CNNApp: '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'
Convolutional Neural Networks
2
685
October 15, 2021
DLS_C4_W1_Assign2_Exercise 2 - convolutional_model
Convolutional Neural Networks
4
789
December 12, 2022