File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments