Skip to main content

//clika-runtime/io.clika.runtime/Ops/any

any

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

any(input: Tensor, dims: LongArray = longArrayOf(), keepdim: Boolean = false): the any operator. True where ANY element over dims is nonzero (logical OR 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.