What is the use of exportedprogram?

Hello, recently I’ve been researching the latest torch export related things, but I don’t know why we need this exportedprogram. What’s the difference between this and the torchscript obtained using jit and script? I want to run ts using c++ and can use libtorch, so what should I do if I want to run exportedprogram using c++?

by the way , If I want to register some graph optimization operations myself, how can I achieve this with export? or just run it on python ir, Thank you very much .

torch.export and torch.jit differ in their graph capture mechanism, jit is on maintenance mode so you should be using export moving forward. in particular aot inductor is the new recommended path for people wanting c++ deployments

Thanks! is that anything useful learning materials about aot inductor? something like video or code