Shortcuts

Source code for torch_tensorrt.dynamo._SourceIR

from enum import Enum, auto


[docs]class SourceIR(Enum): NN = auto() ACC = auto() ATEN = auto() PRIM = auto() TORCHTRT_LOWERED = auto() UNKNOWN = auto() def __str__(self) -> str: if self == SourceIR.NN: return "nn" elif self == SourceIR.ACC: return "acc" elif self == SourceIR.ATEN: return "aten" elif self == SourceIR.PRIM: return "prim" elif self == SourceIR.TORCHTRT_LOWERED: return "torchtrt_lowered" else: return "unknown_ir"

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources