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

Method __init__

SwissArmyTransformer/tests/test_train_dp.py:98–100  ·  view source on GitHub ↗
(self, process_fn=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

96
97class FakeDataset(TensorDataset):
98 def __init__(self, process_fn=None, *args, **kwargs):
99 super().__init__(*args, **kwargs)
100 self.process_fn = process_fn
101
102 def __getitem__(self, idx):
103 return self.process_fn(super().__getitem__(idx))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected