21.02
|
Function to reshape the weights. More...
#include <NEGEMMConvolutionLayer.h>
Public Member Functions | |
NEConvolutionLayerReshapeWeights () | |
Constructor. More... | |
NEConvolutionLayerReshapeWeights (const NEConvolutionLayerReshapeWeights &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvolutionLayerReshapeWeights (NEConvolutionLayerReshapeWeights &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEConvolutionLayerReshapeWeights & | operator= (const NEConvolutionLayerReshapeWeights &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvolutionLayerReshapeWeights & | operator= (NEConvolutionLayerReshapeWeights &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEConvolutionLayerReshapeWeights () | |
Default destructor. More... | |
void | configure (const ITensor *weights, const ITensor *biases, ITensor *output) |
Set the input and output tensors. More... | |
void | run () override |
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 *weights, const ITensorInfo *biases, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of NEConvolutionLayerReshapeWeights. More... | |
Function to reshape the weights.
This function calls the following kernel:
Definition at line 50 of file NEGEMMConvolutionLayer.h.
Constructor.
Definition at line 55 of file NEGEMMConvolutionLayer.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Set the input and output tensors.
[in] | weights | Weights tensor. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: All. |
[in] | biases | Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM]. Data type supported: same as weights . |
[out] | output | Destination tensor. Data types supported: same as weights . |
Definition at line 60 of file NEGEMMConvolutionLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, ITensorInfo::data_type(), ITensor::info(), arm_compute::is_data_type_quantized_asymmetric(), ITensorInfo::quantization_info(), ITensorInfo::set_quantization_info(), and NEConvolutionLayerReshapeWeights::validate().
Referenced by NEGEMMConvolutionLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 103 of file NEGEMMConvolutionLayer.cpp.
References Scheduler::get(), IScheduler::schedule(), and NEGEMMConvolutionLayer::~NEGEMMConvolutionLayer().
Referenced by NEGEMMConvolutionLayer::prepare().
|
static |
Static function to check if given info will lead to a valid configuration of NEConvolutionLayerReshapeWeights.
[in] | weights | Weights tensor info. Weights are 4D tensor with dimensions [kernel_x, kernel_y, IFM, OFM]. Data type supported: All. |
[in] | biases | Biases tensor. Shared biases supported. Biases are 1D tensor with dimensions [OFM]. Data type supported: same as weights . |
[in] | output | Destination tensor. Data types supported: same as weights . |
Definition at line 76 of file NEGEMMConvolutionLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, arm_compute::BATCHES, arm_compute::BFLOAT16, ITensorInfo::data_layout(), ITensorInfo::data_type(), ITensorInfo::dimension(), arm_compute::F16, arm_compute::F32, arm_compute::get_data_layout_dimension_index(), arm_compute::is_data_type_quantized_asymmetric(), ITensorInfo::num_dimensions(), arm_compute::QASYMM8, arm_compute::QASYMM8_SIGNED, arm_compute::QSYMM8_PER_CHANNEL, ITensorInfo::total_size(), and NEWeightsReshapeKernel::validate().
Referenced by NEConvolutionLayerReshapeWeights::configure(), and NEGEMMConvolutionLayer::validate().