Skip to content

eval_model function results differ from test_step function. #1040

Answered by SailSabnis
SailSabnis asked this question in Q&A
Discussion options

You must be logged in to vote

FIgured it out. In my eval_model function -

model_loss /= len(dataloader)
model_acc /= len(dataloader)

should be outside the for loop.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrdbourke
Comment options

Answer selected by SailSabnis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants