MCPcopy Create free account
hub / github.com/OpenGVLab/EfficientQAT / __len__

Method __len__

datautils_block.py:258–259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 return os.path.join(self.cache_path, f"data_{idx}.pt")
257
258 def __len__(self):
259 return self.size//self.batch_size
260
261 def __getitem__(self, idx):
262 if idx >= self.__len__():

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected