e3x.ops.indexed.indexed_softmax

e3x.ops.indexed.indexed_softmax(inputs, multiplicative_mask=None, *, adj_idx=None, where=None, dst_idx=None, num_segments=None, indices_are_sorted=False, **_)[source]

Determines the softmax of inputs according to sparse or dense index lists.

Parameters:
Return type:

Union[Float[Array, '... N M'], Float[Array, '... P']]

Returns:

An array with the softmax values.

Raises:
  • RuntimeError – If neither dense nor sparse index lists are provided, or if both are provided.

  • ValueError – If the shape of multiplicative mask does not match the shape of inputs, or inputs are not floating point dtype.