Skip to content

Commit

Permalink
[NPU] Return false in case backend is not available (#24322)
Browse files Browse the repository at this point in the history
### Details:
- *Return false in case the backend is not available when using offline
compilation without having a backend*

### Tickets:
 - *ticket-id*
  • Loading branch information
pereanub authored Apr 30, 2024
1 parent efd4456 commit 179fde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_npu/src/plugin/src/backends.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool NPUBackends::isBatchingSupported() const {
return _backend->isBatchingSupported();
}

OPENVINO_THROW("No available backend");
return false;
}

std::shared_ptr<IDevice> NPUBackends::getDevice(const std::string& specificName) const {
Expand Down

0 comments on commit 179fde6

Please sign in to comment.