Fully deprecate variadic inputs of checkpoint_sequential - #25985
Conversation
|
@pytorchbot rebase this please |
|
@soumith Thank you for reviewing it. |
|
@sublee We can't land it yet because test is failing: |
|
@soumith I guess you lost the last update. Would you please review this PR again? |
aa20b4a to
a07700f
Compare
|
This patch was intended to deploy with v1.3.0. However, today PyTorch v1.3.0 has been released. I update the version to v1.4 in the deprecation documentation and rebase this branch onto the current |
albanD
left a comment
There was a problem hiding this comment.
Details in the test to make it look slightly better.
Then I'll merge.
Thanks for the PR !
01bf464 to
e61b020
Compare
|
Just rebased on top of master for CI. And again as I rebased on top of a broken master... |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@albanD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
It was intended to deploy with v1.3.0 but late.
e61b020 to
5829119
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@albanD is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: To support variadic inputs of `checkpoint_sequential` was deprecated at pytorch#21006. This case should be warned with `DeprecationWarning` for PyTorch 1.2, but it should be simply failed with `TypeError` since PyTorch 1.3. This patch removes the `DeprecationWarning` for PyTorch 1.2. Pull Request resolved: pytorch#25985 Differential Revision: D18809875 Pulled By: albanD fbshipit-source-id: e84dd8629c04979c4b2dc63e8ada94292e8cedd0
|
Hmm, If I am understanding this correctly it is not BC breaking because it enables behavior that used to throw a TypeError |
Summary: To support variadic inputs of `checkpoint_sequential` was deprecated at pytorch#21006. This case should be warned with `DeprecationWarning` for PyTorch 1.2, but it should be simply failed with `TypeError` since PyTorch 1.3. This patch removes the `DeprecationWarning` for PyTorch 1.2. Pull Request resolved: pytorch#25985 Differential Revision: D18809875 Pulled By: albanD fbshipit-source-id: e84dd8629c04979c4b2dc63e8ada94292e8cedd0
To support variadic inputs of
checkpoint_sequentialwas deprecated at #21006. This case should be warned withDeprecationWarningfor PyTorch 1.2, but it should be simply failed withTypeErrorsince PyTorch 1.3. This patch removes theDeprecationWarningfor PyTorch 1.2.