Compute Library
 20.02.1
CLBuildOptions Class Referencefinal

Build options. More...

#include <CLKernelLibrary.h>

Public Member Functions

 CLBuildOptions ()
 Default constructor. More...
 
void add_option (std::string option)
 Adds option to the existing build option list. More...
 
void add_option_if (bool cond, std::string option)
 Adds option if a given condition is true;. More...
 
void add_option_if_else (bool cond, std::string option_true, std::string option_false)
 Adds first option if condition is true else the second one. More...
 
void add_options (const StringSet &options)
 Appends given build options to the current's objects options. More...
 
void add_options_if (bool cond, const StringSet &options)
 Appends given build options to the current's objects options if a given condition is true. More...
 
const StringSet & options () const
 Gets the current options list set. More...
 

Detailed Description

Build options.

Definition at line 37 of file CLKernelLibrary.h.

Constructor & Destructor Documentation

◆ CLBuildOptions()

Default constructor.

Definition at line 38 of file CLKernelLibrary.cpp.

39  : _build_opts()
40 {
41 }

Member Function Documentation

◆ add_option()

void add_option ( std::string  option)

Adds option to the existing build option list.

Parameters
[in]optionOption to add

Definition at line 43 of file CLKernelLibrary.cpp.

44 {
45  _build_opts.emplace(std::move(option));
46 }

Referenced by CLBuildOptions::add_option_if(), CLBuildOptions::add_option_if_else(), CLElementWiseUnaryLayerKernel::configure(), CLScaleKernel::configure(), CLGEMMMatrixAccumulateBiasesKernel::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLDequantizationLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLCopyKernel::configure(), CLReverseKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLNormalizationLayerKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLTileKernel::configure(), CLUpsampleLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLGatherKernel::configure(), CLReorgLayerKernel::configure(), CLDepthConvertLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLFFTScaleKernel::configure(), CLPermuteKernel::configure(), CLActivationLayerKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLFFTDigitReverseKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), CLQuantizationLayerKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLCropKernel::configure(), CLPadLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLReductionOperationKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLRangeKernel::configure(), CLSelectKernel::configure(), CLStackLayerKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLROIAlignLayerKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLStridedSliceKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLCol2ImKernel::configure(), CLWeightsReshapeKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), and CLLogits1DNormKernel::configure().

◆ add_option_if()

void add_option_if ( bool  cond,
std::string  option 
)

Adds option if a given condition is true;.

Parameters
[in]condCondition to check
[in]optionOption to add if condition is true

Definition at line 48 of file CLKernelLibrary.cpp.

49 {
50  if(cond)
51  {
52  add_option(std::move(option));
53  }
54 }
void add_option(std::string option)
Adds option to the existing build option list.

References CLBuildOptions::add_option().

Referenced by CLElementWiseUnaryLayerKernel::configure(), CLScaleKernel::configure(), CLFlattenLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLDequantizationLayerKernel::configure(), CLCopyKernel::configure(), CLNormalizationLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLTileKernel::configure(), CLUpsampleLayerKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLActivationLayerKernel::configure(), CLFFTScaleKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLDepthConvertLayerKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLPoolingLayerKernel::configure(), CLQuantizationLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLPadLayerKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLCropKernel::configure(), CLPriorBoxLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLReductionOperationKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLFFTRadixStageKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLROIAlignLayerKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLStridedSliceKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLWeightsReshapeKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), and CLLogits1DNormKernel::configure().

◆ add_option_if_else()

void add_option_if_else ( bool  cond,
std::string  option_true,
std::string  option_false 
)

Adds first option if condition is true else the second one.

Parameters
[in]condCondition to check
[in]option_trueOption to add if condition is true
[in]option_falseOption to add if condition is false

Definition at line 56 of file CLKernelLibrary.cpp.

57 {
58  (cond) ? add_option(std::move(option_true)) : add_option(std::move(option_false));
59 }
void add_option(std::string option)
Adds option to the existing build option list.

References CLBuildOptions::add_option().

Referenced by CLScaleKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLReductionOperationKernel::configure(), CLArgMinMaxLayerKernel::configure(), and CLStridedSliceKernel::configure().

◆ add_options()

void add_options ( const StringSet &  options)

Appends given build options to the current's objects options.

Parameters
[in]optionsBuild options to append

Definition at line 61 of file CLKernelLibrary.cpp.

62 {
63  _build_opts.insert(options.begin(), options.end());
64 }
const StringSet & options() const
Gets the current options list set.

References CLBuildOptions::options().

Referenced by CLBuildOptions::add_options_if().

◆ add_options_if()

void add_options_if ( bool  cond,
const StringSet &  options 
)

Appends given build options to the current's objects options if a given condition is true.

Parameters
[in]condCondition to check
[in]optionsOption to add if condition is true

Definition at line 66 of file CLKernelLibrary.cpp.

67 {
68  if(cond)
69  {
71  }
72 }
const StringSet & options() const
Gets the current options list set.
void add_options(const StringSet &options)
Appends given build options to the current's objects options.

References CLBuildOptions::add_options(), and CLBuildOptions::options().

Referenced by CLLogits1DMaxShiftExpSumKernel::configure(), and CLLogits1DNormKernel::configure().

◆ options()

const CLBuildOptions::StringSet & options ( ) const

Gets the current options list set.

Returns
Build options set

Definition at line 74 of file CLKernelLibrary.cpp.

75 {
76  return _build_opts;
77 }

Referenced by CLBuildOptions::add_options(), CLBuildOptions::add_options_if(), CLElementWiseUnaryLayerKernel::configure(), CLScaleKernel::configure(), CLGEMMMatrixAccumulateBiasesKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLDequantizationLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLCopyKernel::configure(), CLReverseKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLNormalizationLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLGatherKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLTileKernel::configure(), CLUpsampleLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLMemsetKernel::configure(), CLFFTScaleKernel::configure(), CLDepthConvertLayerKernel::configure(), CLQuantizationLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLCropKernel::configure(), CLPadLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLReductionOperationKernel::configure(), CLFFTRadixStageKernel::configure(), CLSelectKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLYOLOLayerKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLROIAlignLayerKernel::configure(), CLStridedSliceKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLCol2ImKernel::configure(), CLWeightsReshapeKernel::configure(), CLLogits1DNormKernel::configure(), and arm_compute::create_opencl_kernel().


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