jax.pallas.tpu_sc.addupdate_scatter#
- jax.pallas.tpu_sc.addupdate_scatter(ref, indices, x, *, mask=None)[source]#
Scatters an array to a ref, atomically adding to existing values.
- Parameters:
ref (AbstractRef | TransformedRef) – The ref in
VMEMto scatter to.indices (Sequence[Array]) – A sequence of 1D arrays, one for each dimension of
ref. Each array specifies an index for that dimension. All arrays must have the same size.x (Array) – The array to add.
mask (Array | None) – An optional boolean array, which specifies which elements to add. If
None, all elements are added.
- Return type:
None