I\'m using the following custom training code in TensorFlow 2:
def parse_function(filename, filename2): image = read_image(fn) def ret1(): return ima
In case you are using Jupyter notebook after
import tensorflow as tf tf.enable_eager_execution()
You need to restart the kernel and it works