21.08
|
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... | |
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) |
|
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.
References type.
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 252 of file ToolchainSupport.h.
|
inline |
Definition at line 298 of file ToolchainSupport.h.
References isfinite().
Referenced by compare< AbsoluteTolerance< U > >::operator bool(), compare< RelativeTolerance< U > >::operator bool(), and arm_compute::test::validation::validate_wrap().
|
inline |
Definition at line 303 of file ToolchainSupport.h.
References isfinite().
|
inline |
Definition at line 308 of file ToolchainSupport.h.
Referenced by isfinite().
|
inline |
Definition at line 277 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(), ClPool2d::configure(), NEQLSTMLayer::configure(), CLQLSTMLayer::configure(), arm_compute::test::convolution_3d::detail::convolution3d(), PoolingDepthfirstCacheOblivious< strategy >::execute(), AssetsLibrary::fill_tensor_uniform(), AssetsLibrary::fill_tensor_uniform_ranged(), arm_compute::get_min_max(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), NEMinMaxLayerKernel::reset(), NEMinMaxLayerKernel::run(), arm_compute::utils::cast::saturate_cast(), arm_compute::test::saturate_cast(), NEQLSTMLayer::validate(), and CLQLSTMLayer::validate().
|
inline |
|
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.
References type.
Referenced by ClLogits1DMaxShiftExpSumKernel::configure(), 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 169 of file ToolchainSupport.h.
References type.
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 184 of file ToolchainSupport.h.
References type.
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::cpu::poolingMxN_q8_neon_nhwc(), 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 |
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 terminator |
[in] | fmt | Pointer to a null-terminated multibyte string specifying how to interpret the data. |
[in] | args | Arguments forwarded to std::snprintf. |
Definition at line 269 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 177 of file StringSupport.h.
References GemmTuner::args.
Referenced by stoul().
|
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_data_extractor::str.
Referenced by CLTuningParams::from_string(), TestFilter::is_selected(), and CLCompileContext::set_context().
|
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, stof(), caffe_data_extractor::str, to_string(), and type.
|
inline |
Convert integer and float values to string.
[in] | value | Value to be converted to string. |
value
. Definition at line 162 of file StringSupport.h.
References to_string().
Referenced by ClDequantizeKernel::configure(), ClTransposeKernel::configure(), ClFloorKernel::configure(), ClCopyKernel::configure(), ClFillKernel::configure(), ClElementWiseUnaryKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClHeightConcatenateKernel::configure(), ClPool2dKernel::configure(), ClWidthConcatenateKernel::configure(), ClActivationKernel::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(), CLBitwiseKernel::configure(), ClWinogradFilterTransformKernel::configure(), ClWinogradInputTransformKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLMinMaxLayerKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLReverseKernel::configure(), CLSelectKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLBatchToSpaceLayerKernel::configure(), ClWinogradOutputTransformKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLSpaceToDepthLayerKernel::configure(), ClCastKernel::configure(), CLDepthToSpaceLayerKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::configure(), ClGemmLowpQuantizeDownInt32ScaleKernel::configure(), ClGemmMatrixMultiplyKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLFFTScaleKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLGatherKernel::configure(), ClDirectConv2dKernel::configure(), CLNormalizationLayerKernel::configure(), CLTileKernel::configure(), CLComparisonKernel::configure(), ClGemmLowpMatrixMultiplyReshapedKernel::configure(), CLFFTDigitReverseKernel::configure(), CLReorgLayerKernel::configure(), ClGemmLowpOffsetContributionOutputStageKernel::configure(), ClGemmLowpOffsetContributionKernel::configure(), ClGemmReshapeRhsMatrixKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLRangeKernel::configure(), CLReductionOperationKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPadLayerKernel::configure(), ClCol2ImKernel::configure(), CLPriorBoxLayerKernel::configure(), CLFFTRadixStageKernel::configure(), ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLBoundingBoxTransformKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), ClGemmLowpMatrixAReductionKernel::configure(), CLROIPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::configure(), CLStackLayerKernel::configure(), ClWeightsReshapeKernel::configure(), CLArgMinMaxLayerKernel::configure(), ClIm2ColKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), ClGemmMatrixMultiplyReshapedKernel::configure(), ClLogits1DNormKernel::configure(), ClGemmLowpMatrixBReductionKernel::configure(), CLComputeMeanVariance::configure(), RangeDataset< T >::iterator::description(), SingletonDataset< T >::iterator::description(), ContainerDataset< T >::iterator::description(), 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(), DotGraphPrinter::print(), arm_compute::utils::run_example(), CLCompileContext::set_context(), stoul(), Size2D::to_string(), CLTuningParams::to_string(), arm_compute::to_string(), and CLTuner::tune_kernel_dynamic().
|
inline |
Definition at line 184 of file StringSupport.h.
References caffe_data_extractor::str.
Referenced by to_string().
|
inline |
Truncate floating-point value.
[in] | value | floating-point value to be truncated. |
value
. Definition at line 215 of file ToolchainSupport.h.
References type.
Referenced by arm_compute::test::validation::apply_2d_spatial_filter(), FilePrinter::FilePrinter(), and arm_compute::test::validation::TEST_CASE().