MCPcopy Create free account
hub / github.com/TPCD/DCCL / __len__

Method __len__

project_utils/sampler.py:129–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 self.num_samples = len(self.pids)
128
129 def __len__(self):
130 return self.num_samples * self.num_instances
131
132 def __iter__(self):
133 indices = torch.randperm(len(self.pids)).tolist()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected