Skip to content

Commit

Permalink
comment about user variables
Browse files Browse the repository at this point in the history
  • Loading branch information
goktug97 committed Apr 13, 2021
1 parent 64989cd commit 247cf19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ user_config = Config(default_config)
@user_config('optimizer')
class UserOptimizerConfig():
optim_type = torch.optim.Adam
# Users can add their own variables too
amsgrad: Condition[bool] = Condition(False, default_config.optimizer.optim_type == torch.optim.Adam)
nesterov: Condition[bool] = Condition(False, default_config.optimizer.optim_type == torch.optim.SGD)

Expand Down

0 comments on commit 247cf19

Please sign in to comment.