Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

torch concat matrix

third_tensor = torch.cat((first_tensor, second_tensor), 0) # keep column width append in rows

third_tensor = torch.cat((first_tensor, second_tensor), 1) # keep row height and append in columns
Source by discuss.pytorch.org #
 
PREVIOUS NEXT
Tagged: #torch #concat #matrix
ADD COMMENT
Topic
Name
6+3 =