jax.experimental.pallas.atomic_and#

jax.experimental.pallas.atomic_and(x_ref_or_view, idx, val, *, mask=None)[原始碼]#

原子地計算 x_ref_or_view[idx] &= val

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

  • idx – 要使用的索引器。

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

回傳:

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