Function l0_norm
pub fn l0_norm<B, const D: usize, K>(
x: Tensor<B, D, K>,
dim: usize,
) -> Tensor<B, D, K>
Expand description
Computes the L0 norm of a tensor along a specified dimension.
§Arguments
x
- The input tensor.
dim
- The dimension to compute the norm over.
§Returns
The L0 norm of the input tensor.