My code is distributed across several files and functions and so it is not practical to refer to it over here. I think, I can solve it on my own if I understand eager execution and tf.function very well. Could someone help me here with the following queries ?
- Does @tf.function decorator work only when eager execution is disabled ?
- What is the relationship between @tf.function decorator and eager mode of execution ?
- How does TensorFlow switch between eager mode and non-eager mode internally ? When I disable eager execution, and I have some error in my code, I still get reference to files which suggest to me that eager execution might be happening internally.