MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __len__

Method __len__

utils/dataset_open.py:125–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 self.keys = loads_pyarrow(txn.get(b'__keys__'))
124
125 def __len__(self):
126 return self.length
127
128 def __getitem__(self, index):
129 # Delay loading LMDB data until after initialization: https://github.com/chainer/chainermn/issues/129

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected