Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ __iter__
Method
__iter__
imperative/python/megengine/data/sampler.py:98–99 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
96
self.rng = np.random.RandomState(seed)
97
98
def
__iter__(self) -> Union[Generator, Iterator]:
99
return
self.batch()
100
101
def
__len__(self) -> int:
102
if
self.drop_last:
Callers
nothing calls this directly
Calls
1
batch
Method · 0.95
Tested by
no test coverage detected