-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix transforms in parameter wrapped objects not following modes (#514)
Summary: Pull Request resolved: #514 Models (and maybe some generators) can change modes (`model.train()` and `model.eval()`). When parameter wrapped, these are still possible but the transforms do not follow the mode. For base objects that cannot change modes, we just modify the transform. Reviewed By: crasanders Differential Revision: D68033333 fbshipit-source-id: d0eaec89322a2cd1db43eb1b5d4b20bd5611e089
- Loading branch information
1 parent
85c97e2
commit 126d286
Showing
2 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters