pytorch element wise matrix multiplication code example
Example: pytorch multiply tensors element by elementwise
# Multiplication tensors element by element
a = torch.tensor([1.,2., 3.])
b = torch.tensor([4., 4., 6.])
a.mul(b)
# Multiplication tensors element by element
a = torch.tensor([1.,2., 3.])
b = torch.tensor([4., 4., 6.])
a.mul(b)