MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / __len__

Method __len__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected