Tensor
[self] add(tensor)
Add the given tensor to self. The number of elements must match, but sizes do not matter.
tensor
> x = torch.Tensor(2,2):fill(2) > y = torch.Tensor(4):fill(3) > x:add(y) > = x 5 5 5 5 [torch.Tensor of dimension 2x2]