-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tutorial_How_to_optimize_QML_model_using_JAX_and_Optax.py (#1052)
Solving issue #1045 As indicated in the issue, the optimizer being used within the `update_step_jit` function is not the one defined in the `optimization_jit` function. I tried to pass `opt` but it gave problems so I simply defined the optimizer outside. In the case where jit is not being applied, I was able to pass the optimizer, so I updated those functions. Tagging @josh146 in case there is a better solution in this case --------- Co-authored-by: Josh Izaac <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters