MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / __init__

Method __init__

utils/train.py:63–68  ·  view source on GitHub ↗
(self, beta=0.6)

Source from the content-addressed store, hash-verified

61
62class gpu_timer:
63 def __init__(self, beta=0.6) -> None:
64 self.start_time = None
65 self.stop_time = None
66 self.mean_time = None
67 self.beta = beta
68 self.first_call = True
69
70 def start(self):
71 torch.cuda.synchronize()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected