Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

view(-1 1) pytorch

view is similar to numpy's reshape
"view" shares the underlying data with the original tensor, so it is really
a view into the old tensor instead of creating a brand new one
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pytorch
ADD COMMENT
Topic
Name
2+3 =