torch.compiler.is_dynamo_compiling
- torch.compiler.is_dynamo_compiling()
Indicates whether a graph is traced via TorchDynamo.
It’s stricter than is_compiling() flag, as it would only be set to True when TorchDynamo is used.
Example:
>>> def forward(self,