Code QuizIntermediate

Dropout Behavior During Evaluation

Find why this evaluation gives unstable predictions.

Codepython
model.train()
with torch.no_grad():
    preds = model(x_test)   # model has Dropout layers
accuracy = compute_acc(preds, y_test)

What is the bug in this evaluation code?