MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __len__

Method __len__

DeepSpeedExample/megatron/data/samplers.py:71–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected