[Bug Fix]The TRT Backend Clone Interface is restored to Runtime.Init (#1101)

Update runtime.cc
This commit is contained in:
heliqi
2023-01-10 10:32:07 +08:00
committed by GitHub
parent c7c79dccf4
commit 7fdbedcc99

View File

@@ -472,9 +472,9 @@ void Runtime::CreateSophgoNPUBackend() {
Runtime* Runtime::Clone(void* stream, int device_id) {
Runtime* runtime = new Runtime();
if (option.backend != Backend::OPENVINO &&
option.backend != Backend::PDINFER && option.backend != Backend::TRT) {
option.backend != Backend::PDINFER) {
runtime->Init(option);
FDWARNING << "Only OpenVINO/Paddle Inference/TensorRT support \
FDWARNING << "Only OpenVINO/Paddle Inference support \
clone engine to reduce CPU/GPU memory usage now. For "
<< option.backend
<< ", FastDeploy will create a new engine which \