Weird bug when setting val_check_interval
dynamically in setup()
#20894
Labels
val_check_interval
dynamically in setup()
#20894
Uh oh!
There was an error while loading. Please reload this page.
Bug description
I want to dynamically set
val_check_interval
based on the total number of training steps. Specifically, i calculate val_check_interval using self.trainer.estimated_stepping_batches // 10 in the setup() method, aiming for 10 validations.When i assign a constant value to self.trainer.val_check_interval, it works as expected, but when I use the dynamic calculation (self.trainer.estimated_stepping_batches // 10), it doesn't seem to work, even though the calculated value is correct and everything else is identical. I also set self.trainer.check_val_every_n_epoch=None, as per documentation.
What could be causing this weird bug, and how can I ensure that the dynamically calculated value is applied properly?
What version are you seeing the problem on?
v2.5
Reproduced in studio
No response
How to reproduce the bug
Error messages and logs
Environment
Current environment
More info
No response
The text was updated successfully, but these errors were encountered: