Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
saleml committed Apr 4, 2023
1 parent f8bdcbe commit b321daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ if __name__ == "__main__":
params = [
{
"params": [
val for key, val in parametrization.parameters.items() if key != "logZ"
val for key, val in parametrization.parameters.items() if "logZ" not in key
],
"lr": 0.001,
},
{"params": [parametrization.parameters["logZ"]], "lr": 0.1},
{"params": [val for key, val in parametrization.parameters.items() if "logZ" in key], "lr": 0.1},
]
optimizer = torch.optim.Adam(params)

Expand Down

0 comments on commit b321daf

Please sign in to comment.