Compute Library
 20.02.1
ICPPKernel Class Referenceabstract

Common interface for all kernels implemented in C++. More...

#include <ICPPKernel.h>

Collaboration diagram for ICPPKernel:
[legend]

Public Member Functions

virtual ~ICPPKernel ()=default
 Default destructor. More...
 
virtual void run (const Window &window, const ThreadInfo &info)=0
 Execute the kernel on the passed window. More...
 
virtual const char * name () const =0
 Name of the kernel. More...
 
- Public Member Functions inherited from IKernel
 IKernel ()
 Constructor. More...
 
virtual ~IKernel ()=default
 Destructor. More...
 
virtual bool is_parallelisable () const
 Indicates whether or not the kernel is parallelisable. More...
 
virtual BorderSize border_size () const
 The size of the border for that kernel. More...
 
const Windowwindow () const
 The maximum window the kernel can be executed on. More...
 

Detailed Description

Common interface for all kernels implemented in C++.

Definition at line 35 of file ICPPKernel.h.

Constructor & Destructor Documentation

◆ ~ICPPKernel()

virtual ~ICPPKernel ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ name()

virtual const char* name ( ) const
pure virtual

Name of the kernel.

Returns
Kernel name

Implemented in NEWinogradLayerTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEWinogradLayerTransformOutputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEConvolutionRectangleKernel, NEWinogradLayerTransformInputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEEdgeTraceKernel, NESeparableConvolutionVertKernel< matrix_size >, NEComplexPixelWiseMultiplicationKernel, NEAccumulateSquaredKernel, NEGEMMLowpMatrixBReductionKernel, NEMinMaxLocationKernel, NESeparableConvolutionHorKernel< matrix_size >, NEEdgeNonMaxSuppressionKernel, NEHOGBlockNormalizationKernel, NEHarrisScoreKernel< block_size >, NESobel5x5VertKernel, NESobel7x7VertKernel, NELogits1DSoftmaxKernel< IS_LOG >, NEGaussianPyramidVertKernel, NEGEMMLowpMatrixAReductionKernel, NEGEMMTranspose1xWKernel, NEAccumulateWeightedKernel, NEGEMMLowpOffsetContributionOutputStageKernel, NEGaussian5x5VertKernel, NEIm2ColKernel, NEWeightsReshapeKernel, NEConvolutionKernel< matrix_size >, NEGatherKernel, NECol2ImKernel, NEGEMMInterleave4x4Kernel, NELKTrackerKernel, NEGEMMLowpOffsetContributionKernel, NEGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel, NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel, NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel, NEGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel, NECumulativeDistributionKernel, NETileKernel, NEGEMMLowpMatrixMultiplyKernel, NEScharr3x3Kernel, NESobel3x3Kernel, NEConvertFullyConnectedWeightsKernel, CPPCornerCandidatesKernel, NEGEMMMatrixAdditionKernel, NESelectKernel, NEAccumulateKernel, NECropKernel, NEDepthwiseConvolutionLayerNativeKernel, NEElementwiseOperationKernel, NEElementwiseUnaryKernel, NEHistogramKernel, NEReductionOperationKernel, CPPDetectionWindowNonMaximaSuppressionKernel, NEActivationLayerKernel, NEChannelCombineKernel, NEChannelExtractKernel, NEDirectConvolutionLayerOutputStageKernel, NEFFTRadixStageKernel, NEFillArrayKernel, NEGEMMMatrixMultiplyKernel, NEHeightConcatenateLayerKernel, NEMinMaxKernel, NENonMaximaSuppression3x3Kernel, NERangeKernel, NEThresholdKernel, NEWidthConcatenateLayerKernel, CPPNonMaximumSuppressionKernel, NEAbsoluteDifferenceKernel, NEBatchConcatenateLayerKernel, NEBitwiseAndKernel, NEBitwiseNotKernel, NEBitwiseOrKernel, NEBitwiseXorKernel, NEDepthConcatenateLayerKernel, NEFastCornersKernel, NEMeanStdDevKernel, NEMeanStdDevNormalizationKernel, NEMinMaxLayerKernel, NEPermuteKernel, NEQuantizationLayerKernel, NEStridedSliceKernel, NETransposeKernel, CPPBoxWithNonMaximaSuppressionLimitKernel, CPPPermuteKernel, NEFFTScaleKernel, NEFillBorderKernel, NEHOGDetectorKernel, NEMemsetKernel, NENonLinearFilterKernel, NEPadLayerKernel, CPPSortEuclideanDistanceKernel, CPPUpsampleKernel, NEGradientKernel, NEColorConvertKernel, NEConvertQuantizedSignednessKernel, NEDepthConvertLayerKernel, NEDerivativeKernel, NEFFTDigitReverseKernel, NEFillInnerBorderKernel, NEHOGOrientationBinningKernel, NEMagnitudePhaseKernel< mag_type, phase_type >, NEROIPoolingLayerKernel, NESobel5x5HorKernel, NESobel7x7HorKernel, NESpaceToBatchLayerKernel, NEStackLayerKernel, NEArithmeticAdditionKernel, NEArithmeticSubtractionKernel, NEBatchNormalizationLayerKernel, NEChannelShuffleLayerKernel, NECopyKernel, NEDepthToSpaceLayerKernel, NEDepthwiseConvolutionLayer3x3Kernel, NEFuseBatchNormalizationKernel, NENormalizationLayerKernel, NEPixelWiseMultiplicationKernel, NERemapKernel, NEReorgLayerKernel, NEReshapeLayerKernel, NEROIAlignLayerKernel, NEScaleKernel, NELogits1DMaxKernel, NESpaceToDepthLayerKernel, NETableLookupKernel, CPPFlipWeightsKernel, CPPTopKVKernel, NEBatchToSpaceLayerKernel, NEBoundingBoxTransformKernel, NEBox3x3Kernel, NEDequantizationLayerKernel, NEDilateKernel, NEDirectConvolutionLayerKernel, NEErodeKernel, NEFlattenLayerKernel, NEFloorKernel, NEGaussian3x3Kernel, NEGaussian5x5HorKernel, NEGaussianPyramidHorKernel, NEGEMMAssemblyBaseKernel, NEGEMMMatrixVectorMultiplyKernel, NEInstanceNormalizationLayerKernel, NEIntegralImageKernel, NEL2NormalizeLayerKernel, NELocallyConnectedMatrixMultiplyKernel, NEMedian3x3Kernel, NEPoolingLayerKernel, NEPriorBoxLayerKernel, NEReverseKernel, NEUpsampleLayerKernel, NEYOLOLayerKernel, NEGEMMMatrixAccumulateBiasesKernel, and NEComputeAllAnchorsKernel.

◆ run()

virtual void run ( const Window window,
const ThreadInfo info 
)
pure virtual

Execute the kernel on the passed window.

Warning
If is_parallelisable() returns false then the passed window must be equal to window()
Note
The window has to be a region within the window returned by the window() method
The width of the window has to be a multiple of num_elems_processed_per_iteration().
Parameters
[in]windowRegion on which to execute the kernel. (Must be a region of the window returned by window())
[in]infoInfo about executing thread and CPU.

Implemented in NEWinogradLayerTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEWinogradLayerTransformOutputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEConvolutionRectangleKernel, NEWinogradLayerTransformInputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >, NEEdgeTraceKernel, NEComplexPixelWiseMultiplicationKernel, NESeparableConvolutionVertKernel< matrix_size >, NEMinMaxLocationKernel, NEGEMMLowpMatrixBReductionKernel, NEAccumulateSquaredKernel, NEEdgeNonMaxSuppressionKernel, NELogits1DSoftmaxKernel< IS_LOG >, NEHOGBlockNormalizationKernel, NESeparableConvolutionHorKernel< matrix_size >, NESobel7x7VertKernel, NEGEMMLowpOffsetContributionOutputStageKernel, NESobel5x5VertKernel, NEIm2ColKernel, NEWeightsReshapeKernel, NELKTrackerKernel, NEGaussianPyramidVertKernel, NEScaleKernel, NESpaceToBatchLayerKernel, NEGEMMLowpMatrixAReductionKernel, NEHarrisScoreKernel< block_size >, NEFuseBatchNormalizationKernel, NECropKernel, NEDepthwiseConvolutionLayerNativeKernel, NEStridedSliceKernel, NECol2ImKernel, NEBatchNormalizationLayerKernel, NEGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel, NEGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel, NEGEMMLowpQuantizeDownInt32ToUint8ScaleKernel, NEGEMMTranspose1xWKernel, NEGEMMLowpOffsetContributionKernel, NEGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel, NEArithmeticSubtractionKernel, NEBatchToSpaceLayerKernel, NEROIAlignLayerKernel, NEArithmeticAdditionKernel, NEDirectConvolutionLayerOutputStageKernel, NEPixelWiseMultiplicationKernel, NEAccumulateWeightedKernel, NEDirectConvolutionLayerKernel, NEGEMMMatrixMultiplyKernel, CPPNonMaximumSuppressionKernel, NEColorConvertKernel, NEDepthConvertLayerKernel, NEHistogramKernel, NEStackLayerKernel, NEBoundingBoxTransformKernel, NEFFTRadixStageKernel, NEPadLayerKernel, NEReductionOperationKernel, NEDepthwiseConvolutionLayer3x3Kernel, NESelectKernel, NEGatherKernel, NEGEMMLowpMatrixMultiplyKernel, NEMinMaxLayerKernel, NEGEMMMatrixAdditionKernel, NEL2NormalizeLayerKernel, NEPermuteKernel, NEBatchConcatenateLayerKernel, NEConvertFullyConnectedWeightsKernel, NEDepthConcatenateLayerKernel, NEElementwiseUnaryKernel, NEMeanStdDevNormalizationKernel, NEActivationLayerKernel, NEChannelCombineKernel, NENormalizationLayerKernel, NERangeKernel, NEGaussian5x5VertKernel, NEGEMMInterleave4x4Kernel, NEHeightConcatenateLayerKernel, NEInstanceNormalizationLayerKernel, NEWidthConcatenateLayerKernel, NEYOLOLayerKernel, NEFFTDigitReverseKernel, CPPPermuteKernel, CPPTopKVKernel, NEChannelExtractKernel, NEConvolutionKernel< matrix_size >, NEPoolingLayerKernel, NEQuantizationLayerKernel, NEReorgLayerKernel, NEScharr3x3Kernel, NESobel3x3Kernel, NEFFTScaleKernel, NEFlattenLayerKernel, NEComputeAllAnchorsKernel, NETransposeKernel, NEUpsampleLayerKernel, CPPBoxWithNonMaximaSuppressionLimitKernel, NEChannelShuffleLayerKernel, NEDepthToSpaceLayerKernel, NEReverseKernel, NEROIPoolingLayerKernel, NESpaceToDepthLayerKernel, NECumulativeDistributionKernel, NEPriorBoxLayerKernel, CPPCornerCandidatesKernel, NECopyKernel, NEFillBorderKernel, NEGEMMMatrixVectorMultiplyKernel, NEHOGDetectorKernel, NEMinMaxKernel, NEGradientKernel, NEConvertQuantizedSignednessKernel, NEDequantizationLayerKernel, NELocallyConnectedMatrixMultiplyKernel, NEMeanStdDevKernel, NETileKernel, NEFillArrayKernel, NEFillInnerBorderKernel, NEGEMMMatrixAccumulateBiasesKernel, NEMagnitudePhaseKernel< mag_type, phase_type >, NENonMaximaSuppression3x3Kernel, NESobel5x5HorKernel, NESobel7x7HorKernel, CPPDetectionWindowNonMaximaSuppressionKernel, NEAbsoluteDifferenceKernel, NENonLinearFilterKernel, NEThresholdKernel, NEFastCornersKernel, NEHOGOrientationBinningKernel, NERemapKernel, CPPUpsampleKernel, NEDerivativeKernel, NEBitwiseAndKernel, NEBitwiseOrKernel, NEBitwiseXorKernel, NEMemsetKernel, CPPSortEuclideanDistanceKernel, NEBitwiseNotKernel, CPPFlipWeightsKernel, NEGaussianPyramidHorKernel, INEWarpKernel, NEElementwiseOperationKernel, NETableLookupKernel, NELogits1DMaxKernel, NEReshapeLayerKernel, NEFloorKernel, NEAccumulateKernel, NEGaussian5x5HorKernel, NEGaussian3x3Kernel, NEMedian3x3Kernel, NEBox3x3Kernel, NEDilateKernel, NEErodeKernel, and NEIntegralImageKernel.

Referenced by SingleThreadScheduler::schedule(), OMPScheduler::schedule(), and CPPScheduler::schedule().


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