21.02
|
Function to reshape and transpose the weights. More...
#include <GCConvolutionLayer.h>
Public Member Functions | |
GCConvolutionLayerReshapeWeights () | |
Constructor. More... | |
void | configure (const IGCTensor *weights, const IGCTensor *biases, IGCTensor *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... | |
Function to reshape and transpose the weights.
This function calls the following kernels:
Definition at line 51 of file GCConvolutionLayer.h.
Constructor.
Definition at line 38 of file GCConvolutionLayer.cpp.
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: F16/F32. |
[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 43 of file GCConvolutionLayer.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES, ARM_COMPUTE_ERROR_ON_NULLPTR, GCWeightsReshapeKernel::configure(), ITensorInfo::data_type(), ITensorInfo::dimension(), arm_compute::F16, arm_compute::F32, ITensor::info(), arm_compute::is_data_type_quantized_asymmetric(), and ITensorInfo::num_dimensions().
Referenced by GCConvolutionLayer::configure().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 63 of file GCConvolutionLayer.cpp.
References GCScheduler::dispatch(), and GCScheduler::get().
Referenced by GCConvolutionLayer::prepare().