jax.pallas.tpu_sc.Indices

jax.pallas.tpu_sc.Indices#

class jax.pallas.tpu_sc.Indices(values, ignored_value=None)[source]#

Indices for a gather or a scatter on SparseCore.

Parameters:
  • values (Any)

  • ignored_value (int | None)

values#

The values of the indices. Can be an array or a ref.

Type:

Any

ignored_value#

If not None, the indices with this value will be ignored.

Type:

int | None

__init__(values, ignored_value=None)#
Parameters:
  • values (Any)

  • ignored_value (int | None)

Return type:

None

Methods

__init__(values[, ignored_value])

pretty_print(context, *[, print_dtype])

Attributes