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 latex_ocr inference #14498

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Conversation

vivienfanghuagood
Copy link
Contributor

No description provided.

@@ -88,6 +88,20 @@ def __init__(
self.export = is_export
self.eps = eps

running_mean = paddle.empty([self._out_channels], dtype="float32")
Copy link
Collaborator

@GreatV GreatV Jan 6, 2025

Choose a reason for hiding this comment

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

paddle.empty里面的元素未初始化,会不会造成训练和输出不稳定。https://www.paddlepaddle.org.cn/documentation/api/paddle/empty_cn.html#empty

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已经改成zeros和ones

Copy link

paddle-bot bot commented Jan 6, 2025

Thanks for your contribution!

@cuicheng01
Copy link
Collaborator

备注:修复LatexOCR的PIR推理报错问题:
image

@cuicheng01 cuicheng01 merged commit 359ab6c into PaddlePaddle:main Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants