blob: 94fb3c8836c3a200862aa645c154089a61a9d3d3 [file] [log] [blame]
Mike Kellyb5fdf382019-06-11 16:35:25 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "ArmnnDriverImpl.hpp"
7#include "../ArmnnPreparedModel_1_2.hpp"
8#include "../ModelToINetworkConverter.hpp"
9#include "../SystemPropertiesUtils.hpp"
10
11#include <log/log.h>
12
13namespace
14{
15
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +010016const char *g_RelaxedFloat32toFloat16PerformanceExecTime = "ArmNN.relaxedFloat32toFloat16Performance.execTime";
FinnWilliamsArmdf655ee2019-07-24 16:04:18 +010017const char *g_RelaxedFloat32toFloat16PerformancePowerUsage = "ArmNN.relaxedFloat32toFloat16Performance.powerUsage";
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +010018
19const char *g_OperandTypeTensorFloat32PerformanceExecTime = "Armnn.operandTypeTensorFloat32Performance.execTime";
20const char *g_OperandTypeTensorFloat32PerformancePowerUsage = "Armnn.operandTypeTensorFloat32Performance.powerUsage";
21
22const char *g_OperandTypeFloat32PerformanceExecTime = "Armnn.operandTypeFloat32Performance.execTime";
23const char *g_OperandTypeFloat32PerformancePowerUsage = "Armnn.operandTypeFloat32Performance.powerUsage";
24
25const char *g_OperandTypeTensorFloat16PerformanceExecTime = "Armnn.operandTypeTensorFloat16Performance.execTime";
26const char *g_OperandTypeTensorFloat16PerformancePowerUsage = "Armnn.operandTypeTensorFloat16Performance.powerUsage";
27
28const char *g_OperandTypeFloat16PerformanceExecTime = "Armnn.operandTypeFloat16Performance.execTime";
29const char *g_OperandTypeFloat16PerformancePowerUsage = "Armnn.operandTypeFloat16Performance.powerUsage";
30
31const char *g_OperandTypeTensorQuant8AsymmPerformanceExecTime =
32 "Armnn.operandTypeTensorQuant8AsymmPerformance.execTime";
33const char *g_OperandTypeTensorQuant8AsymmPerformancePowerUsage =
34 "Armnn.operandTypeTensorQuant8AsymmPerformance.powerUsage";
35
36const char *g_OperandTypeTensorQuant16SymmPerformanceExecTime =
37 "Armnn.operandTypeTensorQuant16SymmPerformance.execTime";
38const char *g_OperandTypeTensorQuant16SymmPerformancePowerUsage =
39 "Armnn.operandTypeTensorQuant16SymmPerformance.powerUsage";
40
Pablo Tellofb45e2f2019-10-18 16:51:57 +010041const char *g_OperandTypeTensorQuant8SymmPerformanceExecTime =
42 "Armnn.operandTypeTensorQuant8SymmPerformance.execTime";
43const char *g_OperandTypeTensorQuant8SymmPerformancePowerUsage =
44 "Armnn.operandTypeTensorQuant8SymmPerformance.powerUsage";
45
Kevin May87cb7612019-11-11 17:30:35 +000046const char *g_OperandTypeTensorQuant8SymmPerChannelPerformanceExecTime =
47 "Armnn.operandTypeTensorQuant8SymmPerChannelPerformance.execTime";
48const char *g_OperandTypeTensorQuant8SymmPerChannelPerformancePowerUsage =
49 "Armnn.operandTypeTensorQuant8SymmPerChannelPerformance.powerUsage";
50
Pablo Tellofb45e2f2019-10-18 16:51:57 +010051
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +010052const char *g_OperandTypeTensorInt32PerformanceExecTime = "Armnn.operandTypeTensorInt32Performance.execTime";
53const char *g_OperandTypeTensorInt32PerformancePowerUsage = "Armnn.operandTypeTensorInt32Performance.powerUsage";
54
55const char *g_OperandTypeInt32PerformanceExecTime = "Armnn.operandTypeInt32Performance.execTime";
56const char *g_OperandTypeInt32PerformancePowerUsage = "Armnn.operandTypeInt32Performance.powerUsage";
57
58
Mike Kellyb5fdf382019-06-11 16:35:25 +010059void NotifyCallbackAndCheck(const sp<V1_2::IPreparedModelCallback>& callback,
Kevin Mayec1e5b82020-02-26 17:00:39 +000060 V1_0::ErrorStatus errorStatus,
Mike Kellyb5fdf382019-06-11 16:35:25 +010061 const sp<V1_2::IPreparedModel>& preparedModelPtr)
62{
Ferran Balaguerb2397fd2019-07-25 12:12:39 +010063 Return<void> returned = callback->notify_1_2(errorStatus, preparedModelPtr);
Mike Kellyb5fdf382019-06-11 16:35:25 +010064 // This check is required, if the callback fails and it isn't checked it will bring down the service
65 if (!returned.isOk())
66 {
67 ALOGE("ArmnnDriverImpl::prepareModel: hidl callback failed to return properly: %s ",
68 returned.description().c_str());
69 }
70}
71
Kevin Mayec1e5b82020-02-26 17:00:39 +000072Return<V1_0::ErrorStatus> FailPrepareModel(V1_0::ErrorStatus error,
73 const std::string& message,
74 const sp<V1_2::IPreparedModelCallback>& callback)
Mike Kellyb5fdf382019-06-11 16:35:25 +010075{
76 ALOGW("ArmnnDriverImpl::prepareModel: %s", message.c_str());
77 NotifyCallbackAndCheck(callback, error, nullptr);
78 return error;
79}
80
81} // anonymous namespace
82
83namespace armnn_driver
84{
85namespace hal_1_2
86{
87
Kevin Mayec1e5b82020-02-26 17:00:39 +000088Return<V1_0::ErrorStatus> ArmnnDriverImpl::prepareArmnnModel_1_2(
89 const armnn::IRuntimePtr& runtime,
90 const armnn::IGpuAccTunedParametersPtr& clTunedParameters,
91 const DriverOptions& options,
92 const V1_2::Model& model,
93 const sp<V1_2::IPreparedModelCallback>& cb,
94 bool float32ToFloat16)
Mike Kellyb5fdf382019-06-11 16:35:25 +010095{
Matteo Martincigh0bd89a82019-07-02 16:53:10 +010096 ALOGV("ArmnnDriverImpl::prepareArmnnModel_1_2()");
Mike Kellyb5fdf382019-06-11 16:35:25 +010097
98 if (cb.get() == nullptr)
99 {
100 ALOGW("ArmnnDriverImpl::prepareModel: Invalid callback passed to prepareModel");
Kevin Mayec1e5b82020-02-26 17:00:39 +0000101 return V1_0::ErrorStatus::INVALID_ARGUMENT;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100102 }
103
104 if (!runtime)
105 {
Kevin Mayec1e5b82020-02-26 17:00:39 +0000106 return FailPrepareModel(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, "Device unavailable", cb);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100107 }
108
109 if (!android::nn::validateModel(model))
110 {
Kevin Mayec1e5b82020-02-26 17:00:39 +0000111 return FailPrepareModel(V1_0::ErrorStatus::INVALID_ARGUMENT, "Invalid model passed as input", cb);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100112 }
113
114 // Deliberately ignore any unsupported operations requested by the options -
115 // at this point we're being asked to prepare a model that we've already declared support for
116 // and the operation indices may be different to those in getSupportedOperations anyway.
117 std::set<unsigned int> unsupportedOperations;
118 ModelToINetworkConverter<HalPolicy> modelConverter(options.GetBackends(),
119 model,
120 unsupportedOperations);
121
122 if (modelConverter.GetConversionResult() != ConversionResult::Success)
123 {
Kevin Mayec1e5b82020-02-26 17:00:39 +0000124 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, "ModelToINetworkConverter failed", cb);
125 return V1_0::ErrorStatus::NONE;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100126 }
127
Sadik Armaganb3021432021-01-13 15:56:51 +0000128 // Serialize the network graph to a .armnn file if an output directory
129 // has been specified in the drivers' arguments.
130 auto serializedNetworkFileName =
131 SerializeNetwork(*modelConverter.GetINetwork(), options.GetRequestInputsAndOutputsDumpDir());
132
Mike Kellyb5fdf382019-06-11 16:35:25 +0100133 // Optimize the network
134 armnn::IOptimizedNetworkPtr optNet(nullptr, nullptr);
135 armnn::OptimizerOptions OptOptions;
136 OptOptions.m_ReduceFp32ToFp16 = float32ToFloat16;
137
Mike Kelly7ed56dd2020-09-30 20:22:56 +0100138 armnn::BackendOptions gpuAcc("GpuAcc",
139 {
Sadik Armaganf36e10b2021-01-11 16:34:01 +0000140 { "FastMathEnabled", options.IsFastMathEnabled() },
141 { "SaveCachedNetwork", options.SaveCachedNetwork() },
142 { "CachedNetworkFilePath", options.GetCachedNetworkFilePath() }
Mike Kelly7ed56dd2020-09-30 20:22:56 +0100143 });
144 armnn::BackendOptions cpuAcc("CpuAcc",
145 {
Matthew Sloyancd639c92021-02-11 16:57:38 +0000146 { "FastMathEnabled", options.IsFastMathEnabled() },
147 { "NumberOfThreads", options.GetNumberOfThreads() }
Mike Kelly7ed56dd2020-09-30 20:22:56 +0100148 });
149 OptOptions.m_ModelOptions.push_back(gpuAcc);
150 OptOptions.m_ModelOptions.push_back(cpuAcc);
151
Mike Kellyb5fdf382019-06-11 16:35:25 +0100152 std::vector<std::string> errMessages;
153 try
154 {
155 optNet = armnn::Optimize(*modelConverter.GetINetwork(),
156 options.GetBackends(),
157 runtime->GetDeviceSpec(),
158 OptOptions,
159 errMessages);
160 }
Derek Lambertib9cb8442019-11-28 13:34:48 +0000161 catch (std::exception &e)
Mike Kellyb5fdf382019-06-11 16:35:25 +0100162 {
163 std::stringstream message;
Derek Lambertib9cb8442019-11-28 13:34:48 +0000164 message << "Exception (" << e.what() << ") caught from optimize.";
Kevin Mayec1e5b82020-02-26 17:00:39 +0000165 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, message.str(), cb);
166 return V1_0::ErrorStatus::NONE;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100167 }
168
169 // Check that the optimized network is valid.
170 if (!optNet)
171 {
172 std::stringstream message;
173 message << "Invalid optimized network";
174 for (const std::string& msg : errMessages)
175 {
176 message << "\n" << msg;
177 }
Kevin Mayec1e5b82020-02-26 17:00:39 +0000178 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, message.str(), cb);
179 return V1_0::ErrorStatus::NONE;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100180 }
181
182 // Export the optimized network graph to a dot file if an output dump directory
183 // has been specified in the drivers' arguments.
Jim Flynn829ad302019-12-13 14:43:24 +0000184 std::string dotGraphFileName = ExportNetworkGraphToDotFile(*optNet,
185 options.GetRequestInputsAndOutputsDumpDir());
Mike Kellyb5fdf382019-06-11 16:35:25 +0100186
187 // Load it into the runtime.
188 armnn::NetworkId netId = 0;
189 try
190 {
191 if (runtime->LoadNetwork(netId, move(optNet)) != armnn::Status::Success)
192 {
Kevin Mayec1e5b82020-02-26 17:00:39 +0000193 return FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, "Network could not be loaded", cb);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100194 }
195 }
Derek Lambertib9cb8442019-11-28 13:34:48 +0000196 catch (std::exception& e)
Mike Kellyb5fdf382019-06-11 16:35:25 +0100197 {
198 std::stringstream message;
Derek Lambertib9cb8442019-11-28 13:34:48 +0000199 message << "Exception (" << e.what()<< ") caught from LoadNetwork.";
Kevin Mayec1e5b82020-02-26 17:00:39 +0000200 FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, message.str(), cb);
201 return V1_0::ErrorStatus::NONE;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100202 }
203
Sadik Armaganb3021432021-01-13 15:56:51 +0000204 // Now that we have a networkId for the graph rename the exported files to use it
205 // so that we can associate the graph file and the input/output tensor exported files
206 RenameExportedFiles(serializedNetworkFileName,
207 dotGraphFileName,
208 options.GetRequestInputsAndOutputsDumpDir(),
209 netId);
Jim Flynn829ad302019-12-13 14:43:24 +0000210
Mike Kellyb5fdf382019-06-11 16:35:25 +0100211 std::unique_ptr<ArmnnPreparedModel_1_2<hal_1_2::HalPolicy>> preparedModel(
212 new ArmnnPreparedModel_1_2<hal_1_2::HalPolicy>(
213 netId,
214 runtime.get(),
215 model,
216 options.GetRequestInputsAndOutputsDumpDir(),
217 options.IsGpuProfilingEnabled()));
218
219 // Run a single 'dummy' inference of the model. This means that CL kernels will get compiled (and tuned if
220 // this is enabled) before the first 'real' inference which removes the overhead of the first inference.
221 if (!preparedModel->ExecuteWithDummyInputs())
222 {
Kevin Mayec1e5b82020-02-26 17:00:39 +0000223 return FailPrepareModel(V1_0::ErrorStatus::GENERAL_FAILURE, "Network could not be executed", cb);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100224 }
225
226 if (clTunedParameters &&
227 options.GetClTunedParametersMode() == armnn::IGpuAccTunedParameters::Mode::UpdateTunedParameters)
228 {
229 // Now that we've done one inference the CL kernel parameters will have been tuned, so save the updated file.
230 try
231 {
232 clTunedParameters->Save(options.GetClTunedParametersFile().c_str());
233 }
Derek Lambertib9cb8442019-11-28 13:34:48 +0000234 catch (std::exception& error)
Mike Kellyb5fdf382019-06-11 16:35:25 +0100235 {
236 ALOGE("ArmnnDriverImpl::prepareModel: Failed to save CL tuned parameters file '%s': %s",
237 options.GetClTunedParametersFile().c_str(), error.what());
238 }
239 }
240
Kevin Mayec1e5b82020-02-26 17:00:39 +0000241 NotifyCallbackAndCheck(cb, V1_0::ErrorStatus::NONE, preparedModel.release());
Mike Kellyb5fdf382019-06-11 16:35:25 +0100242
Kevin Mayec1e5b82020-02-26 17:00:39 +0000243 return V1_0::ErrorStatus::NONE;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100244}
245
246Return<void> ArmnnDriverImpl::getCapabilities_1_2(const armnn::IRuntimePtr& runtime,
247 V1_2::IDevice::getCapabilities_1_2_cb cb)
248{
249 ALOGV("hal_1_2::ArmnnDriverImpl::getCapabilities()");
250
251 V1_2::Capabilities capabilities;
252
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100253 float defaultValue = .1f;
254
Mike Kellyb5fdf382019-06-11 16:35:25 +0100255 if (runtime)
256 {
257 capabilities.relaxedFloat32toFloat16PerformanceScalar.execTime =
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100258 ParseSystemProperty(g_RelaxedFloat32toFloat16PerformanceExecTime, defaultValue);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100259
Kevin May2eaa1192020-04-15 16:50:57 +0100260 capabilities.relaxedFloat32toFloat16PerformanceScalar.powerUsage =
261 ParseSystemProperty(g_RelaxedFloat32toFloat16PerformancePowerUsage, defaultValue);
262
263 capabilities.relaxedFloat32toFloat16PerformanceTensor.execTime =
264 ParseSystemProperty(g_RelaxedFloat32toFloat16PerformanceExecTime, defaultValue);
265
FinnWilliamsArmdf655ee2019-07-24 16:04:18 +0100266 capabilities.relaxedFloat32toFloat16PerformanceTensor.powerUsage =
267 ParseSystemProperty(g_RelaxedFloat32toFloat16PerformancePowerUsage, defaultValue);
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100268
269 // Set the base value for all operand types
Kevin Mayec1e5b82020-02-26 17:00:39 +0000270 #ifdef ARMNN_ANDROID_R
271 capabilities.operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_2>({FLT_MAX, FLT_MAX});
272 #else
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100273 capabilities.operandPerformance = nonExtensionOperandPerformance({FLT_MAX, FLT_MAX});
Kevin Mayec1e5b82020-02-26 17:00:39 +0000274 #endif
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100275
276 // Load supported operand types
Kevin Mayec1e5b82020-02-26 17:00:39 +0000277 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_FLOAT32,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100278 {
279 .execTime = ParseSystemProperty(g_OperandTypeTensorFloat32PerformanceExecTime, defaultValue),
280 .powerUsage = ParseSystemProperty(g_OperandTypeTensorFloat32PerformancePowerUsage, defaultValue)
281 });
282
Kevin Mayec1e5b82020-02-26 17:00:39 +0000283 update(&capabilities.operandPerformance, V1_2::OperandType::FLOAT32,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100284 {
285 .execTime = ParseSystemProperty(g_OperandTypeFloat32PerformanceExecTime, defaultValue),
286 .powerUsage = ParseSystemProperty(g_OperandTypeFloat32PerformancePowerUsage, defaultValue)
287 });
288
Kevin Mayec1e5b82020-02-26 17:00:39 +0000289 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_FLOAT16,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100290 {
291 .execTime = ParseSystemProperty(g_OperandTypeTensorFloat16PerformanceExecTime, defaultValue),
292 .powerUsage = ParseSystemProperty(g_OperandTypeTensorFloat16PerformancePowerUsage, defaultValue)
293 });
294
Kevin Mayec1e5b82020-02-26 17:00:39 +0000295 update(&capabilities.operandPerformance, V1_2::OperandType::FLOAT16,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100296 {
297 .execTime = ParseSystemProperty(g_OperandTypeFloat16PerformanceExecTime, defaultValue),
298 .powerUsage = ParseSystemProperty(g_OperandTypeFloat16PerformancePowerUsage, defaultValue)
299 });
300
Kevin Mayec1e5b82020-02-26 17:00:39 +0000301 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_QUANT8_ASYMM,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100302 {
303 .execTime = ParseSystemProperty(g_OperandTypeTensorQuant8AsymmPerformanceExecTime, defaultValue),
304 .powerUsage = ParseSystemProperty(g_OperandTypeTensorQuant8AsymmPerformancePowerUsage, defaultValue)
305 });
306
Kevin Mayec1e5b82020-02-26 17:00:39 +0000307 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_QUANT8_SYMM,
Pablo Tellofb45e2f2019-10-18 16:51:57 +0100308 {
309 .execTime = ParseSystemProperty(g_OperandTypeTensorQuant8SymmPerformanceExecTime, defaultValue),
310 .powerUsage = ParseSystemProperty(g_OperandTypeTensorQuant8SymmPerformancePowerUsage, defaultValue)
311 });
312
Kevin Mayec1e5b82020-02-26 17:00:39 +0000313 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_QUANT16_SYMM,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100314 {
315 .execTime = ParseSystemProperty(g_OperandTypeTensorQuant16SymmPerformanceExecTime, defaultValue),
316 .powerUsage = ParseSystemProperty(g_OperandTypeTensorQuant16SymmPerformancePowerUsage, defaultValue)
317 });
318
Kevin Mayec1e5b82020-02-26 17:00:39 +0000319 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL,
Kevin May87cb7612019-11-11 17:30:35 +0000320 {
321 .execTime =
322 ParseSystemProperty(g_OperandTypeTensorQuant8SymmPerChannelPerformanceExecTime, defaultValue),
323 .powerUsage =
324 ParseSystemProperty(g_OperandTypeTensorQuant8SymmPerChannelPerformancePowerUsage, defaultValue)
325 });
326
Kevin Mayec1e5b82020-02-26 17:00:39 +0000327 update(&capabilities.operandPerformance, V1_2::OperandType::TENSOR_INT32,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100328 {
329 .execTime = ParseSystemProperty(g_OperandTypeTensorInt32PerformanceExecTime, defaultValue),
330 .powerUsage = ParseSystemProperty(g_OperandTypeTensorInt32PerformancePowerUsage, defaultValue)
331 });
332
Kevin Mayec1e5b82020-02-26 17:00:39 +0000333 update(&capabilities.operandPerformance, V1_2::OperandType::INT32,
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100334 {
335 .execTime = ParseSystemProperty(g_OperandTypeInt32PerformanceExecTime, defaultValue),
336 .powerUsage = ParseSystemProperty(g_OperandTypeInt32PerformancePowerUsage, defaultValue)
337 });
Mike Kellyb5fdf382019-06-11 16:35:25 +0100338
Kevin Mayec1e5b82020-02-26 17:00:39 +0000339 cb(V1_0::ErrorStatus::NONE, capabilities);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100340 }
341 else
342 {
Kevin May2eaa1192020-04-15 16:50:57 +0100343 capabilities.relaxedFloat32toFloat16PerformanceScalar.execTime = 0;
344 capabilities.relaxedFloat32toFloat16PerformanceScalar.powerUsage = 0;
345 capabilities.relaxedFloat32toFloat16PerformanceTensor.execTime = 0;
346 capabilities.relaxedFloat32toFloat16PerformanceTensor.powerUsage = 0;
Mike Kellyb5fdf382019-06-11 16:35:25 +0100347
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100348 // Set the base value for all operand types
Kevin Mayec1e5b82020-02-26 17:00:39 +0000349 #ifdef ARMNN_ANDROID_R
350 capabilities.operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_2>({0.f, 0.0f});
351 #else
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100352 capabilities.operandPerformance = nonExtensionOperandPerformance({0.f, 0.0f});
Kevin Mayec1e5b82020-02-26 17:00:39 +0000353 #endif
Ferran Balaguerd7c8eb92019-07-01 13:37:44 +0100354
Kevin Mayec1e5b82020-02-26 17:00:39 +0000355 cb(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, capabilities);
Mike Kellyb5fdf382019-06-11 16:35:25 +0100356 }
357
358 return Void();
359}
360
361} // namespace hal_1_2
Kevin Mayec1e5b82020-02-26 17:00:39 +0000362} // namespace armnn_driver