torch.fx.experimental.proxy_tensor.maybe_disable_thunkify¶
- torch.fx.experimental.proxy_tensor.maybe_disable_thunkify()[原始碼][原始碼]¶
在一個上下文中,停用 thunkification。請參閱
maybe_enable_thunkify()
以取得更多詳細資訊。如果您有一個包裝函式想要啟用 thunkification,但在內部的某些區段(例如原始使用者函式)中,您想要停用 thunkification,因為您知道那裡不需要它,這會很有用。- 回傳類型
Generator[None, None, None]