MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __len__

Method __len__

SwissArmyTransformer/sat/data_utils/samplers.py:69–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return iter(torch.randperm(n, generator=g).tolist())
68
69 def __len__(self):
70 return self.num_samples
71
72 def set_epoch(self, epoch):
73 self.epoch = epoch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected