Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/tensorflow/models
/ steps_per_second
Method
steps_per_second
orbit/controller.py:595–600 ·
view source on GitHub ↗
(self, restart=True)
Source
from the content-addressed store, hash-verified
593
self.last_time = time.time()
594
595
def
steps_per_second(self, restart=True):
596
value = ((self.step.numpy() - self.last_iteration) /
597
(time.time() - self.last_time))
598
if
restart:
599
self.start()
600
return
value
Callers
1
_train_n_steps
Method · 0.80
Calls
1
start
Method · 0.95
Tested by
no test coverage detected