Pytorch example. Reshape(-1,1). сумма элементов тензора pytorch. из list в torch tensor.