21.02
|
Basic function to execute a CLWinogradInputTransformKernel. More...
#include <CLWinogradInputTransform.h>
Public Member Functions | |
void | configure (ICLTensor *input, ICLTensor *output, const WinogradInfo &winograd_info) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const WinogradInfo &winograd_info) |
Set the input and output tensors. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
Default destructor. More... | |
void | run () override final |
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 WinogradInfo &winograd_info) |
Static function to check if given info will lead to a valid configuration of CLWinogradInputTransform. More... | |
Basic function to execute a CLWinogradInputTransformKernel.
Definition at line 39 of file CLWinogradInputTransform.h.
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const WinogradInfo & | winograd_info | ||
) |
Set the input and output tensors.
Strides: only unit strides
[in] | input | The input tensor to transform. Data types supported: F16,F32 |
[in] | output | The output tensor. The shape for this tensor can be calculated using the utility function compute_winograd_input_transform_shape . Data types supported: Same as input |
[in] | winograd_info | Contains Winograd's information described in WinogradInfo. |
Definition at line 33 of file CLWinogradInputTransform.cpp.
References CLKernelLibrary::get().
Referenced by CLWinogradConvolutionLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const WinogradInfo & | winograd_info | ||
) |
Set the input and output tensors.
Strides: only unit strides
[in] | compile_context | The compile context to be used. |
[in] | input | The input tensor to transform. Data types supported: F16,F32 |
[in] | output | The output tensor. The shape for this tensor can be calculated using the utility function compute_winograd_input_transform_shape . Data types supported: Same as input |
[in] | winograd_info | Contains Winograd's information described in WinogradInfo. |
Definition at line 38 of file CLWinogradInputTransform.cpp.
References arm_compute::CONSTANT.
|
static |
Static function to check if given info will lead to a valid configuration of CLWinogradInputTransform.
Strides: only unit strides
[in] | input | The input tensor to transform. Data types supported: F16,F32 |
[in] | output | The output tensor. The shape for this tensor can be calculated using the utility function compute_winograd_input_transform_shape . Data types supported: Same as input |
[in] | winograd_info | Contains Winograd's information described in WinogradInfo. |
Definition at line 46 of file CLWinogradInputTransform.cpp.
References ARM_COMPUTE_RETURN_ON_ERROR, and CLWinogradInputTransformKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), and CLWinogradConvolutionLayer::validate().