Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

extract value from tensor pytorch

x = torch.tensor([3])
x.item()
 
PREVIOUS NEXT
Tagged: #extract #tensor #pytorch
ADD COMMENT
Topic
Name
8+5 =