21.02
|
Basic function to execute deconvolution upsample on OpenCL. More...
#include <CLDeconvolutionLayerUpsample.h>
Public Member Functions | |
CLDeconvolutionLayerUpsample () | |
Default constructor. More... | |
CLDeconvolutionLayerUpsample (const CLDeconvolutionLayerUpsample &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDeconvolutionLayerUpsample & | operator= (const CLDeconvolutionLayerUpsample &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDeconvolutionLayerUpsample (CLDeconvolutionLayerUpsample &&)=default | |
Allow instances of this class to be moved. More... | |
CLDeconvolutionLayerUpsample & | operator= (CLDeconvolutionLayerUpsample &&)=default |
Allow instances of this class to be moved. More... | |
~CLDeconvolutionLayerUpsample () | |
Default destructor. More... | |
void | configure (ICLTensor *input, ICLTensor *output, const PadStrideInfo &info) |
Initialize the function's source, destination, interpolation type and border_mode. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const PadStrideInfo &info) |
Initialize the function's source, destination, interpolation type and border_mode. 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, const PadStrideInfo &info) |
Static function to check if given info will lead to a valid configuration of CLDeconvolutionLayerUpsample. More... | |
Basic function to execute deconvolution upsample on OpenCL.
This function calls the following OpenCL kernels and functions:
Definition at line 46 of file CLDeconvolutionLayerUpsample.h.
Default constructor.
Definition at line 34 of file CLDeconvolutionLayerUpsample.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const PadStrideInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
[in,out] | input | Source tensor. Data type supported: All. |
[out] | output | Destination tensor. Data type supported: same as input . |
[in] | info | Contains padding and policies to be used in the deconvolution. |
Definition at line 48 of file CLDeconvolutionLayerUpsample.cpp.
References CLKernelLibrary::get().
Referenced by CLDirectDeconvolutionLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const PadStrideInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Source tensor. Data type supported: All. |
[out] | output | Destination tensor. Data type supported: same as input . |
[in] | info | Contains padding and policies to be used in the deconvolution. |
Definition at line 53 of file CLDeconvolutionLayerUpsample.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, CLFill::configure(), ITensorInfo::data_type(), ITensor::info(), and ITensorInfo::quantization_info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 62 of file CLDeconvolutionLayerUpsample.cpp.
References CLScheduler::enqueue(), CLScheduler::get(), and CLFill::run().
Referenced by CLDirectDeconvolutionLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLDeconvolutionLayerUpsample.
[in] | input | Source tensor info. Data type supported: All. |
[in] | output | Destination tensor info. Data type supported: same as input . |
[in] | info | Contains padding and policies to be used in the deconvolution. |
Definition at line 43 of file CLDeconvolutionLayerUpsample.cpp.
References CLDeconvolutionLayerUpsampleKernel::validate().
Referenced by CLDirectDeconvolutionLayer::validate().