ClikaRT::ops::any
function
any()
Tensor any(
Tensor x,
ClikaRT::Span<const std::int64_t> dims = {},
bool keepdim = false
)
True where ANY element over dims is nonzero (logical OR reduce).
Empty dims reduces every dimension. Output dtype is always Bool.
Parameters
x: the input tensor; any dtype (nonzero = true).dims: axes to reduce; empty = all axes.keepdim: keep reduced axes as size-1 dims; default false.
Returns: a Bool tensor; shape = x minus dims.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on an out-of-rangedimsentry.
Declared in ClikaRT/compute/ops.h, line 4212