jax.experimental.pallas.atomic_or#

jax.experimental.pallas.atomic_or(x_ref_or_view, idx, val, *, mask=None)[source]#

原子性地計算 x_ref_or_view[idx] |= val

參數:
  • x_ref_or_view – 要操作的 ref。

  • idx – 要使用的索引器。

  • mask (Any | None | None) – 待文件化。

返回值:

原子操作前,給定索引處的值。