21.02
|
Basic function to run opencl::kernels::ClCopyKernel. More...
#include <CLCopy.h>
Public Member Functions | |
CLCopy () | |
Constructor. More... | |
~CLCopy () | |
Destructor. More... | |
CLCopy (const CLCopy &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLCopy (CLCopy &&) | |
Default move constructor. More... | |
CLCopy & | operator= (const CLCopy &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLCopy & | operator= (CLCopy &&) |
Default move assignment operator. More... | |
void | configure (ICLTensor *input, ICLTensor *output, Window *dst_window=nullptr) |
Initialise the function's source and destination. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, Window *dst_window=nullptr) |
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, Window *dst_window=nullptr) |
Static function to check if given info will lead to a valid configuration of CLCopy. More... | |
Basic function to run opencl::kernels::ClCopyKernel.
CLCopy | ( | ) |
Constructor.
Definition at line 44 of file CLCopy.cpp.
References CLCopy::operator=(), and CLCopy::~CLCopy().
|
default |
Destructor.
Referenced by CLCopy::CLCopy().
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 . |
[in] | dst_window | (Optional) Window to be used in case only copying into part of a tensor. Default is nullptr. |
Definition at line 52 of file CLCopy.cpp.
References CLKernelLibrary::get().
Referenced by CLRNNLayer::configure(), CLPadLayer::configure(), CLLSTMLayer::configure(), and CLQLSTMLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
Window * | dst_window = nullptr |
||
) |
Initialise the function's source and destination.
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor. Data types supported: All. |
[out] | output | Output tensor. Data types supported: Same as input . |
[in] | dst_window | (Optional) Window to be used in case only copying into part of a tensor. Default is nullptr. |
Definition at line 57 of file CLCopy.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, and arm_compute::test::validation::input.
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLCopy::CLCopy().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 73 of file CLCopy.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by CLRNNLayer::run(), CLPadLayer::run(), CLLSTMLayer::run(), and CLQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLCopy.
[in] | input | Source tensor. Data types supported: All. |
[in] | output | Output tensor. Data types supported: Same as input . |
[in] | dst_window | (Optional) Window to be used in case only copying into part of a tensor. Default is nullptr. |
Definition at line 68 of file CLCopy.cpp.
References ClCopy::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), CLPadLayer::validate(), CLLSTMLayer::validate(), and CLQLSTMLayer::validate().