ClikaRT::ops::norm
function
norm()
Tensor norm(
Tensor input,
Scalar p = 2.0,
ClikaRT::Span<const std::int64_t> dims = {},
bool keepdim = false
)
The p-norm of input over dims.
Empty dims reduces every dimension.
Parameters
input: the input tensor; float dtype.p: the norm degree, an int or floatScalar, kind-preserved; default 2 (Euclidean).dims: axes to reduce; empty = all axes.keepdim: keep reduced axes as size-1 dims; default false.
Returns: the norm values; shape = input minus dims.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on an out-of-rangedimsentry.
Declared in ClikaRT/compute/ops.h, line 4359