Commit 8c83b41
Support eval mode for st publish (#5085)
Summary:
Pull Request resolved: #5085
X-link: https://github.com/facebookresearch/FBGEMM/pull/2093
As title, in silvertorch bulk eval, they will not call eval() for the module but using torch.no_grad() to run. https://www.internalfb.com/code/fbsource/[324dbccd0ab0]/fbcode/dper_lib/silvertorch/core/publish/data_processing/bulk_eval_dmp_gpu.py?lines=1057 So set a eval mode to turn the self.training to False in tbe for bulk eval.
Reviewed By: emlin
Differential Revision: D86220286
fbshipit-source-id: 9a48c7b4dc09767c99a545d1f25e53bf4265079f1 parent 9df97a7 commit 8c83b41
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4762 | 4762 | | |
4763 | 4763 | | |
4764 | 4764 | | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
0 commit comments