Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 26, 2024
1 parent 7f87209 commit e149772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/backend/jax/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def scatter(indices, values, shape):


def scatter_update(inputs, indices, updates):
inputs = jnp.array(inputs)
inputs = convert_to_tensor(inputs)
indices = jnp.array(indices)
indices = jnp.transpose(indices)
inputs = inputs.at[tuple(indices)].set(updates)
Expand Down

0 comments on commit e149772

Please sign in to comment.