Compute Library
 21.11
MemoryHelpers.h File Reference
#include "arm_compute/core/ITensorPack.h"
#include "arm_compute/core/TensorInfo.h"
#include "arm_compute/core/experimental/Types.h"
#include "arm_compute/runtime/MemoryGroup.h"
#include <memory>
#include <utility>
#include <vector>

Go to the source code of this file.

Data Structures

struct  WorkspaceDataElement< TensorType >
 

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 

Typedefs

template<typename TensorType >
using WorkspaceData = std::vector< WorkspaceDataElement< TensorType > >
 

Functions

int offset_int_vec (int offset)
 
template<typename TensorType >
WorkspaceData< TensorType > manage_workspace (const experimental::MemoryRequirements &mem_reqs, MemoryGroup &mgroup, ITensorPack &run_pack)
 
template<typename TensorType >
WorkspaceData< TensorType > manage_workspace (const experimental::MemoryRequirements &mem_reqs, MemoryGroup &mgroup, ITensorPack &run_pack, ITensorPack &prep_pack)
 
template<typename TensorType >
void release_prepare_tensors (WorkspaceData< TensorType > &workspace, ITensorPack &prep_pack)
 
template<typename TensorType >
void release_temporaries (const experimental::MemoryRequirements &mem_reqs, WorkspaceData< TensorType > &workspace)
 Utility function to release tensors with lifetime marked as Prepare. More...