Compute Library
 23.08
AuxMemoryInfo Struct Reference

Memory information for tensors with MemoryType::Auxiliary. More...

#include <MemoryDescriptor.h>

Public Member Functions

 AuxMemoryInfo ()=default
 
 AuxMemoryInfo (size_t size, size_t alignment=0) noexcept
 

Data Fields

size_t size { 0 }
 Total memory size in bytes. More...
 
size_t alignment { 0 }
 Memory alignment in bytes. More...
 

Friends

bool operator== (const AuxMemoryInfo &info0, const AuxMemoryInfo &info1)
 

Detailed Description

Memory information for tensors with MemoryType::Auxiliary.

This informs how much additional memory is required for auxiliary tensors

Definition at line 65 of file MemoryDescriptor.h.

Constructor & Destructor Documentation

◆ AuxMemoryInfo() [1/2]

AuxMemoryInfo ( )
default

◆ AuxMemoryInfo() [2/2]

AuxMemoryInfo ( size_t  size,
size_t  alignment = 0 
)
inlinenoexcept

Definition at line 69 of file MemoryDescriptor.h.

70  : size(size),
72  {
73  }

Friends And Related Function Documentation

◆ operator==

bool operator== ( const AuxMemoryInfo info0,
const AuxMemoryInfo info1 
)
friend

Definition at line 75 of file MemoryDescriptor.h.

76  {
77  return info0.size == info1.size && info0.alignment == info1.alignment;
78  }

Field Documentation

◆ alignment

size_t alignment { 0 }

Memory alignment in bytes.

Definition at line 80 of file MemoryDescriptor.h.

Referenced by arm_compute::test::validation::TEST_CASE().

◆ size

size_t size { 0 }

Total memory size in bytes.

Definition at line 79 of file MemoryDescriptor.h.


The documentation for this struct was generated from the following file:
arm_compute::experimental::dynamic_fusion::AuxMemoryInfo::size
size_t size
Total memory size in bytes.
Definition: MemoryDescriptor.h:79
arm_compute::experimental::dynamic_fusion::AuxMemoryInfo::alignment
size_t alignment
Memory alignment in bytes.
Definition: MemoryDescriptor.h:80