MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / sample

Method sample

imperative/python/megengine/data/sampler.py:107–109  ·  view source on GitHub ↗

r"""Return a list contains all sample indices.

(self)

Source from the content-addressed store, hash-verified

105 return int(math.ceil(self.num_samples / self.batch_size))
106
107 def sample(self):
108 r"""Return a list contains all sample indices."""
109 raise NotImplementedError
110
111 def scatter(self, indices) -> List:
112 r"""Scatter method is used for splitting indices into subset, each subset

Callers 1

batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected