diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/Types.hpp | 4 | ||||
-rw-r--r-- | include/armnn/backends/IMemoryOptimizerStrategy.hpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index e713b8989e..02f265c6e3 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -212,12 +212,12 @@ enum class MemorySource : uint32_t enum class MemBlockStrategyType { - // MemBlocks can be packed on the Y axis only. + // MemBlocks can be packed on the Y axis only, overlap allowed on X axis. // In other words MemBlocks with overlapping lifetimes cannot use the same MemBin, // equivalent to blob or pooling memory management. SingleAxisPacking = 0, - // MemBlocks can be packed on the Y and X axis. + // MemBlocks can be packed on either Y or X axis but cannot overlap on both. // In other words MemBlocks with overlapping lifetimes can use the same MemBin, // equivalent to offset or slab memory management. MultiAxisPacking = 1 diff --git a/include/armnn/backends/IMemoryOptimizerStrategy.hpp b/include/armnn/backends/IMemoryOptimizerStrategy.hpp index ec6d838aae..ad5513f8a3 100644 --- a/include/armnn/backends/IMemoryOptimizerStrategy.hpp +++ b/include/armnn/backends/IMemoryOptimizerStrategy.hpp @@ -22,8 +22,8 @@ struct MemBlock const unsigned int m_StartOfLife; // Y start const unsigned int m_EndOfLife; // Y end - const size_t m_MemSize; // X start - size_t m_Offset; // X end + const size_t m_MemSize; // Offset + Memsize = X end + size_t m_Offset; // X start const unsigned int m_Index; // Index to keep order }; @@ -40,7 +40,7 @@ struct MemBin // A IMemoryOptimizerStrategy must ensure that // 1: All MemBlocks have been assigned to a MemBin // 2: No MemBlock is assigned to multiple MemBins -// 3: No two MemBlocks in a MemBin overlap in the X dimension +// 3: No two Memblocks in a MemBin overlap in both the X and Y axis // (a strategy cannot change the y axis or length of a MemBlock) class IMemoryOptimizerStrategy { |