MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / reset

Method reset

Megatron-LM/utils.py:93–96  ·  view source on GitHub ↗

Reset timer.

(self)

Source from the content-addressed store, hash-verified

91 self.started_ = False
92
93 def reset(self):
94 """Reset timer."""
95 self.elapsed_ = 0.0
96 self.started_ = False
97
98 def elapsed(self, reset=True):
99 """Calculate the elapsed time."""

Callers 2

elapsedMethod · 0.95
backward_stepFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected