Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/pytorch
/ __iter__
Method
__iter__
torch/_numpy/_ndarray.py:341–342 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
339
return
self.tensor.tolist()
340
341
def
__iter__(self):
342
return
(ndarray(x)
for
x in self.tensor.__iter__())
343
344
def
__str__(self):
345
return
(
Callers
nothing calls this directly
Calls
1
ndarray
Class · 0.85
Tested by
no test coverage detected