21.02
|
Basic function to run opencl::kernels::ClFillKernel. More...
#include <CLFill.h>
Public Member Functions | |
CLFill () | |
Constructor. More... | |
~CLFill () | |
Destructor. More... | |
CLFill (const CLFill &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFill (CLFill &&) | |
Default move constructor. More... | |
CLFill & | operator= (const CLFill &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLFill & | operator= (CLFill &&) |
Default move assignment operator. More... | |
void | configure (ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr) |
Initialize the kernel's tensor and filling value. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr) |
Initialise the kernel's tensor and filling value. 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 *tensor, const PixelValue &constant_value, Window *window=nullptr) |
Static function to check if given info will lead to a valid configuration of CLFill. More... | |
Basic function to run opencl::kernels::ClFillKernel.
CLFill | ( | ) |
Constructor.
Definition at line 44 of file CLFill.cpp.
References CLFill::operator=(), and CLFill::~CLFill().
|
default |
Destructor.
Referenced by CLFill::CLFill().
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | ICLTensor * | tensor, |
const PixelValue & | constant_value, | ||
Window * | window = nullptr |
||
) |
Initialize the kernel's tensor and filling value.
[in,out] | tensor | Input tensor to fill. Supported data types: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 52 of file CLFill.cpp.
References CLKernelLibrary::get().
Referenced by CLDeconvolutionLayerUpsample::configure(), CLSpaceToBatchLayer::configure(), CLMaxUnpoolingLayer::configure(), and CLLSTMLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | tensor, | ||
const PixelValue & | constant_value, | ||
Window * | window = nullptr |
||
) |
Initialise the kernel's tensor and filling value.
[in] | compile_context | The compile context to be used. |
[in,out] | tensor | Input tensor to fill. Supported data types: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 57 of file CLFill.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR.
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLFill::CLFill().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 72 of file CLFill.cpp.
References arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by CLDeconvolutionLayerUpsample::run(), CLMaxUnpoolingLayer::run(), CLSpaceToBatchLayer::run(), and CLLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLFill.
[in] | tensor | Source tensor info. Data types supported: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 67 of file CLFill.cpp.
References ClFill::validate().
Referenced by CLSpaceToBatchLayer::validate().