Compute Library
 21.11
ClConvertFullyConnectedWeights Class Reference

Basic function to run kernels::ClConvertFullyConnectedWeightsKernel. More...

#include <ClConvertFullyConnectedWeights.h>

Collaboration diagram for ClConvertFullyConnectedWeights:
[legend]

Public Member Functions

void configure (const CLCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst, const TensorShape &original_src_shape, DataLayout data_layout)
 Initialise the kernel's inputs and outputs. 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...
 
ICLOperatoroperator= (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLOperatoroperator= (ICLOperator &&)=default
 Default move assignment operator. More...
 
void run (ITensorPack &tensors) override
 Run the kernels contained in the function. 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 *src, const ITensorInfo *dst, const TensorShape &original_src_shape, DataLayout data_layout)
 Static function to check if given info will lead to a valid configuration. More...
 

Detailed Description

Basic function to run kernels::ClConvertFullyConnectedWeightsKernel.

Definition at line 35 of file ClConvertFullyConnectedWeights.h.

Member Function Documentation

◆ configure()

void configure ( const CLCompileContext compile_context,
const ITensorInfo src,
ITensorInfo dst,
const TensorShape original_src_shape,
DataLayout  data_layout 
)

Initialise the kernel's inputs and outputs.

Parameters
[in]compile_contextThe compile context to be used.
[in]srcThe src tensor info. Data types supported: All.
[in]dstThe dst tensor info. Data types supported: Same as src
[in]original_src_shapeShape of the original src tensor (the one entering fully connected layer).
[in]data_layoutThe data layout the weights have been trained in.

Definition at line 35 of file ClConvertFullyConnectedWeights.cpp.

References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::k.

36 {
37  ARM_COMPUTE_LOG_PARAMS(src, dst, original_src_shape, data_layout);
38  auto k = std::make_unique<kernels::ClConvertFullyConnectedWeightsKernel>();
39  k->configure(compile_context, src, dst, original_src_shape, data_layout);
40  _kernel = std::move(k);
41 }
SimpleTensor< float > src
Definition: DFT.cpp:155
#define ARM_COMPUTE_LOG_PARAMS(...)

◆ validate()

Status validate ( const ITensorInfo src,
const ITensorInfo dst,
const TensorShape original_src_shape,
DataLayout  data_layout 
)
static

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

Similar to ClConvertFullyConnectedWeights::configure()

Returns
a status

Definition at line 43 of file ClConvertFullyConnectedWeights.cpp.

References ClConvertFullyConnectedWeightsKernel::validate().

Referenced by CLConvertFullyConnectedWeights::validate(), and ClFullyConnected::validate().

44 {
46 }
SimpleTensor< float > src
Definition: DFT.cpp:155
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const TensorShape &original_src_shape, DataLayout data_layout)
Static function to check if given info will lead to a valid configuration.

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