pub fn dot_along_dim<T, U>(
src: &Tensor<T, CpuBackend>,
scalars: &Tensor<U, CpuBackend>,
dim: usize,
) -> Tensor<U, CpuBackend>Expand description
Compute the dot product of a tensor with a scalar tensor along a given dimension.
This scalar tensor is assumed to be a 1D tensor, which is any tensor of a shape
[len, 1, 1, 1,..].