Pytorch 2 and the c++ interface

If I understand well, the design of models in C++, Java, Rust, or any langage using a binding to the C++ API is at a dead end, since it will never benefit from the new compilation features introduced in Pytorch 2.

I hope we will still be able, using the C++ API:

  • to import models designed and compiled in Python,
  • to add some input or output modules to compiled modules,
  • to train the result
  • to infer.

@ptrblck , @Chillee can you confirm ? Any news about the import of compiled modules and the ability to integrate them in C++ models ?