Skip to content

Commit 9bc7f79

Browse files
Fix runtime initialize (PaddlePaddle#156)
Fix runtime Co-authored-by: Jason <[email protected]>
1 parent 6a4777d commit 9bc7f79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

csrc/fastdeploy/fastdeploy_runtime.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ bool Runtime::Init(const RuntimeOption& _option) {
246246
option.backend = Backend::PDINFER;
247247
} else if (IsBackendAvailable(Backend::OPENVINO)) {
248248
option.backend = Backend::OPENVINO;
249-
} {
249+
} else {
250250
FDERROR << "Please define backend in RuntimeOption, current it's "
251251
"Backend::UNKNOWN."
252252
<< std::endl;
@@ -273,7 +273,8 @@ bool Runtime::Init(const RuntimeOption& _option) {
273273
CreatePaddleBackend();
274274
FDINFO << "Runtime initialized with Backend::PDINFER." << std::endl;
275275
} else if (option.backend == Backend::OPENVINO) {
276-
FDASSERT(option.device == Device::CPU, "Backend::OPENVINO only supports Device::CPU");
276+
FDASSERT(option.device == Device::CPU,
277+
"Backend::OPENVINO only supports Device::CPU");
277278
CreateOpenVINOBackend();
278279
FDINFO << "Runtime initialized with Backend::OPENVINO." << std::endl;
279280
} else {

0 commit comments

Comments
 (0)