aboutsummaryrefslogtreecommitdiff
path: root/ArmnnDriverImpl.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2018-09-04 16:28:10 +0100
committerMatthew Bentham <matthew.bentham@arm.com>2018-09-18 12:40:40 +0100
commit79250ab173e7dfa2c6057854c0d4b8dafe377fb0 (patch)
tree7b52e6cf32c30b27440a68efc3cb5733b5ccedfe /ArmnnDriverImpl.hpp
parente48bdff741568236d3c0747ad3d18a8eba5b36dd (diff)
downloadandroid-nn-driver-79250ab173e7dfa2c6057854c0d4b8dafe377fb0.tar.gz
IVGCVSW-1806 Restored the fp16 flag left behind during the previous
refactoring * Split getCapabilities and getCapabilities_1_1 as it was before * Setting relaxedFloat32toFloat16Performance when using HAL 1.1 as required by one of the VTS test Change-Id: Iff883b8cbd0511596e9848fa40e91e4fa58d4260
Diffstat (limited to 'ArmnnDriverImpl.hpp')
-rw-r--r--ArmnnDriverImpl.hpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/ArmnnDriverImpl.hpp b/ArmnnDriverImpl.hpp
index c0600977..87da581b 100644
--- a/ArmnnDriverImpl.hpp
+++ b/ArmnnDriverImpl.hpp
@@ -17,17 +17,13 @@ namespace armnn_driver
struct HalVersion_1_0
{
using Model = ::android::hardware::neuralnetworks::V1_0::Model;
- using Capabilities = ::android::hardware::neuralnetworks::V1_0::Capabilities;
- using getCapabilities_cb = ::android::hardware::neuralnetworks::V1_0::IDevice::getCapabilities_cb;
using getSupportedOperations_cb = ::android::hardware::neuralnetworks::V1_0::IDevice::getSupportedOperations_cb;
};
-#if defined(ARMNN_ANDROID_NN_V1_1)
+#if defined(ARMNN_ANDROID_NN_V1_1) // Using ::android::hardware::neuralnetworks::V1_1.
struct HalVersion_1_1
{
using Model = ::android::hardware::neuralnetworks::V1_1::Model;
- using Capabilities = ::android::hardware::neuralnetworks::V1_1::Capabilities;
- using getCapabilities_cb = ::android::hardware::neuralnetworks::V1_1::IDevice::getCapabilities_1_1_cb;
using getSupportedOperations_cb = ::android::hardware::neuralnetworks::V1_1::IDevice::getSupportedOperations_1_1_cb;
};
#endif
@@ -37,13 +33,8 @@ class ArmnnDriverImpl
{
public:
using HalModel = typename HalVersion::Model;
- using HalCapabilities = typename HalVersion::Capabilities;
- using HalGetCapabilities_cb = typename HalVersion::getCapabilities_cb;
using HalGetSupportedOperations_cb = typename HalVersion::getSupportedOperations_cb;
- static Return<void> getCapabilities(
- const armnn::IRuntimePtr& runtime,
- HalGetCapabilities_cb cb);
static Return<void> getSupportedOperations(
const armnn::IRuntimePtr& runtime,
const DriverOptions& options,