diff options
author | Cathal Corbett <cathal.corbett@arm.com> | 2022-03-21 09:27:08 +0000 |
---|---|---|
committer | Cathal Corbett <cathal.corbett@arm.com> | 2022-04-01 12:36:11 +0100 |
commit | a3f4fbaf9ce6e30b3d1337bdfbb47b7301f97d1d (patch) | |
tree | ce8d29eefd17a49fe431eba26e75d23dbde5aa81 /include | |
parent | ebbf1d4853afd2f96bca83bfb4c225a78f94ea93 (diff) | |
download | armnn-a3f4fbaf9ce6e30b3d1337bdfbb47b7301f97d1d.tar.gz |
IVGCVSW-6732 Tests surrounded in '#if defined(ARMNNREF_ENABLED)' in android-nn-driver do not execute.
* Change to src/backends/cl/workloads/ClLstmFloatWorkload.cpp fix LstmTests_GpuAcc tests.
* Change to src/backends/cl/workloads/ClConvertFp16ToFp32Workload.hpp & ClConvertFp32ToFp16Workload.hpp
fix MeanTests_GpuAcc and Convolution2DTests_1.1 tests.
* Added UnitTests to src/backends/cl/test/ClImportTensorHandleTests.cpp to test import on Convert Layers.
!android-nn-driver:7264
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: I0c46dc4b9c54eca8771ab12ed0302b6224606957
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/INetwork.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp index d962fe715b..eaec973899 100644 --- a/include/armnn/INetwork.hpp +++ b/include/armnn/INetwork.hpp @@ -810,6 +810,11 @@ protected: const IDeviceSpec& deviceSpec, const OptimizerOptions& options, Optional<std::vector<std::string>&> messages); + friend IOptimizedNetworkPtr Optimize(const Graph& inGraph, + const std::vector<BackendId>& backendPreferences, + const IDeviceSpec& deviceSpec, + const OptimizerOptions& options, + Optional<std::vector<std::string>&> messages); IOptimizedNetwork(std::unique_ptr<Graph> graph, const ModelOptions& modelOptions); @@ -830,4 +835,19 @@ IOptimizedNetworkPtr Optimize(const INetwork& network, const IDeviceSpec& deviceSpec, const OptimizerOptions& options = OptimizerOptions(), Optional<std::vector<std::string>&> messages = EmptyOptional()); + +/// Create an optimized version of the network +/// @param inGraph Graph to be optimized. +/// @param backendPreferences The choice of the backend ordered by user preferences. +/// @param deviceSpec DeviceSpec object as queried from the runtime. See IRuntime::GetDeviceSpec() +/// @param messages If there are failures or warnings a string describing same will be added to the vector +/// @param options OptimizerOptions object with optimizer configuration options +/// @return An IOptimizedNetworkPtr interface to the optimized network, throws an exception derived from +/// armnn::Exception if process fails. + +IOptimizedNetworkPtr Optimize(const Graph& inGraph, + const std::vector<BackendId>& backendPreferences, + const IDeviceSpec& deviceSpec, + const OptimizerOptions& options, + Optional<std::vector<std::string>&> messages = EmptyOptional()); } //namespace armnn |