forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OptimItem in TBE codegen (pytorch#2518)
Summary: This diff abstracts the optimization arguments in TBE code generation scripts by introducing the `OptimizerArgsSetItem` dataclass. This allows us to avoid updating function and variable annotations every time we add or remove arguments from the optimizer args. Reviewed By: spcyppt Differential Revision: D56192736
- Loading branch information
1 parent
dbae12b
commit fe7e06c
Showing
3 changed files
with
206 additions
and
202 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
Oops, something went wrong.