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

[mnist_mlp_exercise] Remove Redundant np.sum() on a single cell #224

Closed AlirezaSaberi closed 3 years ago

AlirezaSaberi commented 4 years ago

class_correct[i] is a single cell and there is no need to be wrapped in np.sum(). I tested the output with the change to make sure it works.