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

Method __getitem__

SwissArmyTransformer/tests/test_train_nested.py:102–103  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

100 self.process_fn = process_fn
101
102 def __getitem__(self, idx):
103 return self.process_fn(super().__getitem__(idx))
104
105def create_dataset_function(path, args):
106 num_samples = 100000

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected