Tensor.mean([dim]), Tensor.std([dim]), and Tensor.var([dim]) for mean, standard deviation, and variance optionally along an axis (dim).
>>> import torch
>>> x = torch.Tensor([[0, 1], [2, 3]])
>>> x.mean(dim=1)
 0.5000
 2.5000
[torch.FloatTensor of size 2]
>>> x.std(dim=1)
 0.7071
 0.7071
[torch.FloatTensor of size 2]