jax.experimental.pallas.atomic_max#

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

原子地計算 x_ref_or_view[idx] = max(x_ref_or_view[idx], val)

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

  • idx – 要使用的索引器。

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

傳回:

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