MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / __iter__

Method __iter__

seq2seq/utils.py:342–343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 return len(self.data)
341
342 def __iter__(self):
343 return iter(sortish_sampler_indices(self.data, self.bs, shuffle=self.shuffle))
344
345
346def sortish_sampler_indices(data: List, bs: int, shuffle=True) -> np.array:

Callers

nothing calls this directly

Calls 1

sortish_sampler_indicesFunction · 0.85

Tested by

no test coverage detected