CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[SOT][3.13] Complete simulation for bytecode TO_BOOL
MAKE_FUNCTION
and SET_FUNCTION_ATTRIBUTE
#69567
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
关于闭包的段错误:3.13会发生段错误
3.10不会发生段错误
|
test/sot/test_22_make_function.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
22 和 23 这两个单测和现有的 test_13_make_function
的区别是?这里没必要添加新的文件吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test13没覆盖完,可以把这两个删了,然后改一下test13
因为涉及闭包会段错误,所以先不添加闭包的case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个在其他版本没问题吧,那也应该加一下
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
说明下复现方式,是哪个单测的哪个 case,命令贴一下 |
段错误复现方式:
在test_13当中,加入y = x形成闭包,就会触发段错误 |
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
test/sot/test_22_make_function.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个在其他版本没问题吧,那也应该加一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外全量跑一下看看,是否有新的单测通过了?结果贴到 test/sot/skip_files_py313
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其余 LGTM
python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TO_BOOL
MAKE_FUNCTION
and SET_FUNCTION_ATTRIBUTE
TO_BOOL
MAKE_FUNCTION
and SET_FUNCTION_ATTRIBUTE
PR Category
Execute Infrastructure
PR Types
Others
Description
实现了对
TO_BOOL
MAKE_FUNCTION
以及SET_FUNCTION_ATTRIBUTE
的模拟执行逻辑,TO_BOOL
的代码生成部分尚未完成PCard-66972