MCPcopy
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
108def on_state_reset():
109 tf.keras.backend.set_value(model.optimizer.lr, lr * hvd.size())
110
111
112state = hvd.elastic.KerasState(model, batch=0, epoch=0, commits=0, rendezvous=0)

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…