Open 1996hxr opened 4 years ago
in line 203 flip = tf.cast(tf.random.uniform(shape=[1, ], minval=0, maxval=2, dtype=tf.int32), dtype=tf.bool).numpy()[0] AttributeError: 'Tensor' object has no attribute 'numpy'
hey bro, do you konw how to solve this problem?
Same problem as @NEUOrangeCat
In line 200 def load_data(image_path, labels): flip = tf.cast(tf.random.uniform(shape[1,],minval=0,maxval=2,dtype=tf.int32),dtype=tf.bool).numpy()[0] return get_image(image_path), flip_labels(labels)#don't define flip_labels()?