torch.add(input, value=1, other, out=None)
Each element of the Tensor other is multiplied by the scalar value and added to each element of the Tensor input. The resulting Tensor is returned.
The shapes of input and other must be broadcastable.
out=input+(other∗value)
If other is of type FloatTensor or DoubleTensor, value must be a real number, otherwise it should be an integer.
http://pytorch.org/docs/master/torch.html 85