21.08
|
Functions | |
template<typename Target , typename Source > | |
Target | polymorphic_cast (Source *v) |
Polymorphic cast between two types. More... | |
template<typename Target , typename Source > | |
Target | polymorphic_downcast (Source *v) |
Polymorphic down cast between two types. More... | |
template<typename Target , typename Source , typename Deleter > | |
std::unique_ptr< Target, Deleter > | polymorphic_cast_unique_ptr (std::unique_ptr< Source, Deleter > &&v) |
Polymorphic cast between two unique pointer types. More... | |
template<typename Target , typename Source , typename Deleter > | |
std::unique_ptr< Target, Deleter > | polymorphic_downcast_unique_ptr (std::unique_ptr< Source, Deleter > &&v) |
Polymorphic down cast between two unique pointer types. More... | |
template<typename T , typename U , typename std::enable_if< std::is_same< T, U >::value, int >::type = 0> | |
T | saturate_cast (U v) |
template<typename T , typename U , typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >() &&std::is_signed< T >() &&!std::is_same< T, U >::value &&sizeof(T) > = sizeof(U), int > | |
std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >) &&std::is_signed< T >) &&!std::is_same< T, U >::value &&sizeof(T)< sizeof(U), int >::type=0 > T | saturate_cast (U v) |
Variables | |
template<typename T , typename U , typename std::enable_if< std::is_integral< T >::value &&std::is_integral< U >::value &&std::is_signed< U >() &&std::is_signed< T >() &&!std::is_same< T, U >::value &&sizeof(T) > = sizeof(U), int > | |
U | |
|
inline |
Polymorphic cast between two types.
Target | Target to cast type |
Source | Source from cast type |
[in] | v | Value to cast |
Definition at line 47 of file Cast.h.
References ARM_COMPUTE_THROW.
Referenced by CpuGemmDirectConv2d::prepare(), and CpuWinogradConv2d::prepare().
std::unique_ptr<Target, Deleter> arm_compute::utils::cast::polymorphic_cast_unique_ptr | ( | std::unique_ptr< Source, Deleter > && | v | ) |
Polymorphic cast between two unique pointer types.
Target | Target to cast type |
Source | Source from cast type |
Deleter | Deleter function type |
[in] | v | Value to cast |
Definition at line 87 of file Cast.h.
References ARM_COMPUTE_THROW.
|
inline |
Polymorphic down cast between two types.
Target | Target to cast type |
Source | Source from cast type |
[in] | v | Value to cast |
Definition at line 68 of file Cast.h.
References ARM_COMPUTE_ERROR_ON.
std::unique_ptr<Target, Deleter> arm_compute::utils::cast::polymorphic_downcast_unique_ptr | ( | std::unique_ptr< Source, Deleter > && | v | ) |
Polymorphic down cast between two unique pointer types.
Target | Target to cast type |
Source | Source from cast type |
Deleter | Deleter function type |
[in] | v | Value to cast |
Definition at line 110 of file Cast.h.
References ARM_COMPUTE_ERROR_ON.
|
inline |
Definition at line 43 of file SaturateCast.h.
References U.
Referenced by arm_compute::test::validation::reference::depth_convert(), arm_compute::cpu::neon_softmax_logits_1d_quantized(), and saturate_cast().
|
inline |
Definition at line 72 of file SaturateCast.h.
References arm_compute::support::cpp11::lowest(), arm_compute::utils::rounding::round_half_away_from_zero(), saturate_cast(), type, and U.
U |
Definition at line 57 of file SaturateCast.h.
Referenced by arm_compute::test::validation::add_padding_x(), arm_compute::test::validation::add_padding_y(), arm_compute::adjust_odd_shape(), arm_compute::calculate_subsampled_shape(), arm_compute::test::colorconvert_helper::detail::colorconvert_rgb_to_iyuv(), arm_compute::test::colorconvert_helper::detail::colorconvert_rgb_to_nv12(), arm_compute::test::colorconvert_helper::detail::colorconvert_rgb_to_yuv4(), arm_compute::test::validation::combine(), arm_compute::test::validation::compare_dimensions(), arm_compute::test::validation::reference::concatenate_layer(), ClGemmDefaultConfigReshapedRhsOnlyBifrost::configure(), ClGemmDefaultConfigReshapedRhsOnlyValhall::configure(), FusedConvolutionBatchNormalizationFunction< TargetInfo, FusedLayerTypes >::configure(), CpuWinogradConv2d::configure(), arm_compute::test::validation::reference::conv2d_dft(), arm_compute::graph::backends::detail::create_convolution_layer(), arm_compute::create_lws_hint_parallel_implementations(), arm_compute::test::validation::DATA_TEST_CASE(), DATA_TEST_CASE(), arm_compute::test::validation::reference::deconvolution_layer(), arm_compute::test::validation::reference::dft_2d(), arm_compute::error_on_mismatching_shapes(), AssetsLibrary::fill(), NPYLoader::fill_tensor(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE(), arm_compute::utility::foldl(), CpuConv2d::get_convolution_method(), ClConv2d::get_convolution_method(), arm_compute::softmax_helpers::get_permutation_vector_from_softmax_axis(), compare< AbsoluteTolerance< U > >::operator bool(), compare< RelativeTolerance< U > >::operator bool(), arm_compute::graph_utils::permute_shape(), arm_compute::permute_strides(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::test::validation::reference::rdft_2d(), PaddingCalculator::required_padding(), arm_compute::test::validation::reference::ridft_2d(), saturate_cast(), arm_compute::test::validation::reference::scale_core(), ZipDataset< T, U >::size(), JoinDataset< T, U >::size(), CartesianProductDataset< T, U >::size(), arm_compute::test::validation::TEST_CASE(), CpuGemmDirectConv2d::validate(), arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().