Method ReduceL2
ReduceL2(TensorFloat, ReadOnlySpan<int>, bool)
Reduces an input tensor along the given axes using the ReduceL2
operation: f(x1, x2 ... xn) = sqrt(x1² + x2² + ... + xn²).
Declaration
public TensorFloat ReduceL2(TensorFloat X, ReadOnlySpan<int> axes, bool keepdim)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
ReadOnlySpan<int> | axes | The axes along which to reduce. |
bool | keepdim | Whether to keep the reduced axes in the output tensor. |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |