Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipVinc committed Dec 20, 2021
1 parent fc30101 commit 25ba67c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netket/optimizer/qgt/qgt_onthefly.py
Expand Up @@ -49,7 +49,7 @@ def check(x, target):
)
)

jax.tree_multimap(check,x,target)
jax.tree_multimap(check, x, target)


def QGTOnTheFly(vstate=None, **kwargs) -> "QGTOnTheFlyT":
Expand Down Expand Up @@ -182,7 +182,7 @@ def onthefly_mat_treevec(
ravel_result = False

check_valid_vector_type(vec, S._params)

vec = nkjax.tree_cast(vec, S._params)

res = S._mat_vec(vec, S.diag_shift)
Expand All @@ -197,7 +197,7 @@ def onthefly_mat_treevec(
def _solve(
self: QGTOnTheFlyT, solve_fun, y: PyTree, *, x0: Optional[PyTree], **kwargs
) -> PyTree:

check_valid_vector_type(y, self._params)

y = nkjax.tree_cast(y, self._params)
Expand Down

0 comments on commit 25ba67c

Please sign in to comment.