From 8efb48a6847c5cd166c561127ae6611150963ce3 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 May 2023 11:14:28 +0100 Subject: Update Doxygen docu for 23.05 Signed-off-by: Nikhil Raj Change-Id: I0a992286f14fa68fcc6e5eba31ac39fed003cbbe --- .../classarmnn_1_1_constant_memory_strategy.xhtml | 298 +++++++++++++++++++++ 1 file changed, 298 insertions(+) create mode 100644 23.05/classarmnn_1_1_constant_memory_strategy.xhtml (limited to '23.05/classarmnn_1_1_constant_memory_strategy.xhtml') diff --git a/23.05/classarmnn_1_1_constant_memory_strategy.xhtml b/23.05/classarmnn_1_1_constant_memory_strategy.xhtml new file mode 100644 index 0000000000..72e397c230 --- /dev/null +++ b/23.05/classarmnn_1_1_constant_memory_strategy.xhtml @@ -0,0 +1,298 @@ + + + + + + + + + + + + + +ArmNN: ConstantMemoryStrategy Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.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
+
+ +

Definition at line 16 of file ConstantMemoryStrategy.hpp.

+
17  : m_Name(std::string("ConstantMemoryStrategy"))
+
18  , m_MemBlockStrategyType(MemBlockStrategyType::SingleAxisPacking) {}
+
+

References armnn::SingleAxisPacking.

+ +
+
+

Member Function Documentation

+ +

◆ GetMemBlockStrategyType()

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

Implements IMemoryOptimizerStrategy.

+ +

Definition at line 16 of file ConstantMemoryStrategy.cpp.

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

◆ GetName()

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

Implements IMemoryOptimizerStrategy.

+ +

Definition at line 11 of file ConstantMemoryStrategy.cpp.

+
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.

+
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 }
+
+

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

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + + -- cgit v1.2.1