torch.fx.experimental.proxy_tensor.maybe_disable_thunkify¶
- torch.fx.experimental.proxy_tensor.maybe_disable_thunkify()[source][source]¶
在上下文管理器中,停用 thunkification。有關更多詳細資訊,請參閱
maybe_enable_thunkify()。這對於您有一個想要啟用 thunkification 的包裝函式,但在內部某些部分(例如,原始使用者函式)中知道不需要 thunkification 時非常有用。- 返回型別
Generator[None, None, None]