diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2020-02-21 09:49:34 +0000 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2020-02-21 09:54:52 +0000 |
commit | f74a3106fce7c9c6c489d74d4356a1b1036c2228 (patch) | |
tree | 666e272729cef03e775283de1bf005d699206fc7 | |
parent | eec836eb731767eb2a0e8d86757de605bfd148d6 (diff) | |
download | android-nn-driver-f74a3106fce7c9c6c489d74d4356a1b1036c2228.tar.gz |
IVGCVSW-4471 ValidationTestIntrospection.DeviceGetType fails in Q NN tests
* Throw an exception if there is no known backend specified for the driver
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I8b0be33c0a8786b493ac1f8c17573853db8e8218
-rw-r--r-- | ArmnnDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmnnDevice.cpp b/ArmnnDevice.cpp index 34019c32..ffb07c8d 100644 --- a/ArmnnDevice.cpp +++ b/ArmnnDevice.cpp @@ -94,7 +94,7 @@ ArmnnDevice::ArmnnDevice(DriverOptions options) { if (std::find(supportedDevices.cbegin(), supportedDevices.cend(), backend) == supportedDevices.cend()) { - ALOGW("Requested unknown backend %s", backend.Get().c_str()); + ALOGW("ArmnnDevice: Requested unknown backend %s", backend.Get().c_str()); } else { @@ -105,8 +105,8 @@ ArmnnDevice::ArmnnDevice(DriverOptions options) if (backends.empty()) { - backends.emplace_back("GpuAcc"); - ALOGW("No known backend specified. Defaulting to: GpuAcc"); + // No known backend specified + throw armnn::InvalidArgumentException("ArmnnDevice: No known backend specified."); } m_Options.SetBackends(backends); |