Computational Graph is extracted using LibTorch, so it's not as fast as torch.compile(). However, it's simpler to use and offers better compatibility.
Load or run inference on exported models without defining the model class
TorchScript Usages
TorchScript — PyTorch 2.0 documentation
https://pytorch.org/docs/stable/jit.html

Seonglae Cho