Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

torch print full tensor

torch.set_printoptions(profile="full")
print(x) # prints the whole tensor
torch.set_printoptions(profile="default") # reset
print(x) # prints the truncated tensor
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #torch #print #full #tensor
ADD COMMENT
Topic
Name
4+6 =