Rate this Page
★★★★★
torch.compiler.is_exporting#
- torch.compiler.is_exporting()[source]#
Indicated whether we’re under exporting.
It’s stricter than is_compiling() flag, as it would only be set to True whentorch.export is used.
Example:
>>>defforward(self,x):>>>ifnottorch.compiler.is_exporting():>>>pass# ...logic that is not needed in export...>>>>>># ...rest of the function...
- Return type
On this page