MCPcopy Create free account
hub / github.com/THUDM/GLM / __len__

Method __len__

data_utils/samplers.py:75–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 yield from torch.randperm(n, generator=self.generator).tolist()
74
75 def __len__(self):
76 return self.num_samples
77
78 def set_epoch(self, epoch):
79 self.epoch = epoch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected