Skip to content

Conversation

@lijialin03
Copy link
Contributor

@lijialin03 lijialin03 commented Dec 21, 2023

PR types

Bug fixes

PR changes

APIs

Description

Pcard-66961
问题:
image
出现原因:paddle.abs()不支持非tensor类型,因此需要保证每个paddle.abs的输入都是tensor
复现方法:运行如下代码即可复现
image
修复方案:判断输入paddle.abs()的数据类型,若为非tensor类型则转换为tensor再输入

@paddle-bot
Copy link

paddle-bot bot commented Dec 21, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@cxxly
Copy link
Contributor

cxxly commented Dec 21, 2023

PR中表述下具体BUG原因,复现方法,修复方案,修复后截图

@lijialin03 lijialin03 force-pushed the develop branch 2 times, most recently from d7bdffa to 4ef3ee3 Compare December 25, 2023 08:15
Copy link
Contributor

@cxxly cxxly left a comment

Choose a reason for hiding this comment

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

LGTM

@cxxly cxxly merged commit cdeb3a6 into PaddlePaddle:develop Dec 27, 2023
Wanglongzhi2001 pushed a commit to Wanglongzhi2001/Paddle that referenced this pull request Jan 7, 2024
* fix bug of lbfgs test=develop

* update 1

* update 2

* update 3 test file
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.

2 participants