MCPcopy Create free account
hub / github.com/LeapLabTHU/DAT / __len__

Method __len__

data/samplers.py:27–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 return (self.indices[i] for i in torch.randperm(len(self.indices)))
26
27 def __len__(self):
28 return len(self.indices)
29
30 def set_epoch(self, epoch):
31 self.epoch = epoch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected