MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __len__

Method __len__

SwissArmyTransformer/sat/data_utils/datasets.py:64–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.bin = np.memmap(path, dtype=self.dtype, shape=(flen // length_per_sample, length_per_sample))
63
64 def __len__(self):
65 return self.bin.shape[0]
66
67 def __getitem__(self, index):
68 return self.process_fn(self.bin[index])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected