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

Method __len__

project_utils/data_utils.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 self.iter = None
22
23 def __len__(self):
24 if self.length is not None:
25 return self.length
26
27 return len(self.loader)
28
29 def new_epoch(self):
30 self.iter = iter(self.loader)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected