Compute Library
 21.08
CLBuildOptions Class Referencefinal

Build options. More...

#include <CLCompileContext.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 38 of file CLCompileContext.h.

Constructor & Destructor Documentation

◆ CLBuildOptions()

Default constructor.

Definition at line 36 of file CLCompileContext.cpp.

37  : _build_opts()
38 {
39 }

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 41 of file CLCompileContext.cpp.

Referenced by CLBuildOptions::add_option_if(), CLBuildOptions::add_option_if_else(), ClElementwiseKernel::ClElementwiseKernel(), ClTransposeKernel::configure(), ClDequantizeKernel::configure(), ClFloorKernel::configure(), ClCopyKernel::configure(), ClElementWiseUnaryKernel::configure(), ClFillKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClHeightConcatenateKernel::configure(), ClPool2dKernel::configure(), ClActivationKernel::configure(), ClWidthConcatenateKernel::configure(), ClQuantizeKernel::configure(), ClPermuteKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), CLStridedSliceKernel::configure(), ClBatchConcatenateKernel::configure(), ClCropKernel::configure(), ClDepthConcatenateKernel::configure(), ClConvertFullyConnectedWeightsKernel::configure(), ClGemmLowpMatrixMultiplyNativeKernel::configure(), ClGemmReshapeLhsMatrixKernel::configure(), CLRemapKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), ClWinogradFilterTransformKernel::configure(), ClWinogradInputTransformKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLBitwiseKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLReverseKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLSelectKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLSpaceToDepthLayerKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), ClCastKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLBatchToSpaceLayerKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::configure(), CLFFTScaleKernel::configure(), CLGatherKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLNormalizationLayerKernel::configure(), ClDirectConv2dKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLTileKernel::configure(), ClGemmLowpMatrixMultiplyReshapedKernel::configure(), CLReorgLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), ClGemmReshapeRhsMatrixKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), ClGemmLowpOffsetContributionOutputStageKernel::configure(), ClGemmLowpOffsetContributionKernel::configure(), CLRangeKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPadLayerKernel::configure(), ClCol2ImKernel::configure(), CLPriorBoxLayerKernel::configure(), CLFFTRadixStageKernel::configure(), CLL2NormalizeLayerKernel::configure(), ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel::configure(), ClMulKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), ClGemmLowpMatrixAReductionKernel::configure(), CLFillBorderKernel::configure(), CLROIPoolingLayerKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLStackLayerKernel::configure(), ClWeightsReshapeKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), ClComplexMulKernel::configure(), ClLogits1DNormKernel::configure(), CLComputeMeanVariance::configure(), ClGemmLowpMatrixBReductionKernel::configure(), and arm_compute::set_unroll_with_pragma().

42 {
43  _build_opts.emplace(std::move(option));
44 }

◆ 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 46 of file CLCompileContext.cpp.

References CLBuildOptions::add_option().

Referenced by ClDequantizeKernel::configure(), ClElementWiseUnaryKernel::configure(), ClFillKernel::configure(), ClScaleKernel::configure(), ClPool2dKernel::configure(), ClActivationKernel::configure(), ClQuantizeKernel::configure(), CLStridedSliceKernel::configure(), ClCropKernel::configure(), ClGemmLowpMatrixMultiplyNativeKernel::configure(), ClGemmReshapeLhsMatrixKernel::configure(), CLRemapKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), ClWinogradInputTransformKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLChannelShuffleLayerKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), CLNormalizationLayerKernel::configure(), ClDirectConv2dKernel::configure(), CLFFTScaleKernel::configure(), CLTileKernel::configure(), ClGemmLowpMatrixMultiplyReshapedKernel::configure(), CLFFTDigitReverseKernel::configure(), ClGemmReshapeRhsMatrixKernel::configure(), CLPriorBoxLayerKernel::configure(), CLFFTRadixStageKernel::configure(), ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), ClWeightsReshapeKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLFuseBatchNormalizationKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), and CLComputeMeanVariance::configure().

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

◆ 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 54 of file CLCompileContext.cpp.

References CLBuildOptions::add_option().

Referenced by ClScaleKernel::configure(), CLStridedSliceKernel::configure(), ClDirectConv2dKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), and CLArgMinMaxLayerKernel::configure().

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

◆ 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 59 of file CLCompileContext.cpp.

Referenced by CLBuildOptions::add_options_if().

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

◆ 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 64 of file CLCompileContext.cpp.

References CLBuildOptions::add_options().

Referenced by ClLogits1DMaxShiftExpSumKernel::configure().

65 {
66  if(cond)
67  {
69  }
70 }
const StringSet & options() const
Gets the current options list set.
void add_options(const StringSet &options)
Appends given build options to the current&#39;s objects options.

◆ options()

const CLBuildOptions::StringSet & options ( ) const

Gets the current options list set.

Returns
Build options set

Definition at line 72 of file CLCompileContext.cpp.

Referenced by ClElementwiseKernel::ClElementwiseKernel(), ClDequantizeKernel::configure(), ClFloorKernel::configure(), ClTransposeKernel::configure(), ClElementWiseUnaryKernel::configure(), ClFillKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClActivationKernel::configure(), ClPool2dKernel::configure(), ClQuantizeKernel::configure(), ClPermuteKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClCropKernel::configure(), CLStridedSliceKernel::configure(), ClConvertFullyConnectedWeightsKernel::configure(), ClGemmLowpMatrixMultiplyNativeKernel::configure(), ClGemmReshapeLhsMatrixKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), CLRemapKernel::configure(), CLBitwiseKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), ClWinogradInputTransformKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLReverseKernel::configure(), CLSelectKernel::configure(), CLChannelShuffleLayerKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleKernel::configure(), CLFFTScaleKernel::configure(), CLNormalizationLayerKernel::configure(), ClDirectConv2dKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLGatherKernel::configure(), CLSpaceToBatchLayerKernel::configure(), ClGemmLowpMatrixMultiplyReshapedKernel::configure(), CLTileKernel::configure(), CLFFTDigitReverseKernel::configure(), ClGemmReshapeRhsMatrixKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), ClCol2ImKernel::configure(), CLFFTRadixStageKernel::configure(), CLPriorBoxLayerKernel::configure(), CLL2NormalizeLayerKernel::configure(), ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLFillBorderKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLROIPoolingLayerKernel::configure(), ClWeightsReshapeKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLFuseBatchNormalizationKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), and CLComputeMeanVariance::configure().

73 {
74  return _build_opts;
75 }

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