torch.distributions.sumRightmost function sumRightmost(value: Tensor, n: number): Tensor Sum out the rightmost n dimensions of a tensor. Parameters valueTensornnumber Returns Tensor