Hi there,
Consider the following circumstance:
model.eval()
y = model(x)
loss = criterion(y, label)
# backward() and step() the loss, abbreviate.
I just want to calculate the gradient and update parameters when things like BN and Dropouts are disabled. Are there any potential issues here?
Thanks~