24.02.1
|
Basic function to simulate a directly convolution layer. More...
#include <ClTransposedConvolution.h>
Public Member Functions | |
ClTransposedConvolution ()=default | |
Default constructor. More... | |
~ClTransposedConvolution ()=default | |
Default Destructor. More... | |
ClTransposedConvolution (const ClTransposedConvolution &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ClTransposedConvolution (ClTransposedConvolution &&)=default | |
Default move constructor. More... | |
ClTransposedConvolution & | operator= (const ClTransposedConvolution &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ClTransposedConvolution & | operator= (ClTransposedConvolution &&)=default |
Default move assignment operator. More... | |
void | configure (const CLCompileContext &compile_context, const ITensorInfo *input, const ITensorInfo *weights, const ITensorInfo *biases, ITensorInfo *output, const PadStrideInfo &deconv_info) |
Set the input, weights, biases and output tensors. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. 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... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. 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 *input, const ITensorInfo *weights, const ITensorInfo *biases, const ITensorInfo *output, const PadStrideInfo &deconv_info) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to simulate a directly convolution layer.
This function calls the following OpenCL kernels:
Definition at line 38 of file ClTransposedConvolution.h.
|
default |
Default constructor.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ITensorInfo * | input, | ||
const ITensorInfo * | weights, | ||
const ITensorInfo * | biases, | ||
ITensorInfo * | output, | ||
const PadStrideInfo & | deconv_info | ||
) |
Set the input, weights, biases and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | input | Input tensor info with dimensions [IFM, width, height, batch] Data types supported: F16/F32/QASYMM8/QASYMM8_SIGNED. |
[in] | weights | Weight tensor info with dimensions [IFM, width, height, OFM]. Data type supported: Same as input |
[in] | biases | (Optional) Biases tensor info. Biases are 1D tensor with dimension [OFM]. Data type supported: Should match input data type if floating point, otherwise S32. |
[out] | output | Output tensor info with dimensions [OFM, width, height, batch] The 1st dimension must be equal to the 4th dimension of the weights tensor. Data types supported: Same as input . |
[in] | deconv_info | Contains padding and stride information described in PadStrideInfo. |
Definition at line 36 of file ClTransposedConvolution.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_LOG_PARAMS, CLScheduler::get(), and arm_compute::test::validation::input.
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from ICLOperator.
Definition at line 62 of file ClTransposedConvolution.cpp.
References CLScheduler::enqueue_op(), and CLScheduler::get().
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to ClTransposedConvolution::configure()
Definition at line 51 of file ClTransposedConvolution.cpp.
References ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::input, and ClTransposedConvolutionKernel::validate().
Referenced by CLDeconvolutionLayer::validate().