Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert tensor to numpy array

#Tensor that don't requires grad.
tensor.numpy()
#Tensor that requires grad.
tensor.detach().numpy()
 
PREVIOUS NEXT
Tagged: #convert #tensor #numpy #array
ADD COMMENT
Topic
Name
4+2 =