Dear Instructor,
In one_hot_matrix function, what would be the second dimension of tf.reshape(). One is the depth that is 6.
Thank you so much for your help.
Best regards,
Sunita
Dear Instructor,
In one_hot_matrix function, what would be the second dimension of tf.reshape(). One is the depth that is 6.
Thank you so much for your help.
Best regards,
Sunita
There is one example in the same notebook. Please see βdef normalize(image):β function.
This routine convert a (64,64,3) tensor to a (64x64x3,) tensor. See what tf.reshape() does.
β-1β is a special value. Tensor flow automatically calculates the size to keep the total size.
In your case, you can specify βdepthβ or β-1β. Either should be fine. Then, use the same syntax to specify the shape.