Dls course 2 week 3 problem

Error occured when solving one hot matrx please help

Hi @Sudipta_Mukherjee1

Are you using tf.one_hot(labels, depth, axis=0)
before passing it to the reshape() function?

Section 2.3 Using one hot encoding and the implementation instruction are there to help you with this exercise.

i have solved it thank you