Skip to main content

sum_tensor_dim

Function sum_tensor_dim 

Source
pub fn sum_tensor_dim<T: Field>(
    src: &Tensor<T, CpuBackend>,
    dim: usize,
) -> Tensor<T, CpuBackend>
Expand description

Computes the sum of the tensor along a dimension.