mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[Bug Fix]The TRT Backend Clone Interface is restored to Runtime.Init (#1101)
Update runtime.cc
This commit is contained in:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user