Skip to content

Handling extreme cases in validation sanity check #15381

Discussion options

You must be logged in to vote

Hi @ptoews on_train_start() runs right after sanity-checking, so you can filter out the warning until sanity check finishes and remove the warning filter in on_train_start() hook so that you get the warning during the actual validations. FYI, here's the execution order of hooks:
https://pytorch-lightning.readthedocs.io/en/1.7.7/common/lightning_module.html#hooks

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ptoews
Comment options

Answer selected by ptoews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment