Skip to content

Commit

Permalink
Don't set immutable when loading config (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna authored Feb 5, 2020
1 parent e650a10 commit a52d85b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class LeNet(nn.Module):

def main():
config = mlconfig.load('config.yaml')
config.set_immutable()

model = config.model()
optimizer = config.optimizer(model.parameters())
Expand Down
1 change: 0 additions & 1 deletion mlconfig/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def load(f_or_dict, replace_values=True):
data = _replace(data)

config = Config(data)
config.set_immutable()
return config


Expand Down

0 comments on commit a52d85b

Please sign in to comment.