docs: fix order of on_fit_start() hook (#16180)

Fixes https://github.com/Lightning-AI/lightning/issues/16170
This commit is contained in:
David Gilbertson 2022-12-23 07:06:57 +11:00 committed by GitHub
parent f08bc67e4d
commit 94e6d52b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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