MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __enter__

Method __enter__

trainer/base_trainer.py:372–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

370 return self.end_time - self.start_time
371
372 def __enter__(self):
373 torch.cuda.synchronize()
374 self.start_time = time()
375 return self
376
377 def __exit__(self, exc_type, exc_val, exc_tb):
378 torch.cuda.synchronize()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected