Skip to content

Commit

Permalink
change names
Browse files Browse the repository at this point in the history
  • Loading branch information
moskomule committed Feb 4, 2023
1 parent 791bd92 commit 6e9e8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dataset_distillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def outer_update(self) -> None:
implicit_grads = self.approx_ihvp(lambda i, o: self.inner_obj(i, o, in_input, in_target)[0],
lambda i, o: self.outer_obj(i, o, out_input, out_target)[0],
in_params, out_params)
self.outer_grad(implicit_grads)
self.outer_grad = implicit_grads
self.outer_optimizer.step()
self.outer.zero_grad(set_to_none=True)

Expand Down
2 changes: 1 addition & 1 deletion examples/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def outer_update(self) -> None:
lambda i, o: self.outer_obj(i, o, out_input, out_target)[0],
in_params, out_params)

self.outer_grad(implicit_grads)
self.outer_grad = implicit_grads
self.outer_optimizer.step()
self.outer.zero_grad(set_to_none=True)

Expand Down

0 comments on commit 6e9e8fd

Please sign in to comment.