Category "tensorflow2.x"

Issue with Tensorflow tensor and eager execution

I would like to convert a Tensorflow tensor into a numpy array. My code looks as follows: t = tf.gather_nd(angle, [1,1]) # extract row 1, column 1 element of an

run_eagerly=True make the training result different in Tensorflow 2.3.2

Recently I come across a strange question in Running Neural network code on Tensorflow 2.3.2. The question is that when I only changed run_eagerly=True to run_

Convert model.fit_generator to model.fit

I have codes in the following, train_datagen = ImageDataGenerator( rescale=1./255, shear_range=0.2, zoom_range=0.2, horizontal