Solved by eellison in post #3 
              
              
                Hi johnc1231, 


Not unless you invoke it. Currently the only AOT optimization is torch.jit.freeze — PyTorch master documentation. It does a limited set of optimizations on 1.7, a little more on master, and I’m working on adding more AOT stuff. I will add a C++ api equivalent by 1.8. 


Yes, they do…