# Multiplication tensors element by element a = torch.tensor([1.,2., 3.]) b = torch.tensor([4., 4., 6.]) a.mul(b)