23.11
|
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... | |
![]() | |
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 45 of file CLFill.cpp.
|
default |
Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
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, and tensor.
void configure | ( | ICLTensor * | tensor, |
const PixelValue & | constant_value, | ||
Window * | window = nullptr |
||
) |
Initialize the kernel's tensor and filling value.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[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(), and tensor.
Referenced by CLDeconvolutionLayerUpsample::configure(), CLSpaceToBatchLayer::configure(), CLMaxUnpoolingLayer::configure(), CLLSTMLayer::configure(), and CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder< K, bordersize >::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 75 of file CLFill.cpp.
References arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by CLDeconvolutionLayerUpsample::run(), CLMaxUnpoolingLayer::run(), CLSpaceToBatchLayer::run(), CLSynthetizeFunctionInitOutputWithZeroAndWithZeroConstantBorder< K, bordersize >::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 70 of file CLFill.cpp.
References tensor, and ClFill::validate().
Referenced by CLSpaceToBatchLayer::validate().