❓ [Question] How to convert Torch-TensorRT module to TRT engine? #1082
-
❓ QuestionHow to convert Torch-TensorRT module (*.ts) to TRT engine? Is there any Python API to do that? What you have already triedIn examples, I found auto engine = torch_tensorrt::ts::convert_method_to_trt_engine(mod, "forward", compile_spec); in https://github.com/pytorch/TensorRT/blob/master/examples/int8/qat/main.cpp If this is the correct way to do converting? If yes, is there any Python API? Environmentamd64 + Linux Additional context |
Beta Was this translation helpful? Give feedback.
Answered by
narendasan
May 18, 2022
Replies: 1 comment 1 reply
-
Yes this is the way, there is a python api by the same name in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
narendasan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes this is the way, there is a python api by the same name in
torch_tensorrt.ts