Skip to content

Commit

Permalink
Fix wrong inplace keyword arg
Browse files Browse the repository at this point in the history
  • Loading branch information
obackhouse committed Sep 17, 2024
1 parent 76a9afe commit 7c63102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebcc/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def _put(
elif BACKEND == "jax":
if isinstance(indices, tuple):
indices_flat = np.ravel_multi_index(indices, array.shape)
array = np.put(array, indices_flat, values, inplace=True) # type: ignore
array = np.put(array, indices_flat, values, inplace=False) # type: ignore
else:
array = np.put(array, indices, values, inplace=True) # type: ignore
array = np.put(array, indices, values, inplace=False) # type: ignore
return array
elif BACKEND == "tensorflow":
if isinstance(indices, (tuple, list)):
Expand Down

0 comments on commit 7c63102

Please sign in to comment.