MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / reset

Method reset

deepspeed/utils/timer.py:86–92  ·  view source on GitHub ↗

Reset timer.

(self)

Source from the content-addressed store, hash-verified

84 self.read_pending = False
85
86 def reset(self):
87 """Reset timer."""
88 self.started_ = False
89 self.read_pending = False
90 self.latest_elapsed_msec = 0.0
91 self.total_elapsed_msec = 0.0
92 self.num_intervals = 0
93
94 def _elapsed(self, reset, total):
95 # A timer still running here was not stopped by its caller, so end its interval.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected