Skip to content

fix latex_ocr inference#14498

Merged
cuicheng01 merged 4 commits intoPaddlePaddle:mainfrom
vivienfanghuagood:ocr_v2
Jan 7, 2025
Merged

fix latex_ocr inference#14498
cuicheng01 merged 4 commits intoPaddlePaddle:mainfrom
vivienfanghuagood:ocr_v2

Conversation

@vivienfanghuagood
Copy link
Contributor

No description provided.

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

@paddle-bot
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