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

Method __init__

train/monkey_patch.py:345–351  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

343
344class ProfilerTrainer(Trainer):
345 def __init__(self, *args, **kwargs):
346 super().__init__(*args, **kwargs)
347 self.profiler = torch.profiler.profile(
348 schedule=torch.profiler.schedule(wait=2, warmup=2, active=4),
349 on_trace_ready=torch.profiler.tensorboard_trace_handler("./profiler_output")
350 )
351 self.profiler.__enter__()
352
353 def training_step(self, model, inputs):
354 output = super().training_step(model, inputs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected