jax.lax.reduce_and#

jax.lax.reduce_and(operand, axes)[源代码]#

计算一个或多个数组轴上元素的按位与。

参数:
  • operand (ArrayLike) – 要在其上计算归约的数组。必须具有布尔型或整型 dtype。

  • axes (Sequence[int]) – 指定要在其上进行归约的轴的零个或多个唯一整数的序列。每个条目必须满足 0 <= axis < operand.ndim

返回:

operand 具有相同 dtype 的数组,其形状对应于 operand.shape 的维度,并移除了 axes

返回类型:

Array

参见