MCPcopy Create free account
hub / github.com/SpatialVLA/SpatialVLA / replace_train_sampler

Function replace_train_sampler

train/monkey_patch.py:178–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 return RandomSampler(self.train_dataset)
177
178def replace_train_sampler():
179 transformers.Trainer._get_train_sampler = _get_train_sampler
180 print('Replace train sampler!!')
181
182def get_train_dataloader(self) -> DataLoader:
183 """

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected