W3cubDocs

/PyTorch 2.9

model_is_exported

class torch.ao.quantization.pt2e.export_utils.model_is_exported(m) [source]

Return True if the torch.nn.Module was exported, False otherwise (e.g. if the model was FX symbolically traced or not traced at all).

Return type

bool

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.quantization.pt2e.export_utils.model_is_exported.html