ClikaRT::ops::prod
function
prod()
Tensor prod(
Tensor input,
ClikaRT::Span<const std::int64_t> dims = {},
bool keepdim = false,
DataType dtype = DataType::Undefined
)
Product of input's elements over dims.
Empty dims multiplies every element. dtype widens the accumulation/output when set; the default keeps input's dtype.
Parameters
input: the input tensor.dims: axes to reduce; empty = all axes.keepdim: keep reduced axes as size-1 dims; default false.dtype: output dtype;Undefinedkeepsinput's dtype.
Returns: the reduced product; shape = input minus dims.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on an out-of-rangedimsentry.
Declared in ClikaRT/compute/ops.h, line 4425