Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ tolist
Method
tolist
torch/_numpy/_ndarray.py:338–339 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
336
self.tensor.fill_(value)
337
338
def
tolist(self):
339
return
self.tensor.tolist()
340
341
def
__iter__(self):
342
return
(ndarray(x)
for
x in self.tensor.__iter__())
Callers
15
tensor_split
Function · 0.45
_tensor_to_half_val
Function · 0.45
_tensor_to_complex_val
Function · 0.45
_tensor_to_list
Function · 0.45
make_histogram
Function · 0.45
pr_curve_raw
Function · 0.45
pr_curve
Function · 0.45
_get_tensor_summary
Function · 0.45
__iter__
Method · 0.45
random_split
Function · 0.45
__iter__
Method · 0.45
__iter__
Method · 0.45
Calls
no outgoing calls
Tested by
2
test_3_level_hierarchical_model_averager
Method · 0.36
_test_send_recv_any_source
Method · 0.36