23.08
|
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... | |
![]() | |
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 46 of file CLCopy.cpp.
|
default |
Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
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 59 of file CLCopy.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
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 . |
[in] | dst_window | (Optional) Window to be used in case only copying into part of a tensor. Default is nullptr. |
Definition at line 54 of file CLCopy.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLRNNLayer::configure(), CLPadLayer::configure(), CLLSTMLayer::configure(), and CLQLSTMLayer::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 76 of file CLCopy.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
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 71 of file CLCopy.cpp.
References arm_compute::test::validation::input, and ClCopy::validate().
Referenced by CLPadLayer::validate(), CLLSTMLayer::validate(), and CLQLSTMLayer::validate().