Error in one_hot_matrix_test

Capture.JPG11


I cant grasp the error

If you read the docs at tf.reshape  |  TensorFlow Core v2.5.0, you will see that the method is called like this :slight_smile: :

t1 = [[1, 2, 3],
      [4, 5, 6]]
print(tf.shape(t1).numpy())

t2 = tf.reshape(t1, [6])
t2


tf.reshape(t2, [3, 2])

Thank you so much, sir! I overlooked the basic it seems :sweat_smile:

1 Like