Compute Library
 21.05
ClCopy Class Reference

Basic function to run kernels::ClCopyKernel. More...

#include <ClCopy.h>

Collaboration diagram for ClCopy:
[legend]

Public Member Functions

 ClCopy ()=default
 Constructor. More...
 
void configure (const CLCompileContext &compile_context, ITensorInfo *src, ITensorInfo *dst, Window *dst_window=nullptr)
 Initialise the function's source and destination. More...
 
- Public Member Functions inherited from ICLOperator
 ICLOperator (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLOperator (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLOperator (ICLOperator &&)=default
 Default move constructor. More...
 
ICLOperatoroperator= (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLOperatoroperator= (ICLOperator &&)=default
 Default move assignment operator. 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...
 
- Public Member Functions inherited from IOperator
virtual ~IOperator ()=default
 Destructor. More...
 

Static Public Member Functions

static Status validate (const ITensorInfo *src, const ITensorInfo *dst, Window *dst_window=nullptr)
 Static function to check if given info will lead to a valid configuration of kernels::ClCopyKernel. More...
 

Detailed Description

Basic function to run kernels::ClCopyKernel.

Definition at line 36 of file ClCopy.h.

Constructor & Destructor Documentation

◆ ClCopy()

ClCopy ( )
default

Constructor.

Member Function Documentation

◆ configure()

void configure ( const CLCompileContext compile_context,
ITensorInfo src,
ITensorInfo dst,
Window dst_window = nullptr 
)

Initialise the function's source and destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]srcSource tensor info. Data types supported: All.
[out]dstOutput tensor info. Data types supported: Same as src.
[in]dst_window(Optional) Window to be used in case only copying into part of a tensor. Default is nullptr.

Definition at line 33 of file ClCopy.cpp.

34 {
35  auto k = std::make_unique<kernels::ClCopyKernel>();
36  k->configure(compile_context, src, dst, dst_window);
37  _kernel = std::move(k);
38 }
SimpleTensor< float > src
Definition: DFT.cpp:155

References arm_compute::test::validation::dst, and arm_compute::test::validation::src.

◆ validate()

Status validate ( const ITensorInfo src,
const ITensorInfo dst,
Window dst_window = nullptr 
)
static

Static function to check if given info will lead to a valid configuration of kernels::ClCopyKernel.

Parameters
[in]srcSource tensor info. Data types supported: All.
[in]dstOutput tensor info. Data types supported: Same as src.
[in]dst_window(Optional) Window to be used in case only copying into part of a tensor. Default is nullptr.
Returns
a status

Definition at line 40 of file ClCopy.cpp.

41 {
42  return kernels::ClCopyKernel::validate(src, dst, dst_window);
43 }
SimpleTensor< float > src
Definition: DFT.cpp:155
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, Window *dst_window=nullptr)
Static function to check if given info will lead to a valid configuration of ClCopyKernel.

References arm_compute::test::validation::dst, arm_compute::test::validation::src, and ClCopyKernel::validate().

Referenced by CLCopy::validate().


The documentation for this class was generated from the following files: