-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[WIP][SOT] add faster_guard check #71239
base: develop
Are you sure you want to change the base?
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
python/paddle/jit/sot/opcode_translator/executor/executor_cache.py
Outdated
Show resolved
Hide resolved
python/paddle/jit/sot/opcode_translator/executor/executor_cache.py
Outdated
Show resolved
Hide resolved
确认下是否是报错导致的,因为现在的逻辑里没有对 |
确实都是因为报错导致的, |
PR Category
Execute Infrastructure
PR Types
Performance
Description
优化 faster_guard 检查逻辑
不再让
test_with_faster_guard
跑两次 func,而是只跑guard_fn
和guard_fn.faster_guard
, 并检查这两次的结果TODO:
test_sot_resnet.TestResNet.test_resnet_train
和test_instruction_translator_cache.TestOpcodeExecutorCache.test_cache_hit
导致 translate_count 变为 2