Repository navigation
[CodeStyle][py2] remove paddle.compat - #47269
Merged
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
paddle.compatpaddle.compat
SigureMo
commented
Oct 23, 2022
SigureMo
left a comment
Collaborator
Author
There was a problem hiding this comment.
PR-CI-Coverage 和 PR-CI-Mac-Python3 由于移除单测 test_compat 挂掉了,已经按照说明在 https://github.com/PaddlePaddle/Paddle/wiki/Temporarily-disabled-Unit-Test 说明了理由
| sgd.load(state_dict) | ||
| except NotImplementedError as e: | ||
| print(cpt.get_exception_message(e)) | ||
| print(e) |
Collaborator
Author
There was a problem hiding this comment.
一处 API 文档变动:移除了一个示例代码的 compat 模块的使用,为通过示例代码运行添加了 enable_static
Ligoml
approved these changes
Oct 24, 2022
Contributor
Collaborator
Author
嗯嗯,之后我在 docs 那边一起清理下(API 文档 + 其余文档中的相关使用等等)~ UPDATE: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR types
Others
PR changes
Others
Describe
清理
compat模块的最后一步,彻底清理掉 paddle.compat 模块、单测以及一些 unused importsRelated links
compatpart1: [CodeStyle] remove compat module (long_type, int_type, get_exception_message, floor_division) #46686compatpart2: [CodeStyle][py2] remove compat module (round) #46923compatpart3: [CodeStyle][py2] removecompatmodule (to_bytes) #47035compatpart4: [CodeStyle][py2] removecompatmodule (to_text) #47036