Tensor
[self] cmul(tensor)
Element-wise multiplication of tensor by 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:cmul(y) > = x 6 6 6 6 [torch.Tensor of dimension 2x2]