-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make deprecated SurrogateSpec arguments InitVars (#3128)
Summary: Pull Request resolved: #3128 We do not want to keep the deprecated arguments as fields of the `SurrogateSpec`. We only convert them to `ModelConfig` in `__post_init__` and ignore them after. `InitVar` is the perfect tool for doing this. Keeping these as fields leads to issues in other diffs where the values of the deprecated attribute goes out of sync with the specified `ModelConfig`. Reviewed By: Balandat Differential Revision: D66553624 fbshipit-source-id: b598fe3fedc914a7e68fcf183386b8761cfd11fb
- Loading branch information
1 parent
326700d
commit a44cb2f
Showing
1 changed file
with
67 additions
and
56 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