Compute Library
 19.08
CLConvertFullyConnectedWeights Class Reference

Basic function to run CLConvertFullyConnectedWeightsKernel. More...

#include <CLConvertFullyConnectedWeights.h>

Collaboration diagram for CLConvertFullyConnectedWeights:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output, const TensorShape &original_input_shape, DataLayout data_layout)
 Initialize the function. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 Default constructor. 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...
 

Detailed Description

Basic function to run CLConvertFullyConnectedWeightsKernel.

Definition at line 35 of file CLConvertFullyConnectedWeights.h.

Member Function Documentation

◆ configure()

void configure ( const ICLTensor input,
ICLTensor output,
const TensorShape original_input_shape,
DataLayout  data_layout 
)

Initialize the function.

Parameters
[in]inputSource weights tensor to convert. Must be 2 dimensional. Data types supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32.
[out]outputThe converted weights tensor. Shape and Data Type: Same as input.
[in]original_input_shapeShape of the original input tensor (the one entering fully connected layer).
[in]data_layoutThe data layout the weights have been trained in.

Definition at line 28 of file CLConvertFullyConnectedWeights.cpp.

30 {
31  auto k = arm_compute::support::cpp14::make_unique<CLConvertFullyConnectedWeightsKernel>();
32  k->configure(input, output, original_input_shape, data_layout);
33  _kernel = std::move(k);
34 }
const DataLayout data_layout
Definition: Im2Col.cpp:146

References arm_compute::test::validation::data_layout.

Referenced by CLFullyConnectedLayer::configure().

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output,
const TensorShape original_input_shape,
DataLayout  data_layout 
)
static

Static function to check if given info will lead to a valid configuration of CLConvertFullyConnectedWeights.

Parameters
[in]inputSource weights tensor info to convert. Must be 2 dimensional. Data types supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32.
[in]outputThe converted weights tensor info. Shape and Data Type: Same as input.
[in]original_input_shapeShape of the original input tensor (the one entering fully connected layer).
[in]data_layoutThe data layout the weights have been trained in.

Definition at line 36 of file CLConvertFullyConnectedWeights.cpp.

38 {
39  return CLConvertFullyConnectedWeightsKernel::validate(input, output, original_input_shape, data_layout);
40 }
const DataLayout data_layout
Definition: Im2Col.cpp:146
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 CLConvertFullyConnectedW...

References arm_compute::test::validation::data_layout, and CLConvertFullyConnectedWeightsKernel::validate().

Referenced by CLFullyConnectedLayer::validate().


The documentation for this class was generated from the following files: