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

Method _get_file_path

datautils_block.py:255–256  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

253 torch.save(tensor, filepath)
254
255 def _get_file_path(self, idx):
256 return os.path.join(self.cache_path, f"data_{idx}.pt")
257
258 def __len__(self):
259 return self.size//self.batch_size

Callers 3

__getitem__Method · 0.95
update_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected