21.02
|
Basic function to reshape the weights of Fully Connected layer with OpenCL. More...
#include <CLFullyConnectedLayer.h>
Public Member Functions | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
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) |
Static function to check if given info will lead to a valid configuration of CLFullyConnectedLayerReshapeWeights. More... | |
Basic function to reshape the weights of Fully Connected layer with OpenCL.
This function calls the following kernels:
Definition at line 45 of file CLFullyConnectedLayer.h.
Set the input and output tensors.
[in] | input | Weights tensor. The weights must be 2 dimensional. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | output | Destination tensor which stores the transposed input tensor. Data type supported: Same as input . |
Definition at line 144 of file CLFullyConnectedLayer.cpp.
References CLKernelLibrary::get().
Referenced by CLFullyConnectedLayerReshapeWeightsManaged::configure(), and CLFullyConnectedLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | input | Weights tensor. The weights must be 2 dimensional. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | output | Destination tensor which stores the transposed input tensor. Data type supported: Same as input . |
Definition at line 149 of file CLFullyConnectedLayer.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLFullyConnectedLayerReshapeWeights.
[in] | input | Weights tensor. The weights must be 2 dimensional. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | output | Destination tensor which stores the transposed input tensor. Data type supported: Same as input . |
Definition at line 156 of file CLFullyConnectedLayer.cpp.
References CLTransposeKernel::validate().
Referenced by CLFullyConnectedLayer::validate().