From 549b9600a6eaf0727fa084465a75f173edf8f381 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 24 May 2022 11:32:07 +0100 Subject: Update 22.05 Doxygen Docs after updates to main Readme Signed-off-by: Nikhil Raj Change-Id: I56711772406a41ff81fa136a5fb6c59c9b9cf504 --- .../classarmnn_1_1_constant_memory_strategy.xhtml | 277 +++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 22.05/classarmnn_1_1_constant_memory_strategy.xhtml (limited to '22.05/classarmnn_1_1_constant_memory_strategy.xhtml') diff --git a/22.05/classarmnn_1_1_constant_memory_strategy.xhtml b/22.05/classarmnn_1_1_constant_memory_strategy.xhtml new file mode 100644 index 0000000000..5176e776e6 --- /dev/null +++ b/22.05/classarmnn_1_1_constant_memory_strategy.xhtml @@ -0,0 +1,277 @@ + + + + + + + + + + + + + +ArmNN: ConstantMemoryStrategy Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ConstantMemoryStrategy Class Reference
+
+
+ +

#include <ConstantMemoryStrategy.hpp>

+
+Inheritance diagram for ConstantMemoryStrategy:
+
+
+ + +IMemoryOptimizerStrategy + +
+ + + + + + + + + + + + + +

+Public Member Functions

 ConstantMemoryStrategy ()
 
std::string GetName () const override
 
MemBlockStrategyType GetMemBlockStrategyType () const override
 
std::vector< MemBinOptimize (std::vector< MemBlock > &memBlocks) override
 
- Public Member Functions inherited from IMemoryOptimizerStrategy
virtual ~IMemoryOptimizerStrategy ()
 
+

Detailed Description

+
+

Definition at line 13 of file ConstantMemoryStrategy.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ConstantMemoryStrategy()

+ +
+
+ + + + + +
+ + + + + + + +
ConstantMemoryStrategy ()
+
+inline
+
+
+

Member Function Documentation

+ +

◆ GetMemBlockStrategyType()

+ +
+
+ + + + + +
+ + + + + + + +
MemBlockStrategyType GetMemBlockStrategyType () const
+
+overridevirtual
+
+ +

Implements IMemoryOptimizerStrategy.

+ +

Definition at line 16 of file ConstantMemoryStrategy.cpp.

+ +

Referenced by ConstantMemoryStrategy::ConstantMemoryStrategy(), and TEST_SUITE().

+
17 {
18  return m_MemBlockStrategyType;
19 }
+
+
+ +

◆ GetName()

+ +
+
+ + + + + +
+ + + + + + + +
std::string GetName () const
+
+overridevirtual
+
+ +

Implements IMemoryOptimizerStrategy.

+ +

Definition at line 11 of file ConstantMemoryStrategy.cpp.

+ +

Referenced by ConstantMemoryStrategy::ConstantMemoryStrategy(), and TEST_SUITE().

+
12 {
13  return m_Name;
14 }
+
+
+ +

◆ Optimize()

+ +
+
+ + + + + +
+ + + + + + + + +
std::vector< MemBin > Optimize (std::vector< MemBlock > & memBlocks)
+
+overridevirtual
+
+ +

Implements IMemoryOptimizerStrategy.

+ +

Definition at line 25 of file ConstantMemoryStrategy.cpp.

+ +

References MemBin::m_MemBlocks, and MemBin::m_MemSize.

+ +

Referenced by ConstantMemoryStrategy::ConstantMemoryStrategy(), and TEST_SUITE().

+
26 {
27  std::vector<MemBin> memBins;
28  memBins.reserve(memBlocks.size());
29 
30  for (auto& memBlock : memBlocks)
31  {
32  MemBin memBin;
33  memBin.m_MemSize = memBlock.m_MemSize;
34  memBin.m_MemBlocks.reserve(1);
35  memBlock.m_Offset = 0;
36  memBin.m_MemBlocks.push_back(memBlock);
37  memBins.push_back(memBin);
38  }
39 
40  return memBins;
41 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1