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

Method __len__

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

Source from the content-addressed store, hash-verified

337 self.data, self.bs, self.shuffle = data, batch_size, shuffle
338
339 def __len__(self) -> int:
340 return len(self.data)
341
342 def __iter__(self):
343 return iter(sortish_sampler_indices(self.data, self.bs, shuffle=self.shuffle))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected