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

[SOT][3.12] fix gen_load_attr index error in Python 3.12 #61883

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

gouzil
Copy link
Member

@gouzil gouzil commented Feb 20, 2024

PR types

Others

PR changes

Others

Description

修复gen_load_attridx错误引发的RuntimeError: Found BreakGraphError raised, it should not be catch at start_translate!

参考链接:

相关链接:

Copy link

paddle-bot bot commented Feb 20, 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.

@paddle-bot paddle-bot bot added the contributor External developers label Feb 20, 2024
@SigureMo SigureMo self-requested a review February 20, 2024 12:27
@@ -1075,6 +1075,7 @@ def KW_NAMES(self, instr: Instruction):
assert isinstance(instr.arg, int)
self._call_shape = self._co_consts[instr.arg].get_py_value()

@call_break_graph_decorator(push_n=1)
Copy link
Member

Choose a reason for hiding this comment

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

3.11 不能加这个吧,可以针对 3.12+ 加一下

class Foo:
    def bar(self):
        ...

    bar = deco(bar) if Python3.12 else bar

@SigureMo SigureMo self-assigned this Feb 20, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow

@SigureMo SigureMo merged commit c07c2ec into PaddlePaddle:develop Feb 21, 2024
30 checks passed
@gouzil gouzil deleted the sot_gen_load_attr_312 branch April 23, 2024 11:49
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