Skip to content

Commit

Permalink
update: visualize_optimizers
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jul 7, 2024
1 parent a268d8e commit ffda903
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/visualize_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def execute_experiments(


def main():
# referred https://github.com/jettify/pytorch-optimizer/blob/master/examples/viz_optimizers.py

np.random.seed(42)
torch.manual_seed(42)

Expand Down Expand Up @@ -180,3 +182,7 @@ def main():
root_path,
'rosenbrok',
)


if __name__ == '__main__':
main()

0 comments on commit ffda903

Please sign in to comment.