by g_airborne · 6y ago · 0 comments
PyTorch will happily let you export your model, even with Python code in it, and run it in C++ :)
When you have multithreaded setups, this typically is more significant than the Python overhead itself (which comes in at 10% for the PyTorch C++ extension LLTM example, but would be less for convnets).