mirror of
https://github.com/ROCm/jax.git
synced 2025-04-24 23:46:05 +00:00
Update scatter.py
Looks like the documentation was not up to date
This commit is contained in:
parent
11d6f239fd
commit
3bc34e4f5a
@ -207,8 +207,8 @@ def index_min(x, idx, y, indices_are_sorted=False, unique_indices=False):
|
||||
:data:`jax.ops.index` object.
|
||||
y: the array of updates. `y` must be broadcastable to the shape of the
|
||||
array that would be returned by `x[idx]`.
|
||||
indices_are_sorted: whether `scatter_indices` is known to be sorted
|
||||
unique_indices: whether `scatter_indices` is known to be free of duplicates
|
||||
indices_are_sorted: whether `idx` is known to be sorted
|
||||
unique_indices: whether `idx` is known to be free of duplicates
|
||||
|
||||
Returns:
|
||||
An array.
|
||||
@ -246,8 +246,8 @@ def index_max(x, idx, y, indices_are_sorted=False, unique_indices=False):
|
||||
:data:`jax.ops.index` object.
|
||||
y: the array of updates. `y` must be broadcastable to the shape of the
|
||||
array that would be returned by `x[idx]`.
|
||||
indices_are_sorted: whether `scatter_indices` is known to be sorted
|
||||
unique_indices: whether `scatter_indices` is known to be free of duplicates
|
||||
indices_are_sorted: whether `idx` is known to be sorted
|
||||
unique_indices: whether `idx` is known to be free of duplicates
|
||||
|
||||
Returns:
|
||||
An array.
|
||||
@ -286,8 +286,8 @@ def index_update(x, idx, y, indices_are_sorted=False, unique_indices=False):
|
||||
:data:`jax.ops.index` object.
|
||||
y: the array of updates. `y` must be broadcastable to the shape of the
|
||||
array that would be returned by `x[idx]`.
|
||||
indices_are_sorted: whether `scatter_indices` is known to be sorted
|
||||
unique_indices: whether `scatter_indices` is known to be free of duplicates
|
||||
indices_are_sorted: whether `idx` is known to be sorted
|
||||
unique_indices: whether `idx` is known to be free of duplicates
|
||||
|
||||
Returns:
|
||||
An array.
|
||||
|
Loading…
x
Reference in New Issue
Block a user