You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function is already defined in `src/optimize_2d_momentum_bumpy_jax.py`. We dont have to find the gradient by hand!
47
-
Use `jax.grad`[(jax-documentation)](https://jax.readthedocs.io/en/latest/_autosummary/jax.grad.html) to compute the gradient automatically. Use the result to find the minimum using momentum.
46
+
The function is already defined in `src/optimize_2d_momentum_bumpy_torch.py`. We dont have to find the gradient by hand!
47
+
Use `torch.func.grad`[(torch-documentation)](https://pytorch.org/docs/stable/generated/torch.func.grad.html) to compute the gradient automatically. Use the result to find the minimum using momentum.
48
48
49
49
While coding use `nox -s test`, `nox -s lint`, and `nox -s typing` to check your code.
50
50
Autoformatting help is available via `nox -s format`.
0 commit comments