Fix docstrings of on_fit_start/end #12016

This commit is contained in:
Danielle Pintz 2022-02-21 14:50:10 -05:00 committed by GitHub
parent f811284136
commit d724465ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class TrainerCallbackHookMixin(ABC):
.. deprecated:: v1.6
`TrainerCallbackHookMixin.on_fit_start` was deprecated in v1.6 and will be removed in v1.8.
Called when the trainer initialization begins, model has not yet been set.
Called when fit begins.
"""
rank_zero_deprecation(
"`TrainerCallbackHookMixin.on_fit_start` was deprecated in v1.6 and will be removed in v1.8."
@ -130,7 +130,7 @@ class TrainerCallbackHookMixin(ABC):
.. deprecated:: v1.6
`TrainerCallbackHookMixin.on_fit_end` was deprecated in v1.6 and will be removed in v1.8.
Called when the trainer initialization begins, model has not yet been set.
Called when fit ends.
"""
rank_zero_deprecation(
"`TrainerCallbackHookMixin.on_fit_end` was deprecated in v1.6 and will be removed in v1.8."