When I load the checkpoint to evaluate the model and without using these operations, I got this error:
UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `lr_scheduler.step()’

before printing the performance. So, I tried to execute them as in training prosses.
test_pred = model(test_data)
optimizer.zero_grad()

test_loss = model_fit(test_pred, test_label)
optimizer.step()

Doing this removes the warning error but the results seem to be similar. So, do I ignore the warning message or keep using these operations?