24.02.1
|
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) |
Variables | |
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.
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 44 of file SaturateCast.h.
U |
Definition at line 65 of file SaturateCast.h.
Referenced by GpuKernelComponentGroup::add_component(), arm_compute::test::validation::add_padding_x(), arm_compute::adjust_odd_shape(), TensorShape::broadcast_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::reference::concatenate_layer(), ClTransposedConvolutionKernel::configure(), CPPDetectionOutputLayer::configure(), ClIndirectConv2dKernel::configure(), CPPDetectionPostProcessLayer::configure(), ClDirectConv2dKernel::configure(), FusedConvolutionBatchNormalizationFunction< TargetInfo, FusedLayerTypes >::configure(), ClDirectConv3dKernel::configure(), CLPadLayerKernel::configure(), CLArgMinMaxLayerKernel::configure(), CpuWinogradConv2d::configure(), NEInstanceNormalizationLayer::configure(), CLDepthwiseConvolutionLayer::configure(), NEFFTConvolutionLayer::configure(), NEDeconvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLDirectDeconvolutionLayer::configure(), arm_compute::opencl::kernels::gemm::configure_lhs_rhs_info(), 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(), NPYLoader::fill_tensor(), AssetsLibrary::fill_with_generator(), arm_compute::cl_matmul::find_info(), arm_compute::opencl::kernels::gemm::find_lhs_rhs_info(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE_NEW(), ClConv2d::get_convolution_method(), CpuConv2d::get_convolution_method(), arm_compute::softmax_helpers::get_permutation_vector_from_softmax_axis(), GpuCkwActivation::get_window(), GpuCkwCast::get_window(), GpuCkwElementwiseBinary::get_window(), GpuCkwResize::get_window(), GpuCkwPool2d::get_window(), GpuCkwDepthwiseConv2d::get_window(), GpuCkwDirectConv2d::get_window(), GpuCkwMatMul::get_window(), ClTemplateCast::get_window(), ClTemplateLogits1DNorm::get_window(), ClTemplateLogits1DMaxShiftExpSum::get_window(), ClTemplateReshape::get_window(), ClTemplateDepthwiseConv2d::get_window(), ClTemplateDirectConv2d::get_window(), ClTemplateResize::get_window(), ClTemplatePool2d::get_window(), ClTemplateActivation::get_window(), CLSymbols::load(), compare< AbsoluteTolerance< U > >::operator bool(), compare< RelativeTolerance< U > >::operator bool(), arm_compute::operator<<(), arm_compute::graph_utils::permute_shape(), Pooling3dLayerInfo::Pooling3dLayerInfo(), arm_compute::test::validation::reference::pooling_layer_internal(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc_kernel_indices(), arm_compute::test::validation::reference::rdft_2d(), PaddingCalculator::required_padding(), arm_compute::test::validation::reference::ridft_2d(), NEBatchToSpaceLayerKernel::run(), arm_compute::test::validation::reference::scale_core(), arm_compute::test::validation::TEST_CASE(), GpuOperatorGroup::try_add_operator(), CpuGemmDirectConv2d::validate(), CLDepthwiseConvolutionLayer::validate(), NEDeconvolutionLayer::validate(), arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().