Compute Library
 21.11
TypePrinter.h File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 

Functions

template<typename T >
std::string to_string_if_not_null (T *arg)
 Formatted output if arg is not null. More...
 
template<typename T >
std::string to_string (const T &val)
 Fallback method: try to use std::to_string: More...
 
template<typename T >
::std::ostream & operator<< (::std::ostream &os, const std::vector< T > &args)
 Formatted output of a vector of objects. More...
 
template<typename T >
std::string to_string (const std::vector< T > &args)
 Formatted output of a vector of objects. More...
 
template<typename T >
inline ::std::ostream & operator<< (::std::ostream &os, const Dimensions< T > &dimensions)
 Formatted output of the Dimensions type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const RoundingPolicy &rounding_policy)
 Formatted output of the RoundingPolicy type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const WeightsInfo &weights_info)
 Formatted output of the WeightsInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ROIPoolingLayerInfo &pool_info)
 Formatted output of the ROIPoolingInfo type. More...
 
std::string to_string (const ROIPoolingLayerInfo &pool_info)
 Formatted output of the ROIPoolingInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMKernelInfo &gemm_info)
 Formatted output of the GEMMKernelInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMLHSMatrixInfo &gemm_info)
 Formatted output of the GEMMLHSMatrixInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMRHSMatrixInfo &gemm_info)
 Formatted output of the GEMMRHSMatrixInfo type. More...
 
std::string to_string (const GEMMRHSMatrixInfo &gemm_info)
 Formatted output of the GEMMRHSMatrixInfo type. More...
 
std::string to_string (const GEMMLHSMatrixInfo &gemm_info)
 Formatted output of the GEMMLHSMatrixInfo type. More...
 
std::string to_string (const GEMMKernelInfo &gemm_info)
 Formatted output of the GEMMKernelInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const BoundingBoxTransformInfo &bbox_info)
 Formatted output of the BoundingBoxTransformInfo type. More...
 
std::string to_string (const BoundingBoxTransformInfo &bbox_info)
 Formatted output of the BoundingBoxTransformInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ComputeAnchorsInfo &anchors_info)
 Formatted output of the ComputeAnchorsInfo type. More...
 
std::string to_string (const ComputeAnchorsInfo &anchors_info)
 Formatted output of the ComputeAnchorsInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GenerateProposalsInfo &proposals_info)
 Formatted output of the GenerateProposalsInfo type. More...
 
std::string to_string (const GenerateProposalsInfo &proposals_info)
 Formatted output of the GenerateProposalsInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const QuantizationInfo &qinfo)
 Formatted output of the QuantizationInfo type. More...
 
std::string to_string (const QuantizationInfo &quantization_info)
 Formatted output of the QuantizationInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ActivationLayerInfo::ActivationFunction &act_function)
 Formatted output of the activation function type. More...
 
std::string to_string (const arm_compute::ActivationLayerInfo &info)
 Formatted output of the activation function info type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ActivationLayerInfo *info)
 Formatted output of the activation function info. More...
 
std::string to_string (const arm_compute::ActivationLayerInfo::ActivationFunction &function)
 Formatted output of the activation function type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const NormType &norm_type)
 Formatted output of the NormType type. More...
 
std::string to_string (const arm_compute::NormalizationLayerInfo &info)
 Formatted output of NormalizationLayerInfo. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const NormalizationLayerInfo &info)
 Formatted output of NormalizationLayerInfo. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PoolingType &pool_type)
 Formatted output of the PoolingType type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PoolingLayerInfo &info)
 Formatted output of PoolingLayerInfo. More...
 
std::string to_string (const RoundingPolicy &rounding_policy)
 Formatted output of RoundingPolicy. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DataLayout &data_layout)
 [Print DataLayout type] More...
 
std::string to_string (const arm_compute::DataLayout &data_layout)
 Formatted output of the DataLayout type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DataLayoutDimension &data_layout_dim)
 [Print DataLayout type] More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DataType &data_type)
 Formatted output of the DataType type. More...
 
std::string to_string (const arm_compute::DataType &data_type)
 Formatted output of the DataType type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Format &format)
 Formatted output of the Format type. More...
 
std::string to_string (const Format &format)
 Formatted output of the Format type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Channel &channel)
 Formatted output of the Channel type. More...
 
std::string to_string (const Channel &channel)
 Formatted output of the Channel type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const BorderMode &mode)
 Formatted output of the BorderMode type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const BorderSize &border)
 Formatted output of the BorderSize type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PaddingList &padding)
 Formatted output of the PaddingList type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Multiples &multiples)
 Formatted output of the Multiples type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const InterpolationPolicy &policy)
 Formatted output of the InterpolationPolicy type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const SamplingPolicy &policy)
 Formatted output of the SamplingPolicy type. More...
 
inline ::std::ostream & operator<< (std::ostream &os, const ITensorInfo *info)
 Formatted output of the ITensorInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const TensorInfo &info)
 Formatted output of the const TensorInfo& type. More...
 
std::string to_string (const TensorInfo &info)
 Formatted output of the const TensorInfo& type. More...
 
std::string to_string (const ITensorInfo &info)
 Formatted output of the const ITensorInfo& type. More...
 
std::string to_string (const ITensorInfo *info)
 Formatted output of the const ITensorInfo* type. More...
 
std::string to_string (ITensorInfo *info)
 Formatted output of the ITensorInfo* type. More...
 
std::string to_string (const ITensor *tensor)
 Formatted output of the ITensorInfo type obtained from const ITensor* type. More...
 
std::string to_string (ITensor *tensor)
 Formatted output of the ITensorInfo type obtained from the ITensor* type. More...
 
std::string to_string (ITensor &tensor)
 Formatted output of the ITensorInfo type obtained from the ITensor& type. More...
 
template<typename T >
std::string to_string (const Dimensions< T > &dimensions)
 Formatted output of the Dimensions type. More...
 
std::string to_string (const Strides &stride)
 Formatted output of the Strides type. More...
 
std::string to_string (const TensorShape &shape)
 Formatted output of the TensorShape type. More...
 
std::string to_string (const Coordinates &coord)
 Formatted output of the Coordinates type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMReshapeInfo &info)
 Formatted output of the GEMMReshapeInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMInfo &info)
 Formatted output of the GEMMInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Window::Dimension &dim)
 Formatted output of the Window::Dimension type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Window &win)
 Formatted output of the Window type. More...
 
std::string to_string (const WeightsInfo &info)
 Formatted output of the WeightsInfo type. More...
 
std::string to_string (const GEMMReshapeInfo &info)
 Formatted output of the GEMMReshapeInfo type. More...
 
std::string to_string (const GEMMInfo &info)
 Formatted output of the GEMMInfo type. More...
 
std::string to_string (const Window::Dimension &dim)
 Formatted output of the Window::Dimension type. More...
 
std::string to_string (const Window &win)
 Formatted output of the Window& type. More...
 
std::string to_string (Window *win)
 Formatted output of the Window* type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Rectangle &rect)
 Formatted output of the Rectangle type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PaddingMode &mode)
 Formatted output of the PaddingMode type. More...
 
std::string to_string (const PaddingMode &mode)
 Formatted output of the PaddingMode type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PadStrideInfo &pad_stride_info)
 Formatted output of the PadStrideInfo type. More...
 
std::string to_string (const PadStrideInfo &pad_stride_info)
 Formatted output of the PadStrideInfo type. More...
 
std::string to_string (const BorderMode &mode)
 Formatted output of the BorderMode type. More...
 
std::string to_string (const BorderSize &border)
 Formatted output of the BorderSize type. More...
 
std::string to_string (const PaddingList &padding)
 Formatted output of the PaddingList type. More...
 
std::string to_string (const Multiples &multiples)
 Formatted output of the Multiples type. More...
 
std::string to_string (const InterpolationPolicy &policy)
 Formatted output of the InterpolationPolicy type. More...
 
std::string to_string (const SamplingPolicy &policy)
 Formatted output of the SamplingPolicy type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ConvertPolicy &policy)
 Formatted output of the ConvertPolicy type. More...
 
std::string to_string (const ConvertPolicy &policy)
 
inline ::std::ostream & operator<< (::std::ostream &os, const ArithmeticOperation &op)
 Formatted output of the ArithmeticOperation type. More...
 
std::string to_string (const ArithmeticOperation &op)
 Formatted output of the Arithmetic Operation. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ReductionOperation &op)
 Formatted output of the Reduction Operations. More...
 
std::string to_string (const ReductionOperation &op)
 Formatted output of the Reduction Operations. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ComparisonOperation &op)
 Formatted output of the Comparison Operations. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ElementWiseUnary &op)
 Formatted output of the Elementwise unary Operations. More...
 
std::string to_string (const ComparisonOperation &op)
 Formatted output of the Comparison Operations. More...
 
std::string to_string (const ElementWiseUnary &op)
 Formatted output of the Elementwise unary Operations. More...
 
std::string to_string (const NormType &type)
 Formatted output of the Norm Type. More...
 
std::string to_string (const PoolingType &type)
 Formatted output of the Pooling Type. More...
 
std::string to_string (const PoolingLayerInfo &info)
 Formatted output of the Pooling Layer Info. More...
 
std::string to_string (const PriorBoxLayerInfo &info)
 Formatted output of the PriorBoxLayerInfo. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Size2D &size)
 Formatted output of the Size2D type. More...
 
std::string to_string (const Size2D &type)
 Formatted output of the Size2D type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Size3D &size)
 Formatted output of the Size3D type. More...
 
std::string to_string (const Size3D &type)
 Formatted output of the Size2D type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ConvolutionMethod &conv_method)
 Formatted output of the ConvolutionMethod type. More...
 
std::string to_string (const ConvolutionMethod &conv_method)
 Formatted output of the ConvolutionMethod type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GPUTarget &gpu_target)
 Formatted output of the GPUTarget type. More...
 
std::string to_string (const GPUTarget &gpu_target)
 Formatted output of the GPUTarget type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DetectionWindow &detection_window)
 Formatted output of the DetectionWindow type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DetectionOutputLayerCodeType &detection_code)
 Formatted output of the DetectionOutputLayerCodeType type. More...
 
std::string to_string (const DetectionOutputLayerCodeType &detection_code)
 Formatted output of the DetectionOutputLayerCodeType type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DetectionOutputLayerInfo &detection_info)
 Formatted output of the DetectionOutputLayerInfo type. More...
 
std::string to_string (const DetectionOutputLayerInfo &detection_info)
 Formatted output of the DetectionOutputLayerInfo type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DetectionPostProcessLayerInfo &detection_info)
 Formatted output of the DetectionPostProcessLayerInfo type. More...
 
std::string to_string (const DetectionPostProcessLayerInfo &detection_info)
 Formatted output of the DetectionPostProcessLayerInfo type. More...
 
std::string to_string (const DetectionWindow &detection_window)
 Formatted output of the DetectionWindow type. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PriorBoxLayerInfo &info)
 Formatted output of PriorBoxLayerInfo. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const WinogradInfo &info)
 Formatted output of the WinogradInfo type. More...
 
std::string to_string (const WinogradInfo &type)
 
std::string to_string (const CLTunerMode val)
 Convert a CLTunerMode value to a string. More...
 
std::string to_string (CLGEMMKernelType val)
 Converts a CLGEMMKernelType to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const CLTunerMode &val)
 [Print CLTunerMode type] More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ConvolutionInfo &conv_info)
 Formatted output of the ConvolutionInfo type. More...
 
std::string to_string (const ConvolutionInfo &info)
 Converts a ConvolutionInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const FullyConnectedLayerInfo &layer_info)
 Formatted output of the FullyConnectedLayerInfo type. More...
 
std::string to_string (const FullyConnectedLayerInfo &info)
 Converts a FullyConnectedLayerInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMLowpOutputStageType &gemm_type)
 Formatted output of the GEMMLowpOutputStageType type. More...
 
std::string to_string (const GEMMLowpOutputStageType &gemm_type)
 Converts a GEMMLowpOutputStageType to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const GEMMLowpOutputStageInfo &gemm_info)
 Formatted output of the GEMMLowpOutputStageInfo type. More...
 
std::string to_string (const GEMMLowpOutputStageInfo &gemm_info)
 Converts a GEMMLowpOutputStageInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Conv2dInfo &conv_info)
 Formatted output of the Conv2dInfo type. More...
 
std::string to_string (const Conv2dInfo &conv_info)
 Converts a Conv2dInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const PixelValue &pixel_value)
 Formatted output of the PixelValue type. More...
 
std::string to_string (const PixelValue &pixel_value)
 Converts a PixelValue to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const ScaleKernelInfo &scale_info)
 Formatted output of the ScaleKernelInfo type. More...
 
std::string to_string (const ScaleKernelInfo &scale_info)
 Converts a ScaleKernelInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const FFTDirection &fft_dir)
 Formatted output of the FFTDirection type. More...
 
std::string to_string (const FFTDirection &fft_dir)
 Converts a FFT1DInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const FFT1DInfo &fft1d_info)
 Formatted output of the FFT1DInfo type. More...
 
std::string to_string (const FFT1DInfo &fft1d_info)
 Converts a FFT1DInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const FFT2DInfo &fft2d_info)
 Formatted output of the FFT2DInfo type. More...
 
std::string to_string (const FFT2DInfo &fft2d_info)
 Converts a FFT2DInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Coordinates2D &coord_2d)
 Formatted output of the Coordinates2D type. More...
 
std::string to_string (const Coordinates2D &coord_2d)
 Converts a Coordinates2D to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const FuseBatchNormalizationType &fuse_type)
 Formatted output of the FuseBatchNormalizationType type. More...
 
std::string to_string (const FuseBatchNormalizationType &fuse_type)
 Converts a FuseBatchNormalizationType to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const SoftmaxKernelInfo &info)
 Formatted output of the SoftmaxKernelInfo type. More...
 
std::string to_string (const SoftmaxKernelInfo &info)
 Converts a SoftmaxKernelInfo to string. More...
 
template<typename T >
::std::ostream & operator<< (::std::ostream &os, const LSTMParams< T > &lstm_params)
 Formatted output of the ScaleKernelInfo type. More...
 
template<typename T >
std::string to_string (const LSTMParams< T > &lstm_params)
 Converts a LSTMParams to string. More...
 
std::string to_string (const uint8_t num)
 Converts a LSTMParams to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const NMSType &nms_type)
 Available non maxima suppression types. More...
 
std::string to_string (const NMSType nms_type)
 Converts a NMSType to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const BoxNMSLimitInfo &info)
 Formatted output of the BoxNMSLimitInfo type. More...
 
std::string to_string (const BoxNMSLimitInfo &info)
 Converts a BoxNMSLimitInfo to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const DimensionRoundingType &rounding_type)
 Formatted output of the DimensionRoundingType type. More...
 
std::string to_string (const DimensionRoundingType &rounding_type)
 Converts a DimensionRoundingType to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Padding3D &padding3d)
 Formatted output of the Padding3D type. More...
 
std::string to_string (const Padding3D &padding3d)
 Converts a Padding3D to string. More...
 
inline ::std::ostream & operator<< (::std::ostream &os, const Conv3dInfo &conv3d_info)
 Formatted output of the Conv3dInfo type. More...
 
std::string to_string (const Conv3dInfo &conv3d_info)
 Formatted output of the Conv3dInfo type. More...
 
(EXPERIMENTAL_POST_OPS)
inline ::std::ostream & operator<< (::std::ostream &os, experimental::PostOpType post_op_type)
 Formmated output of the experimental::PostOpType type. More...
 
std::string to_string (experimental::PostOpType post_op_type)
 Converts a experimental::PostOpType to string. More...
 
template<typename T >
inline ::std::ostream & operator<< (::std::ostream &os, const experimental::IPostOp< T > &post_op)
 Formatted output of the experimental::IPostOp type. More...
 
template<typename T >
std::string to_string (const experimental::IPostOp< T > &post_op)
 Converts an experimental::IPostOp to string. More...
 
template<typename T >
inline ::std::ostream & operator<< (::std::ostream &os, const experimental::PostOpList< T > &post_ops)
 Formatted output of the experimental::PostOpList type. More...
 
template<typename T >
std::string to_string (const experimental::PostOpList< T > &post_ops)
 Converts a experimental::PostOpList to string. More...