Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/horovod/horovod
/ on_state_reset
Function
on_state_reset
test/integration/data/elastic_tensorflow_keras_main.py:108–109 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
106
107
108
def
on_state_reset():
109
tf.keras.backend.set_value(model.optimizer.lr, lr * hvd.size())
110
111
112
state = hvd.elastic.KerasState(model, batch=0, epoch=0, commits=0, rendezvous=0)
Callers
nothing calls this directly
Calls
2
set_value
Method · 0.80
size
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…