Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct misuse of try_import from paddle.utils #11820

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

neteroster
Copy link
Contributor

PR 类型 PR types

Bug fixes

PR 变化内容类型 PR changes

Others

描述 Description

This pull request addresses the incorrect usage of the try_import function from paddle.utils in both ppocr/utils/utility.py and ppstructure/pdf2word/pdf2word.py (#11808).

此 PR 解决了 ppocr/utils/utility.pyppstructure/pdf2word/pdf2word.py 中误用 paddle.utils 中的 try_import 函数的问题(#11808)。

提PR之前的检查 Check-list

  • 这个 PR 是提交到dygraph分支或者是一个cherry-pick,否则请先提交到dygarph分支。
    This PR is pushed to the dygraph branch or cherry-picked from the dygraph branch. Otherwise, please push your changes to the dygraph branch.
  • 这个PR清楚描述了功能,帮助评审能提升效率。This PR have fully described what it does such that reviewers can speedup.
  • 这个PR已经经过本地测试。This PR can be covered by existing tests or locally verified.

This commit addresses the incorrect usage of the `try_import` function from `paddle.utils` in both `ppocr/utils/utility.py` and `ppstructure/pdf2word/pdf2word.py`.
Copy link

paddle-bot bot commented Mar 27, 2024

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Mar 27, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jzhang533 jzhang533 merged commit fa93f61 into PaddlePaddle:dygraph Mar 28, 2024
2 checks passed
jzhang533 pushed a commit to jzhang533/PaddleOCR that referenced this pull request Mar 28, 2024
…#11820)

This commit addresses the incorrect usage of the `try_import` function from `paddle.utils` in both `ppocr/utils/utility.py` and `ppstructure/pdf2word/pdf2word.py`.
jzhang533 added a commit that referenced this pull request Mar 28, 2024
* fix: Correct misuse of `try_import` from `paddle.utils` (#11820)

This commit addresses the incorrect usage of the `try_import` function from `paddle.utils` in both `ppocr/utils/utility.py` and `ppstructure/pdf2word/pdf2word.py`.

* bump version to 2.7.3

---------

Co-authored-by: NeterOster <[email protected]>
jzhang533 added a commit to jzhang533/PaddleOCR that referenced this pull request Mar 28, 2024
* fix: Correct misuse of `try_import` from `paddle.utils` (PaddlePaddle#11820)

This commit addresses the incorrect usage of the `try_import` function from `paddle.utils` in both `ppocr/utils/utility.py` and `ppstructure/pdf2word/pdf2word.py`.

* bump version to 2.7.3

---------

Co-authored-by: NeterOster <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants