You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One minor typo. An example code in Efficient Memory Management section on the latest documentation has a typo. After narrow operation, the output should be as follows according to the source.
>>> x.narrow(0, 1, 2).fill_(1)
>>> # narrow() returns a Tensor referencing the same Storage as x
>>> print(x)
0
1
1
0
0
One minor typo. An example code in Efficient Memory Management section on the latest documentation has a typo. After
narrowoperation, the output should be as follows according to the source.