24.02.1
|
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 41 of file NECopy.cpp.
|
default |
Default Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
Initialise the function's source and destination.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[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)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 66 of file NECopy.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
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, arm_compute::test::validation::input, and CpuCopy::validate().
Referenced by NELSTMLayer::validate(), and NEQLSTMLayer::validate().