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 PIR Unittest No.26】Fix test_scale_op PIR mode #66197

Closed
wants to merge 2 commits into from

Conversation

tlxd
Copy link
Contributor

@tlxd tlxd commented Jul 18, 2024

PR Category

Others

PR Types

Bug fixes

Description

实例报错:TypeError: bool(Value) is not supported in static graph mode. If you are using @to_static, you can try this:

  1. If you want to get the value of Value, you can switch to non-fullgraph mode by setting @to_static(full_graph=True).
  2. If you want to run it in full graph mode, you need use Value.astype(paddle.bool), and do not use bool(Value).
    推测可能是静态图的版本问题;
    使用 with paddle.pir_utils.OldIrGuard() 包裹问题代码块。
    关联 issue:【快乐开源】PIR模式下单测问题修复与适配 #63740

Copy link

paddle-bot bot commented Jul 18, 2024

你的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.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


liuxudong10 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot paddle-bot bot added the contributor External developers label Jul 18, 2024
@tlxd tlxd closed this Jul 18, 2024
@tlxd tlxd deleted the branch1 branch July 18, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants