24.02
|
Enumerations | |
enum | NumericBase { BASE_10, BASE_16 } |
Functions | |
int | stoi (const std::string &str, std::size_t *pos=0, NumericBase base=NumericBase::BASE_10) |
Convert string values to integer. More... | |
unsigned long | stoul (const std::string &str, std::size_t *pos=0, NumericBase base=NumericBase::BASE_10) |
Convert string values to unsigned long. More... | |
template<typename T > | |
std::string | to_string (T &&value) |
Convert integer and float values to string. More... | |
std::string | to_string (const std::string &value) |
template<typename... Ts> | |
int | stof (Ts &&...args) |
Convert string values to float. More... | |
std::string | to_string (bool value) |
template<typename T > | |
T | nearbyint (T value) |
Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | round (T value) |
Round floating-point value with half value rounding away from zero. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
long | lround (T value) |
Round floating-point value with half value rounding away from zero and cast to long. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | trunc (T value) |
Truncate floating-point value. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | copysign (T x, T y) |
Composes a floating point value with the magnitude of x and the sign of y . More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value >::type> | |
T | fma (T x, T y, T z) |
Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type. More... | |
template<typename... Ts> | |
int | snprintf (char *s, std::size_t n, const char *fmt, Ts &&...args) |
Loads the data from the given location, converts them to character string equivalents and writes the result to a character string buffer. More... | |
template<typename T > | |
T | lowest () |
template<> | |
bfloat16 | lowest< bfloat16 > () |
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
bool | isfinite (T value) |
bool | isfinite (half_float::half value) |
bool | isfinite (bfloat16 value) |
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
bool | signbit (T value) |
bool | signbit (half_float::half value) |
bool | signbit (bfloat16 value) |
|
strong |
Enumerator | |
---|---|
BASE_10 | |
BASE_16 |
Definition at line 38 of file StringSupport.h.
|
inline |
Composes a floating point value with the magnitude of x
and the sign of y
.
[in] | x | value that contains the magnitude to be used in constructing the result. |
[in] | y | value that contains the sign to be used in construct in the result. |
x
and sign of y
. Definition at line 231 of file ToolchainSupport.h.
Referenced by arm_compute::test::round_half_even(), and arm_compute::utils::rounding::round_half_even().
|
inline |
Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
[in] | x | floating-point value |
[in] | y | floating-point value |
[in] | z | floating-point value |
Definition at line 253 of file ToolchainSupport.h.
Referenced by arm_compute::cpu::depthwise_loop_generic_fp().
|
inline |
Definition at line 309 of file ToolchainSupport.h.
Referenced by isfinite().
|
inline |
Definition at line 304 of file ToolchainSupport.h.
References isfinite().
|
inline |
Definition at line 299 of file ToolchainSupport.h.
References isfinite().
|
inline |
Definition at line 278 of file ToolchainSupport.h.
Referenced by arm_compute::helpers::tensor_transform::calculate_end_on_index(), arm_compute::helpers::tensor_transform::calculate_start_on_index(), arm_compute::check_value_range(), ClPool2dKernel::configure(), ClPool3dKernel::configure(), NEQLSTMLayer::configure(), CLQLSTMLayer::configure(), AssetsLibrary::fill_tensor_uniform(), AssetsLibrary::fill_tensor_uniform_ranged(), arm_compute::cpu::get_initial_min(), arm_compute::get_min_max(), ClTemplatePool2d::get_tag_lut(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::test::saturate_cast(), NEQLSTMLayer::validate(), CLQLSTMLayer::validate(), and GpuCkwPool2d::write_component_code().
|
inline |
Definition at line 292 of file ToolchainSupport.h.
References bfloat16::lowest().
|
inline |
Round floating-point value with half value rounding away from zero and cast to long.
[in] | value | floating-point value to be rounded. |
value
casted to long Definition at line 200 of file ToolchainSupport.h.
Referenced by arm_compute::cpu::add_sub_q8_neon_fixedpoint(), arm_compute::cpu::add_sub_qasymm8_neon(), arm_compute::cpu::add_sub_qasymm8_signed_neon(), arm_compute::cpu::neon_qasymm8_activation(), arm_compute::cpu::neon_qasymm8_signed_activation(), and Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize().
|
inline |
Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode.
[in] | value | Value to be rounded. |
Definition at line 170 of file ToolchainSupport.h.
Referenced by arm_compute::cpu::elementwise_op_scalar_imp(), and arm_compute::test::validation::reference::elementwise_unary().
|
inline |
Round floating-point value with half value rounding away from zero.
[in] | value | floating-point value to be rounded. |
value
. Definition at line 185 of file ToolchainSupport.h.
Referenced by arm_compute::quantization::calculate_quantized_multiplier_greater_than_one(), arm_compute::quantization::calculate_quantized_multiplier_less_than_one(), choose_quantization_params(), arm_compute::test::validation::reference::roi_pool_layer(), arm_compute::round(), arm_compute::test::round_half_even(), arm_compute::utils::rounding::round_half_even(), and NEROIPoolingLayerKernel::run().
|
inline |
Definition at line 326 of file ToolchainSupport.h.
Referenced by signbit().
|
inline |
Definition at line 321 of file ToolchainSupport.h.
References signbit().
|
inline |
Definition at line 316 of file ToolchainSupport.h.
References signbit().
Referenced by arm_compute::quantization::saturating_rounding_doubling_highmul().
|
inline |
Loads the data from the given location, converts them to character string equivalents and writes the result to a character string buffer.
[in] | s | Pointer to a character string to write to |
[in] | n | Up to buf_size - 1 characters may be written, plus the null ending character |
[in] | fmt | Pointer to a null-ended multibyte string specifying how to interpret the data. |
[in] | args | Arguments forwarded to std::snprintf. |
Definition at line 270 of file ToolchainSupport.h.
References GemmTuner::args.
Referenced by arm_compute::create_error_msg(), and arm_compute::logging::string_with_format().
int arm_compute::support::cpp11::stof | ( | Ts &&... | args | ) |
Convert string values to float.
[in] | args | Arguments forwarded to std::stof. |
Definition at line 189 of file StringSupport.h.
References GemmTuner::args.
|
inline |
Convert string values to integer.
[in] | str | String to be converted to int. |
[in] | pos | If idx is not a null pointer, the function sets the value of pos to the position of the first character in str after the number. |
[in] | base | Numeric base used to interpret the string. |
str
. Definition at line 55 of file StringSupport.h.
References BASE_10, BASE_16, arm_compute::test::validation::ss(), and caffe_mnist_image_extractor::str.
Referenced by CLTuningParams::from_string(), and CLCompileContext::get_ddk_version().
|
inline |
Convert string values to unsigned long.
[in] | str | String to be converted to unsigned long. |
[in] | pos | If idx is not a null pointer, the function sets the value of pos to the position of the first character in str after the number. |
[in] | base | Numeric base used to interpret the string. |
str
. Definition at line 91 of file StringSupport.h.
References BASE_10, BASE_16, and caffe_mnist_image_extractor::str.
|
inline |
Definition at line 196 of file StringSupport.h.
References caffe_mnist_image_extractor::str.
Referenced by to_string().
|
inline |
Definition at line 174 of file StringSupport.h.
|
inline |
Convert integer and float values to string.
[in] | value | Value to be converted to string. |
value
. Definition at line 168 of file StringSupport.h.
References to_string().
Referenced by ClTransposedConvolutionKernel::configure(), ClFloorKernel::configure(), ClDequantizeKernel::configure(), ClTransposeKernel::configure(), ClCopyKernel::configure(), ClElementWiseUnaryKernel::configure(), ClFillKernel::configure(), ClMatMulLowpNativeMMULKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClPool2dKernel::configure(), ClPool3dKernel::configure(), ClHeightConcatenateKernel::configure(), ClQuantizeKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenateKernel::configure(), ClActivationKernel::configure(), ClPermuteKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClCropKernel::configure(), ClMatMulNativeKernel::configure(), ClBatchConcatenateKernel::configure(), CLStridedSliceKernel::configure(), ClDepthConcatenateKernel::configure(), ClConvertFullyConnectedWeightsKernel::configure(), ClMatMulLowpNativeKernel::configure(), ClGemmLowpMatrixMultiplyNativeKernel::configure(), ClGemmReshapeLhsMatrixKernel::configure(), CLBitwiseKernel::configure(), ClGemmMatrixMultiplyNativeKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLChannelShuffleLayerKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsMMULKernel::configure(), ClIndirectConv2dAddressPrecalculationKernel::configure(), ClWinogradFilterTransformKernel::configure(), ClWinogradInputTransformKernel::configure(), CLSelectKernel::configure(), ClIndirectConv2dKernel::configure(), CLComputeAllAnchorsKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleKernel::configure(), ClWinogradOutputTransformKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLFFTScaleKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLNormalizationLayerKernel::configure(), ClSoftmaxKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLGatherKernel::configure(), CLTileKernel::configure(), ClCastKernel::configure(), ClGemmLowpMatrixMultiplyReshapedKernel::configure(), CLComparisonKernel::configure(), ClGemmLowpOffsetContributionOutputStageKernel::configure(), CLReorgLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLBatchToSpaceLayerKernel::configure(), ClGemmLowpOffsetContributionKernel::configure(), ClGemmReshapeRhsMatrixKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), CLReductionOperationKernel::configure(), CLReverseKernel::configure(), CLFFTRadixStageKernel::configure(), ClCol2ImKernel::configure(), ClDirectConv2dKernel::configure(), ClDirectConv3dKernel::configure(), ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLL2NormalizeLayerKernel::configure(), ClMatMulNativeMMULKernel::configure(), CLPadLayerKernel::configure(), CLArgMinMaxLayerKernel::configure(), ClMulKernel::configure(), CLBoundingBoxTransformKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLROIPoolingLayerKernel::configure(), ClWeightsReshapeKernel::configure(), CLPriorBoxLayerKernel::configure(), CLStackLayerKernel::configure(), CLROIAlignLayerKernel::configure(), ClGemmLowpMatrixAReductionKernel::configure(), ClIm2ColKernel::configure(), CLFillBorderKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLComputeMeanVariance::configure(), ClGemmLowpMatrixBReductionKernel::configure(), RangeDataset< T >::iterator::description(), SingletonDataset< T >::iterator::description(), ContainerDataset< T >::iterator::description(), ClTemplateCast::get_build_options(), ClTemplateLogits1DNorm::get_build_options(), ClTemplateReshape::get_build_options(), ClTemplateLogits1DMaxShiftExpSum::get_build_options(), ClTemplateDepthwiseConv2d::get_build_options(), ClTemplateDirectConv2d::get_build_options(), ClTemplateResize::get_build_options(), ClTemplatePool2d::get_build_options(), ClTemplateActivation::get_build_options(), ClTemplateCast::get_config_id(), ClTemplateLogits1DNorm::get_config_id(), ClTemplateLogits1DMaxShiftExpSum::get_config_id(), ClTemplateReshape::get_config_id(), ClTemplateDepthwiseConv2d::get_config_id(), ClTemplateDirectConv2d::get_config_id(), ClTemplateResize::get_config_id(), ClTemplatePool2d::get_config_id(), ClTemplateActivation::get_config_id(), GpuCkwMatMul::get_name(), ClTemplateLogits1DMaxShiftExpSum::get_tag_lut(), GpuCkwResize::get_tuner_id(), arm_compute::utils::get_typestring(), arm_compute::test::get_typestring(), arm_compute::test::join(), main(), OpenCLClock< output_timestamps >::measurements(), MaliCounter::measurements(), SchedulerClock< output_timestamps >::measurements(), TagVal::TagVal(), Size3D::to_string(), Size2D::to_string(), CLTuningParams::to_string(), and arm_compute::to_string().
|
inline |
Truncate floating-point value.
[in] | value | floating-point value to be truncated. |
value
. Definition at line 215 of file ToolchainSupport.h.
Referenced by arm_compute::cpu::add_sub_qasymm8_neon(), arm_compute::cpu::add_sub_qasymm8_signed_neon(), arm_compute::test::validation::apply_2d_spatial_filter(), FilePrinter::FilePrinter(), and arm_compute::test::validation::TEST_CASE().