Closed andrewng88 closed 3 years ago
https://i.imgur.com/ffUKixU.png
Based on this image, I don't quite understand the
equals = top_class == labels.view(*top_class.shape)
part.
The labels.view(-1,64) method will be able to support broadcasting and end shape is 64,64 whereas when we use .view(*top_class.shape) it is still (64,1).
labels.view(-1,64)
.view(*top_class.shape)
Thanks
Though we are a little late to respond, we suggest you reach out to Udacity support for user-specific issues. Thanks
https://i.imgur.com/ffUKixU.png
Based on this image, I don't quite understand the
equals = top_class == labels.view(*top_class.shape)
part.
The
labels.view(-1,64)
method will be able to support broadcasting and end shape is 64,64 whereas when we use.view(*top_class.shape)
it is still (64,1).Thanks