Calculating accuracy of the current minibatch?

I know this is basic but it’s not fresh in my head. What is the mask suppose to stand for when they are predictions? is it 0-1 values? What is it suppose to mask off? Unwanted examples…?


@Ali_Amiri

can you comment on the true.argmax(-1)? What does the -1 do? ----- hopefully answer will be here someday: Argmax with PyTorch