aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2021-02-18 11:47:11 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2021-02-18 16:16:08 +0000
commitcbe2cdf62d8cb0054c44968884535d96f88076d1 (patch)
tree039799507cead4c120c3feddf9d36401a695948f
parent8ae17b3f69d43b6c85c073d6420441858f20afaa (diff)
downloadarmnn-cbe2cdf62d8cb0054c44968884535d96f88076d1.tar.gz
Remove unnecessary friend function
IOptimizedNetwork declares a friend function (CreatePreCompiledWorkloadTest) that is not necessary as that function does not use any of the non-public members of the class. I suspect this is leftover after a refactor, as the function in question uses GetGraphForTesting() to access the internals instead. This friend declaration was causing me a compilation error as the namespace of the declared friend function did not match the namespace of the definition. Removing it solves the compilation error and tidies up the code. Change-Id: I4aa893cb5108cd3b72ca355f725fe7a0cd053a7e Signed-off-by: Rob Hughes <robert.hughes@arm.com>
-rw-r--r--include/armnn/INetwork.hpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/armnn/INetwork.hpp b/include/armnn/INetwork.hpp
index 98c9f3f8da..d1d4744a42 100644
--- a/include/armnn/INetwork.hpp
+++ b/include/armnn/INetwork.hpp
@@ -720,12 +720,6 @@ protected:
const OptimizerOptions& options,
Optional<std::vector<std::string>&> messages);
- template <typename PreCompiledWorkload, armnn::DataType dataType>
- friend std::pair<armnn::IOptimizedNetworkPtr, std::unique_ptr<PreCompiledWorkload>> CreatePreCompiledWorkloadTest(
- armnn::IWorkloadFactory& factory,
- armnn::Graph& graph,
- bool biasEnabled);
-
IOptimizedNetwork(std::unique_ptr<Graph> graph, const ModelOptions& modelOptions);
std::unique_ptr<OptimizedNetworkImpl> pOptimizedNetworkImpl;