Backto PyTorch Index
最佳实践 Best Practice
2020-07-03
Server/Nvidia :C++ / TensorRT
Mobile/Non-Nvidia : TVM
技术路径 Paths
TorchScript-Libtorch / offcial C++ frontend
官方推荐和主代码演进的方向
The PyTorch team is betting heavily on TorchScript/libtorch as the path for going from research to production. Our ideal workflow is for the user to prototype in Python/PyTorch eager, convert to TorchScript, then use our compiler infrastructure to optimize and potentially lower your model to specialized hardware.
Pro: 官方出品,覆盖面广
Con:当前主要是从 Python 到 C++ 的转写,利用的是C++语言的加速特性。而更为关键的硬件加速涉及不多。