Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

concat tensors pytorch

x = torch.randn(2, 3)
y = torch.randn(2, 3)
# concat x and y
result = torch.cat((x, y), 0)
 
PREVIOUS NEXT
Tagged: #concat #tensors #pytorch
ADD COMMENT
Topic
Name
8+3 =