docs: fix order of on_fit_start() hook (#16180)
Fixes https://github.com/Lightning-AI/lightning/issues/16170
This commit is contained in:
parent
f08bc67e4d
commit
94e6d52b7e
|
@ -1295,9 +1295,9 @@ for more information.
|
|||
|
||||
def train_on_device(model):
|
||||
# called PER DEVICE
|
||||
on_fit_start()
|
||||
setup("fit")
|
||||
configure_optimizers()
|
||||
on_fit_start()
|
||||
|
||||
# the sanity check runs here
|
||||
|
||||
|
|
Loading…
Reference in New Issue