Previous discussions:
https://github.com/PyTorchLightning/pytorch-lightning/pull/3163#issuecomment-683539565
https://github.com/PyTorchLightning/pytorch-lightning/pull/3163#issuecomment-695854769
https://github.com/PyTorchLightning/pytorch-lightning/issues/3001
Keep backwards compatibility by having filepath (old parameter) and dirpath, filename (new parameters)
- if filepath is set: old logic, show deprecated warning.
- if dirpath and filename are set: new logic.
- if filepath, dirpath, and filename are set: raise MisconfigurationException
cc @Borda @awaelchli @ananthsub @rohitgr7 @ydcjeff
I have been suggesting this for a long time. 馃槄
I know, @Borda just asked me to create a new issue to discuss.
I have been suggesting this for a long time. 馃槄
but it was not properly resolved, right? do you remember the issue/PR?
I like it, I vote for this :) We have plenty of tests for the filepath arg (I think thanks to @carmocca?), so the guarantee for back compatibility is there.
but it was not properly resolved, right? do you remember the issue/PR?
There was this PR #2584 but was slightly different
Should we have these parameters now in ModelCheckpoint since 1.x is released?
Yes, I think it would be useful.
Most helpful comment
There was this PR #2584 but was slightly different