21.02
|
Basic interface for functions which have a single async Neon kernel. More...
#include <INEOperator.h>
Public Member Functions | |
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 | run (ITensorPack &tensors) override |
Run the kernels contained in the function. 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... | |
![]() | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Basic interface for functions which have a single async Neon kernel.
Definition at line 41 of file INEOperator.h.
INEOperator | ( | IRuntimeContext * | ctx = nullptr | ) |
Constructor.
[in] | ctx | Runtime context to be used by the function |
Definition at line 35 of file INEOperator.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
|
default |
Default destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Prepare the function for executing.
Any one off pre-processing step required by the function is handled here
[in] | constants | Vector that contains the constants tensors. |
Implements IOperator.
Definition at line 50 of file INEOperator.cpp.
References ARM_COMPUTE_UNUSED.
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Implements IOperator.
Reimplemented in CpuPooling, CpuSoftmaxGeneric< IS_LOG >, CpuPoolingAssemblyDispatch, and CpuConcatenate.
Definition at line 40 of file INEOperator.cpp.
References ARM_COMPUTE_ERROR, Window::DimY, ITensorPack::empty(), Scheduler::get(), and IScheduler::schedule_op().
Referenced by CpuSoftmaxGeneric< IS_LOG >::run().
|
overridevirtual |
Return the memory requirements required by the workspace.
Implements IOperator.
Reimplemented in CpuSoftmaxGeneric< IS_LOG >.
Definition at line 55 of file INEOperator.cpp.