21.02
|
Basic function to run pooling assembly kernels. More...
#include <CpuPoolingAssemblyDispatch.h>
Public Member Functions | |
CpuPoolingAssemblyDispatch (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
CpuPoolingAssemblyDispatch (const CpuPoolingAssemblyDispatch &)=delete | |
Prevent instances of this class from being copied. More... | |
CpuPoolingAssemblyDispatch (CpuPoolingAssemblyDispatch &&)=default | |
Default move constructor. More... | |
CpuPoolingAssemblyDispatch & | operator= (const CpuPoolingAssemblyDispatch &)=delete |
Prevent instances of this class from being copied. More... | |
CpuPoolingAssemblyDispatch & | operator= (CpuPoolingAssemblyDispatch &&)=default |
Default move assignment operator. More... | |
~CpuPoolingAssemblyDispatch () | |
Destructor. More... | |
void | configure (const ITensorInfo *src, ITensorInfo *dst, const PoolingLayerInfo &info) |
If supported create an assembly routine, else fallback to Compute Library function. More... | |
bool | is_configured () const |
Was the function successfully configured ? More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from INEOperator | |
INEOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INEOperator (const INEOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator (INEOperator &&)=default | |
Default move constructor. More... | |
INEOperator & | operator= (const INEOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator & | operator= (INEOperator &&)=default |
Default move assignment operator. More... | |
~INEOperator () | |
Default destructor. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst, const PoolingLayerInfo &info) |
Indicates whether or not this function can be used to process the given parameters. More... | |
Basic function to run pooling assembly kernels.
Definition at line 40 of file CpuPoolingAssemblyDispatch.h.
CpuPoolingAssemblyDispatch | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor.
Definition at line 35 of file CpuPoolingAssemblyDispatch.cpp.
|
delete |
Prevent instances of this class from being copied.
|
default |
Default move constructor.
|
default |
Destructor.
void configure | ( | const ITensorInfo * | src, |
ITensorInfo * | dst, | ||
const PoolingLayerInfo & | info | ||
) |
If supported create an assembly routine, else fallback to Compute Library function.
[in] | src | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | dst | Destination tensor info to store the result of pooling. Data types supported: same as src . |
[in] | info | Pooling meta-data |
Definition at line 44 of file CpuPoolingAssemblyDispatch.cpp.
References TensorAllocator::allocate(), Tensor::allocator(), ARM_COMPUTE_ERROR_ON, IScheduler::cpu_info(), ITensorInfo::dimension(), Scheduler::get(), Size2D::height, TensorAllocator::init(), MemoryGroup::manage(), IScheduler::num_threads(), PoolingLayerInfo::pool_size, arm_compute::S8, CpuPoolingAssemblyDispatch::validate(), and Size2D::width.
bool is_configured | ( | ) | const |
Was the function successfully configured ?
Definition at line 77 of file CpuPoolingAssemblyDispatch.cpp.
|
delete |
Prevent instances of this class from being copied.
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from INEOperator.
Definition at line 82 of file CpuPoolingAssemblyDispatch.cpp.
References arm_compute::ACL_DST_1, ITensorPack::add_tensor(), ARM_COMPUTE_ERROR_ON_MSG, Window::DimX, Window::DimY, ITensorPack::empty(), Scheduler::get(), and IScheduler::schedule_op().
|
static |
Indicates whether or not this function can be used to process the given parameters.
[in] | src | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | dst | Destination tensor to store the result of pooling. Data types supported: same as src . |
[in] | info | Pooling meta-data |
Definition at line 72 of file CpuPoolingAssemblyDispatch.cpp.
References CpuPoolingAssemblyWrapperKernel::validate().
Referenced by CpuPoolingAssemblyDispatch::configure(), CpuPooling::configure(), and CpuPooling::validate().