Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by discuss.pytorch.org #
 
PREVIOUS NEXT
Tagged: #pytorch #multiply #tensors #element #elementwise
ADD COMMENT
Topic
Name
2+6 =