21.02
|
Basic function to run CLConvertFullyConnectedWeightsKernel. More...
#include <CLConvertFullyConnectedWeights.h>
Public Member Functions | |
void | configure (const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape, DataLayout data_layout) |
Initialize the function. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape, DataLayout data_layout) |
Initialize the function. 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 TensorShape &original_input_shape, DataLayout data_layout) |
Static function to check if given info will lead to a valid configuration of CLConvertFullyConnectedWeights. More... | |
Basic function to run CLConvertFullyConnectedWeightsKernel.
Definition at line 40 of file CLConvertFullyConnectedWeights.h.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const TensorShape & | original_input_shape, | ||
DataLayout | data_layout | ||
) |
Initialize the function.
[in] | input | Source weights tensor to convert. Must be 2 dimensional. Data types supported: All. |
[out] | output | The converted weights tensor. Shape and Data Type: Same as input . |
[in] | original_input_shape | Shape of the original input tensor (the one entering fully connected layer). |
[in] | data_layout | The data layout the weights have been trained in. |
Definition at line 30 of file CLConvertFullyConnectedWeights.cpp.
References CLKernelLibrary::get().
Referenced by CLConvertFullyConnectedWeightsManaged::configure(), and CLFullyConnectedLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const TensorShape & | original_input_shape, | ||
DataLayout | data_layout | ||
) |
Initialize the function.
[in] | compile_context | The compile context to be used. |
[in] | input | Source weights tensor to convert. Must be 2 dimensional. Data types supported: All. |
[out] | output | The converted weights tensor. Shape and Data Type: Same as input . |
[in] | original_input_shape | Shape of the original input tensor (the one entering fully connected layer). |
[in] | data_layout | The data layout the weights have been trained in. |
Definition at line 36 of file CLConvertFullyConnectedWeights.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLConvertFullyConnectedWeights.
[in] | input | Source weights tensor info to convert. Must be 2 dimensional. Data types supported: All. |
[in] | output | The converted weights tensor info. Shape and Data Type: Same as input . |
[in] | original_input_shape | Shape of the original input tensor (the one entering fully connected layer). |
[in] | data_layout | The data layout the weights have been trained in. |
Definition at line 44 of file CLConvertFullyConnectedWeights.cpp.
References CLConvertFullyConnectedWeightsKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), and CLFullyConnectedLayer::validate().