udacity / deep-learning-v2-pytorch

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101
MIT License
5.31k stars 5.33k forks source link

Part 5 : Inferences and Validation #220

Closed andrewng88 closed 3 years ago

andrewng88 commented 4 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).

Thanks

abhiojha8 commented 3 years ago

Though we are a little late to respond, we suggest you reach out to Udacity support for user-specific issues. Thanks