21.02
|
Basic function to run cpu::kernels::CpuCopyKernel. More...
#include <NECopy.h>
Public Member Functions | |
NECopy () | |
Default Constructor. More... | |
~NECopy () | |
Default Destructor. More... | |
NECopy (const NECopy &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NECopy (NECopy &&) | |
Default move constructor. More... | |
NECopy & | operator= (const NECopy &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NECopy & | operator= (NECopy &&) |
Default move assignment operator. More... | |
void | configure (ITensor *input, ITensor *output) |
Initialise the function's source and destination. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of NECopy. More... | |
Basic function to run cpu::kernels::CpuCopyKernel.
NECopy | ( | ) |
Default Constructor.
Definition at line 40 of file NECopy.cpp.
References NECopy::operator=(), and NECopy::~NECopy().
|
default |
Default Destructor.
Referenced by NECopy::NECopy().
Prevent instances of this class from being copied (As this class contains pointers)
Initialise the function's source and destination.
[in] | input | Source tensor. Data types supported: All |
[out] | output | Output tensor. Data types supported: Same as input . |
Definition at line 48 of file NECopy.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ITensor::info(), and arm_compute::test::validation::input.
Referenced by NERNNLayer::configure(), NEPadLayer::configure(), NELSTMLayer::configure(), and NEQLSTMLayer::configure().
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NECopy::NECopy().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 66 of file NECopy.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by NERNNLayer::run(), NEPadLayer::run(), NELSTMLayer::run(), and NEQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NECopy.
[in] | input | Source tensor. Data types supported: All |
[in] | output | Output tensor. Data types supported: Same as input . |
Definition at line 58 of file NECopy.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, and CpuCopy::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), NELSTMLayer::validate(), and NEQLSTMLayer::validate().