You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there are cases where it should be used in eval mode during training (e.g. the teacher model in knowledge distillation), and in those cases it should not update the running statistics.
I suggest that we add something to allow rf.BatchNorm (and maybe other modules with similar issues, but I don't know yet) to run in eval mode even in training.
The text was updated successfully, but these errors were encountered:
Currently
rf.BatchNorm
decides whether to update the running statistics based on therf.get_run_ctx().train_flag
as in this line.However, there are cases where it should be used in eval mode during training (e.g. the teacher model in knowledge distillation), and in those cases it should not update the running statistics.
I suggest that we add something to allow
rf.BatchNorm
(and maybe other modules with similar issues, but I don't know yet) to run in eval mode even in training.The text was updated successfully, but these errors were encountered: