Skip to content

Conversation

@From00
Copy link
Contributor

@From00 From00 commented Aug 31, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

pir模式下无法动态获取place信息,因而_current_expected_place会返回空:

def _current_expected_place():
    if in_pir_mode():
        return core.Place() // return None
    return _current_expected_place_()

动态图下一些设备相关接口需要获取place信息,在动转静模式下将进入pir_mode,导致运行出错:
image

本PR修复此问题。

Pcard-76459

@paddle-bot
Copy link

paddle-bot bot commented Aug 31, 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.

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@From00 From00 merged commit 8c5e841 into PaddlePaddle:develop Sep 2, 2024
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