23.08
|
#include <MemoryGroup.h>
Public Member Functions | |
MemoryGroup (std::shared_ptr< IMemoryManager >=nullptr) noexcept | |
Default Constructor. More... | |
~MemoryGroup ()=default | |
Default destructor. More... | |
MemoryGroup (const MemoryGroup &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
MemoryGroup & | operator= (const MemoryGroup &)=delete |
Prevent instances of this class from being copy assigned (As this class contains pointers) More... | |
MemoryGroup (MemoryGroup &&)=default | |
Allow instances of this class to be moved. More... | |
MemoryGroup & | operator= (MemoryGroup &&)=default |
Allow instances of this class to be moved. More... | |
void | manage (IMemoryManageable *obj) override |
Sets a object to be managed by the given memory group. More... | |
void | finalize_memory (IMemoryManageable *obj, IMemory &obj_memory, size_t size, size_t alignment) override |
Finalizes memory for a given object. More... | |
void | acquire () override |
Acquires backing memory for the whole group. More... | |
void | release () override |
Releases backing memory of the whole group. More... | |
MemoryMappings & | mappings () override |
Gets the memory mapping of the group. More... | |
![]() | |
virtual | ~IMemoryGroup ()=default |
Default virtual destructor. More... | |
Memory group.
Definition at line 43 of file MemoryGroup.h.
|
inlinenoexcept |
Default Constructor.
Definition at line 72 of file MemoryGroup.h.
|
default |
Default destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
inlineoverridevirtual |
Acquires backing memory for the whole group.
Implements IMemoryGroup.
Definition at line 105 of file MemoryGroup.h.
References IMemoryPool::acquire(), and ARM_COMPUTE_ERROR_ON.
Referenced by NEFFT2D::run().
|
inlineoverridevirtual |
Finalizes memory for a given object.
[in,out] | obj | Object to request memory for |
[in,out] | obj_memory | Object's memory handling interface which can be used to alter the underlying memory that is used by the object. |
[in] | size | Size of memory to allocate |
[in] | alignment | (Optional) Alignment to use |
Implements IMemoryGroup.
Definition at line 96 of file MemoryGroup.h.
References ARM_COMPUTE_ERROR_ON.
|
inlineoverridevirtual |
Sets a object to be managed by the given memory group.
[in] | obj | Object to be managed |
Implements IMemoryGroup.
Definition at line 79 of file MemoryGroup.h.
References ARM_COMPUTE_ERROR_ON, and IMemoryManageable::associate_memory_group().
Referenced by CPPBoxWithNonMaximaSuppressionLimit::configure(), CPPDetectionPostProcessLayer::configure(), NEFFT2D::configure(), NEReduceMean::configure(), NERNNLayer::configure(), CLReduceMean::configure(), NEL2NormalizeLayer::configure(), NEReductionOperation::configure(), NEFFT1D::configure(), NEInstanceNormalizationLayer::configure(), NEDetectionPostProcessLayer::configure(), NENormalizationLayer::configure(), CLFFT2D::configure(), CLRNNLayer::configure(), CLFFT1D::configure(), CLDepthwiseConvolutionLayer::configure(), CLL2NormalizeLayer::configure(), CLReductionOperation::configure(), CLArgMinMaxLayer::configure(), NEFFTConvolutionLayer::configure(), NEGenerateProposalsLayer::configure(), NELSTMLayerQuantized::configure(), NELSTMLayer::configure(), CLFFTConvolutionLayer::configure(), NEDeconvolutionLayer::configure(), CLGenerateProposalsLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), NEQLSTMLayer::configure(), CLLSTMLayer::configure(), CLQLSTMLayer::configure(), and arm_compute::manage_workspace().
|
inlineoverridevirtual |
Gets the memory mapping of the group.
Implements IMemoryGroup.
Definition at line 127 of file MemoryGroup.h.
Referenced by arm_compute::test::validation::TEST_CASE().
|
delete |
Prevent instances of this class from being copy assigned (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
inlineoverridevirtual |
Releases backing memory of the whole group.
Implements IMemoryGroup.
Definition at line 115 of file MemoryGroup.h.
References ARM_COMPUTE_ERROR_ON, and IMemoryPool::release().
Referenced by NEFFT2D::run().