RSSAmplifier

GPU Notes · May 18, 2023

TorchDynamo 源码剖析 04 - Guard, Cache, Execution

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Guard Link to heading 随着函数调用栈返回到 convert_frame.py#L327 , TorchDynamo 编译的最后需要为 Guard 生成 Python 代码,从而在后续执行编译好的函数时检查函数的输入信息是否发生了变化,从而决定是否需要重新编译 :

Read on fkong.tech

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.