jax.lax.reduce_xor#
- jax.lax.reduce_xor(operand, axes)[源代码]#
计算一个或多个数组轴上元素的按位异或。
- 参数:
operand (ArrayLike) – 用于计算缩减的数组。必须具有布尔或整数 dtype。
axes (Sequence[int]) – 零个或多个唯一整数的序列,指定要在其上进行缩减的轴。 每个条目必须满足
0 <= axis < operand.ndim
。
- 返回:
与
operand
具有相同 dtype 的数组,其形状对应于operand.shape
的维度,并删除了axes
。- 返回类型:
另请参阅
jax.numpy.bitwise_xor.reduce()
:更灵活的 NumPy 风格逻辑缩减 API,围绕jax.lax.reduce_xor()
构建。其他底层
jax.lax
缩减运算符:jax.lax.reduce_sum()
、jax.lax.reduce_prod()
、jax.lax.reduce_max()
、jax.lax.reduce_min()
、jax.lax.reduce_and()
、jax.lax.reduce_or()
。