-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put input transforms into train mode before converting models (#1283)
Summary: Pull Request resolved: #1283 Fixes #1273 During model construction, input transforms should be in `train` mode (so that they only apply if `transform_on_train` is true). Having the input transforms in eval mode leads to buggy behavior due to `transformed_X` getting transformed when it shouldn't. Reviewed By: Balandat Differential Revision: D37542474 fbshipit-source-id: 7986829612f857995997036f9c48cbeb56d75ceb
- Loading branch information
1 parent
7ce7c6d
commit a675968
Showing
2 changed files
with
40 additions
and
5 deletions.
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