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.13] Use GetLocals to avoid SystemError when get locals from proxy frame #69131

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Nov 2, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

解决 #69126 中的遗留问题,GetLocals 到底需不需要的问题

Python 3.13 中需要,而且可能每次都需要,因为每次都要创建一个代理 locals 以进行修改

但对于我们的 frame 代理来说是否可以缓存呢?因为我们的 frame.f_locals 并不需要可以修改,这一点留待后续观察确认

移动 test_numpy_add case 到 test_numpy 中,不然每次从头适配的时候总是因为这个 case 导致 test_01_basic 在很后期才能支持

目前本 PR 至少 test_01test_03 是可以直接通过了,具体通过情况待后续统计

PCard-66972

Copy link

paddle-bot bot commented Nov 2, 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.

@SigureMo SigureMo requested a review from gouzil November 2, 2024 20:05
@SigureMo SigureMo changed the title [SOT][3.13] Use GetLocals to avoid SystemError when get locals from proxy frame [SOT][3.13][Typing] Use GetLocals to avoid SystemError when get locals from proxy frame Nov 2, 2024
@SigureMo SigureMo requested a review from zrr1999 as a code owner November 2, 2024 20:11
@SigureMo SigureMo changed the title [SOT][3.13][Typing] Use GetLocals to avoid SystemError when get locals from proxy frame [SOT][3.13] Use GetLocals to avoid SystemError when get locals from proxy frame Nov 3, 2024
@SigureMo SigureMo merged commit 40ef10f into PaddlePaddle:develop Nov 4, 2024
28 checks passed
@SigureMo SigureMo deleted the sot/use-get-locals-to-avoid-system-error-when-get-locals-from-proxy-frame branch November 4, 2024 04:29
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