Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

turn list of tensors into tensor pytorch

# list of tensors
x = [tensor([...]), 
	tensor([...]), 	
    tensor([...])]
# tensor    
x = torch.cat(x)
 
PREVIOUS NEXT
Tagged: #turn #list #tensors #tensor #pytorch
ADD COMMENT
Topic
Name
1+2 =