Skip to main content

//clika-runtime/io.clika.runtime/Ops/all

all

[common]
fun all(input: Tensor, dims: LongArray = longArrayOf(), keepdim: Boolean = false): Tensor

all(input: Tensor, dims: LongArray = longArrayOf(), keepdim: Boolean = false): the all operator. True where EVERY element over dims is nonzero (logical AND reduce). Empty dims reduces every dimension. Output dtype is always Bool. An element is nonzero exactly when its Bool cast is true: +0 and -0 are zero; a subnormal, an infinity and a NaN are nonzero.