From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- 21.11/_optimizer_8hpp_source.xhtml | 122 +++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 21.11/_optimizer_8hpp_source.xhtml (limited to '21.11/_optimizer_8hpp_source.xhtml') diff --git a/21.11/_optimizer_8hpp_source.xhtml b/21.11/_optimizer_8hpp_source.xhtml new file mode 100644 index 0000000000..f94675ef74 --- /dev/null +++ b/21.11/_optimizer_8hpp_source.xhtml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/Optimizer.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Optimizer.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <vector>
8 #include <memory>
9 #include "optimizations/All.hpp"
10 
11 namespace armnn
12 {
13 
14 class Optimizer
15 {
16 public:
17  using OptimizationPtr = std::unique_ptr<Optimization>;
18  using Optimizations = std::vector<OptimizationPtr>;
19 
20  static void Pass(Graph& graph, const Optimizations& optimizations);
21 
22 private:
23  ~Optimizer() = default;
24 
25  Optimizer();
26 };
27 
28 
29 template<typename T>
30 void Append(Optimizer::Optimizations& optimizations, T&& optimization)
31 {
32  optimizations.emplace_back(new T(optimization));
33 };
34 
35 template<typename Front, typename... Others>
36 void Append(Optimizer::Optimizations& optimizations, Front&& front, Others&&... others)
37 {
38  Append<Front>(optimizations, std::forward<Front>(front));
39  Append<Others...>(optimizations, std::forward<Others>(others)...);
40 };
41 
42 template<typename... Args>
44 {
45  Optimizer::Optimizations optimizations;
46 
47  Append(optimizations, std::forward<Args>(args)...);
48 
49  return optimizations;
50 }
51 
52 } // namespace armnn
Optimizer::Optimizations MakeOptimizations(Args &&... args)
Definition: Optimizer.hpp:43
+
static void Pass(Graph &graph, const Optimizations &optimizations)
Definition: Optimizer.cpp:16
+
std::vector< OptimizationPtr > Optimizations
Definition: Optimizer.hpp:18
+
Copyright (c) 2021 ARM Limited and Contributors.
+
void Append(Optimizer::Optimizations &optimizations, T &&optimization)
Definition: Optimizer.hpp:30
+ + +
std::unique_ptr< Optimization > OptimizationPtr
Definition: Optimizer.hpp:17
+ +
+
+ + + + -- cgit v1.2.1