21.02
|
Basic function to compute a normalization layer. More...
#include <GCNormalizationLayer.h>
Public Member Functions | |
GCNormalizationLayer (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Default constructor. More... | |
void | configure (const IGCTensor *input, IGCTensor *output, const NormalizationLayerInfo &norm_info) |
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... | |
Basic function to compute a normalization layer.
This function calls the following OpenGL ES kernels:
Definition at line 51 of file GCNormalizationLayer.h.
GCNormalizationLayer | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Default constructor.
Definition at line 36 of file GCNormalizationLayer.cpp.
void configure | ( | const IGCTensor * | input, |
IGCTensor * | output, | ||
const NormalizationLayerInfo & | norm_info | ||
) |
Set the input and output tensors.
[in] | input | Source tensor. 3 lower dims represent a single input with dimensions [width, height, IFM], and an optional 4th dimension for batch of inputs. Data types supported: F32. Number of channels must be 1. |
[out] | output | Destination tensor. Dimensions, data type and number of channels must match the input ones. |
[in] | norm_info | Normalization layer information like the normalization type, normalization size and other parameters. |
Definition at line 41 of file GCNormalizationLayer.cpp.
References ITensorAllocator::allocate(), GCTensor::allocator(), ARM_COMPUTE_ERROR_ON, GCNormalizationLayerKernel::border_size(), GCPixelWiseMultiplicationKernel::configure(), GCNormalizationLayerKernel::configure(), GCFillBorderKernel::configure(), arm_compute::CONSTANT, ITensorInfo::data_type(), ITensor::info(), ITensorAllocator::init(), MemoryGroup::manage(), and ITensorInfo::tensor_shape().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 57 of file GCNormalizationLayer.cpp.
References GCScheduler::dispatch(), GCScheduler::get(), and GCScheduler::memory_barrier().