jax.experimental.pallas.atomic_xchg# jax.experimental.pallas.atomic_xchg(x_ref_or_view, idx, val, *, mask=None)[源代码]# 原子性地将给定值与给定索引处的值交换。 参数: x_ref_or_view – 要操作的 ref。 idx – 要使用的索引器。 mask (Any | None | None) – 待撰写文档。 返回: aupdate 之前给定索引处的值。