Compute Library
 23.11
Validate.h File Reference

Go to the source code of this file.

Data Structures

class  compare_dimension< T >
 Function to compare two Dimensions objects and throw an error on mismatch. More...
 
struct  get_tensor_info_t< T >
 Get the info for a tensor, dummy struct. More...
 
struct  get_tensor_info_t< ITensorInfo * >
 Get the info for a tensor. More...
 

Namespaces

 arm_compute
 Copyright (c) 2017-2023 Arm Limited.
 
 arm_compute::detail
 

Macros

#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_nullptr(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_nullptr(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS(f, w)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_mismatching_windows(__func__, __FILE__, __LINE__, f, w))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_WINDOWS(f, w)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_mismatching_windows(__func__, __FILE__, __LINE__, f, w))
 
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_invalid_subwindow(__func__, __FILE__, __LINE__, f, s))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBWINDOW(f, s)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_invalid_subwindow(__func__, __FILE__, __LINE__, f, s))
 
#define ARM_COMPUTE_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION(f, w, d)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION(f, w, d)
 
#define ARM_COMPUTE_ERROR_ON_COORDINATES_DIMENSIONS_GTE(p, md)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_coordinates_dimensions_gte(__func__, __FILE__, __LINE__, p, md))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_COORDINATES_DIMENSIONS_GTE(p, md)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_coordinates_dimensions_gte(__func__, __FILE__, __LINE__, p, md))
 
#define ARM_COMPUTE_ERROR_ON_WINDOW_DIMENSIONS_GTE(w, md)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_window_dimensions_gte(__func__, __FILE__, __LINE__, w, md))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_DIMENSIONS_GTE(w, md)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_window_dimensions_gte(__func__, __FILE__, __LINE__, w, md))
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS(...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DIMENSIONS(...)
 
#define ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN(...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_tensors_not_even(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_EVEN(...)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_tensors_not_even(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED(...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_SUBSAMPLED(...)
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES(...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_mismatching_shapes(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES(...)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_mismatching_shapes(__func__, __FILE__, __LINE__, __VA_ARGS__))
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_LAYOUT(...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT(...)
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(...)
 
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_QUANTIZATION_INFO(...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_QUANTIZATION_INFO(...)
 
#define ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN(t, ...)   ::arm_compute::error_on_format_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__)
 
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN(t, ...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_data_type_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_NOT_IN(t, ...)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_data_type_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))
 
#define ARM_COMPUTE_ERROR_ON_DATA_LAYOUT_NOT_IN(t, ...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_data_layout_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_LAYOUT_NOT_IN(t, ...)
 
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c, ...)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c, ...)
 
#define ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(t)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_tensor_not_2d(__func__, __FILE__, __LINE__, t))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_TENSOR_NOT_2D(t)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_tensor_not_2d(__func__, __FILE__, __LINE__, t))
 
#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN(c, ...)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_channel_not_in(__func__, __FILE__, __LINE__, c, __VA_ARGS__))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN(c, ...)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_channel_not_in(__func__, __FILE__, __LINE__, c, __VA_ARGS__))
 
#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT(f, c)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_channel_not_in_known_format(__func__, __FILE__, __LINE__, f, c))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT(f, c)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_channel_not_in_known_format(__func__, __FILE__, __LINE__, f, c))
 
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(k)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_unconfigured_kernel(__func__, __FILE__, __LINE__, k))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_UNCONFIGURED_KERNEL(k)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_unconfigured_kernel(__func__, __FILE__, __LINE__, k))
 
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR(p, c, s)   ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, p, c, s))
 
#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR(p, c, s)   ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, p, c, s))
 
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION(pv, sv)
 
#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION(pv, sv)
 

Functions

template<typename T >
bool have_different_dimensions (const Dimensions< T > &dim1, const Dimensions< T > &dim2, unsigned int upper_dim)
 
template<typename F >
arm_compute::Status for_each_error (F &&)
 
template<typename F , typename T , typename... Ts>
arm_compute::Status for_each_error (F &&func, T &&arg, Ts &&...args)
 
template<typename... Ts>
arm_compute::Status error_on_nullptr (const char *function, const char *file, const int line, Ts &&...pointers)
 Create an error if one of the pointers is a nullptr. More...
 
arm_compute::Status error_on_mismatching_windows (const char *function, const char *file, const int line, const Window &full, const Window &win)
 Return an error if the passed window is invalid. More...
 
arm_compute::Status error_on_invalid_subwindow (const char *function, const char *file, const int line, const Window &full, const Window &sub)
 Return an error if the passed subwindow is invalid. More...
 
arm_compute::Status error_on_window_not_collapsable_at_dimension (const char *function, const char *file, const int line, const Window &full, const Window &window, const int dim)
 Return an error if the window can't be collapsed at the given dimension. More...
 
arm_compute::Status error_on_coordinates_dimensions_gte (const char *function, const char *file, const int line, const Coordinates &pos, unsigned int max_dim)
 Return an error if the passed coordinates have too many dimensions. More...
 
arm_compute::Status error_on_window_dimensions_gte (const char *function, const char *file, const int line, const Window &win, unsigned int max_dim)
 Return an error if the passed window has too many dimensions. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_mismatching_dimensions (const char *function, const char *file, int line, const Dimensions< T > &dim1, const Dimensions< T > &dim2, Ts &&...dims)
 Return an error if the passed dimension objects differ. More...
 
bool has_format_horizontal_subsampling (Format format)
 Return true if the given format has horizontal subsampling. More...
 
bool has_format_vertical_subsampling (Format format)
 Return true if the given format has vertical subsampling. More...
 
TensorShape adjust_odd_shape (const TensorShape &shape, Format format)
 Adjust tensor shape size if width or height are odd for a given multi-planar format. More...
 
template<typename... Ts>
arm_compute::Status error_on_tensors_not_even (const char *function, const char *file, int line, const Format &format, const ITensor *tensor1, Ts... tensors)
 Return an error if the passed tensor objects are not even. More...
 
TensorShape calculate_subsampled_shape (const TensorShape &shape, Format format, Channel channel=Channel::UNKNOWN)
 Calculate subsampled shape for a given format and channel. More...
 
template<typename... Ts>
arm_compute::Status error_on_tensors_not_subsampled (const char *function, const char *file, int line, const Format &format, const TensorShape &shape, const ITensor *tensor1, Ts... tensors)
 Return an error if the passed tensor objects are not sub-sampled. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_shapes (const char *function, const char *file, const int line, const ITensorInfo *tensor_info_1, const ITensorInfo *tensor_info_2, Ts... tensor_infos)
 Return an error if the passed two tensor infos have different shapes from the given dimension. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_shapes (const char *function, const char *file, const int line, const ITensor *tensor_1, const ITensor *tensor_2, Ts... tensors)
 Return an error if the passed two tensors have different shapes from the given dimension. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_shapes (const char *function, const char *file, const int line, unsigned int upper_dim, const ITensorInfo *tensor_info_1, const ITensorInfo *tensor_info_2, Ts... tensor_infos)
 Return an error if the passed two tensors have different shapes from the given dimension. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_shapes (const char *function, const char *file, const int line, unsigned int upper_dim, const ITensor *tensor_1, const ITensor *tensor_2, Ts... tensors)
 Return an error if the passed two tensors have different shapes from the given dimension. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_data_layouts (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, Ts... tensor_infos)
 Return an error if the passed tensor infos have different data layouts. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_data_layouts (const char *function, const char *file, const int line, const ITensor *tensor, Ts... tensors)
 Return an error if the passed tensors have different data layouts. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_data_types (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, Ts... tensor_infos)
 Return an error if the passed two tensor infos have different data types. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_data_types (const char *function, const char *file, const int line, const ITensor *tensor, Ts... tensors)
 Return an error if the passed two tensors have different data types. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_quantization_info (const char *function, const char *file, const int line, const ITensorInfo *tensor_info_1, const ITensorInfo *tensor_info_2, Ts... tensor_infos)
 Return an error if the passed tensor infos have different asymmetric quantized data types or different quantization info. More...
 
template<typename... Ts>
arm_compute::Status error_on_mismatching_quantization_info (const char *function, const char *file, const int line, const ITensor *tensor_1, const ITensor *tensor_2, Ts... tensors)
 Return an error if the passed tensor have different asymmetric quantized data types or different quantization info. More...
 
template<typename T , typename F , typename... Fs>
void error_on_format_not_in (const char *function, const char *file, const int line, const T *object, F &&format, Fs &&...formats)
 Throw an error if the format of the passed tensor/multi-image does not match any of the formats provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_type_not_in (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, T &&dt, Ts &&...dts)
 Return an error if the data type of the passed tensor info does not match any of the data types provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_type_not_in (const char *function, const char *file, const int line, const ITensor *tensor, T &&dt, Ts &&...dts)
 Return an error if the data type of the passed tensor does not match any of the data types provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_layout_not_in (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, T &&dl, Ts &&...dls)
 Return an error if the data layout of the passed tensor info does not match any of the data layouts provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_layout_not_in (const char *function, const char *file, const int line, const ITensor *tensor, T &&dl, Ts &&...dls)
 Return an error if the data layout of the passed tensor does not match any of the data layout provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_type_channel_not_in (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, size_t num_channels, T &&dt, Ts &&...dts)
 Return an error if the data type or the number of channels of the passed tensor info does not match any of the data types and number of channels provided. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_data_type_channel_not_in (const char *function, const char *file, const int line, const ITensor *tensor, size_t num_channels, T &&dt, Ts &&...dts)
 Return an error if the data type or the number of channels of the passed tensor does not match any of the data types and number of channels provided. More...
 
arm_compute::Status error_on_unsupported_fp16 (const char *function, const char *file, const int line, const ITensorInfo *tensor_info, bool is_fp16_supported)
 Return an error if the data type of the passed tensor info is FP16 and FP16 extension is not supported by the device. More...
 
arm_compute::Status error_on_unsupported_fp16 (const char *function, const char *file, const int line, const ITensor *tensor, bool is_fp16_supported)
 Return an error if the data type of the passed tensor is FP16 and FP16 extension is not supported by the device. More...
 
arm_compute::Status error_on_tensor_not_2d (const char *function, const char *file, const int line, const ITensor *tensor)
 Return an error if the tensor is not 2D. More...
 
arm_compute::Status error_on_tensor_not_2d (const char *function, const char *file, const int line, const ITensorInfo *tensor)
 Return an error if the tensor info is not 2D. More...
 
template<typename T , typename... Ts>
arm_compute::Status error_on_channel_not_in (const char *function, const char *file, const int line, T cn, T &&channel, Ts &&...channels)
 Return an error if the channel is not in channels. More...
 
arm_compute::Status error_on_channel_not_in_known_format (const char *function, const char *file, const int line, Format fmt, Channel cn)
 Return an error if the channel is not in format. More...
 
arm_compute::Status error_on_unconfigured_kernel (const char *function, const char *file, const int line, const IKernel *kernel)
 Return an error if the kernel is not configured. More...
 
arm_compute::Status error_on_invalid_subtensor (const char *function, const char *file, const int line, const TensorShape &parent_shape, const Coordinates &coords, const TensorShape &shape)
 Return an error if if the coordinates and shape of the subtensor are within the parent tensor. More...
 
arm_compute::Status error_on_invalid_subtensor_valid_region (const char *function, const char *file, const int line, const ValidRegion &parent_valid_region, const ValidRegion &valid_region)
 Return an error if the valid region of a subtensor is not inside the valid region of the parent tensor. More...
 

Macro Definition Documentation

◆ ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN

#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN (   c,
  ... 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_channel_not_in(__func__, __FILE__, __LINE__, c, __VA_ARGS__))

Definition at line 1046 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT

#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT (   f,
 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_channel_not_in_known_format(__func__, __FILE__, __LINE__, f, c))

Definition at line 1063 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_COORDINATES_DIMENSIONS_GTE

#define ARM_COMPUTE_ERROR_ON_COORDINATES_DIMENSIONS_GTE (   p,
  md 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_coordinates_dimensions_gte(__func__, __FILE__, __LINE__, p, md))

Definition at line 244 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_DATA_LAYOUT_NOT_IN

#define ARM_COMPUTE_ERROR_ON_DATA_LAYOUT_NOT_IN (   t,
  ... 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_data_layout_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))

Definition at line 888 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN

#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN (   t,
  c,
  ... 
)
Value:
::arm_compute::error_on_data_type_channel_not_in(__func__, __FILE__, __LINE__, t, c, __VA_ARGS__))

Definition at line 949 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN

#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN (   t,
  ... 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_data_type_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))

Definition at line 836 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN

#define ARM_COMPUTE_ERROR_ON_FORMAT_NOT_IN (   t,
  ... 
)    ::arm_compute::error_on_format_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__)

Definition at line 786 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR

#define ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR (   p,
  c,
 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, p, c, s))

Definition at line 1101 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION

#define ARM_COMPUTE_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION (   pv,
  sv 
)
Value:

Definition at line 1121 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW

#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW (   f,
 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_invalid_subwindow(__func__, __FILE__, __LINE__, f, s))

Definition at line 203 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_LAYOUT

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_LAYOUT (   ...)
Value:
::arm_compute::error_on_mismatching_data_layouts(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 622 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES (   ...)
Value:
::arm_compute::error_on_mismatching_data_types(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 674 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DIMENSIONS (   ...)
Value:
::arm_compute::error_on_mismatching_dimensions(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 291 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_QUANTIZATION_INFO

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_QUANTIZATION_INFO (   ...)
Value:
::arm_compute::error_on_mismatching_quantization_info(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 750 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES (   ...)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_mismatching_shapes(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 572 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS

#define ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS (   f,
 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_mismatching_windows(__func__, __FILE__, __LINE__, f, w))

Definition at line 181 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_NULLPTR

#define ARM_COMPUTE_ERROR_ON_NULLPTR (   ...)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_nullptr(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 159 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D

#define ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D (   t)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_tensor_not_2d(__func__, __FILE__, __LINE__, t))

Definition at line 1018 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN

#define ARM_COMPUTE_ERROR_ON_TENSORS_NOT_EVEN (   ...)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_tensors_not_even(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 386 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED

#define ARM_COMPUTE_ERROR_ON_TENSORS_NOT_SUBSAMPLED (   ...)
Value:
::arm_compute::error_on_tensors_not_subsampled(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 456 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL

#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL (   k)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_unconfigured_kernel(__func__, __FILE__, __LINE__, k))

Definition at line 1079 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_WINDOW_DIMENSIONS_GTE

#define ARM_COMPUTE_ERROR_ON_WINDOW_DIMENSIONS_GTE (   w,
  md 
)    ARM_COMPUTE_ERROR_THROW_ON(::arm_compute::error_on_window_dimensions_gte(__func__, __FILE__, __LINE__, w, md))

Definition at line 263 of file Validate.h.

◆ ARM_COMPUTE_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION

#define ARM_COMPUTE_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION (   f,
  w,
 
)
Value:

Definition at line 223 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN

#define ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN (   c,
  ... 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_channel_not_in(__func__, __FILE__, __LINE__, c, __VA_ARGS__))

Definition at line 1048 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT

#define ARM_COMPUTE_RETURN_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT (   f,
 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_channel_not_in_known_format(__func__, __FILE__, __LINE__, f, c))

Definition at line 1065 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_COORDINATES_DIMENSIONS_GTE

#define ARM_COMPUTE_RETURN_ERROR_ON_COORDINATES_DIMENSIONS_GTE (   p,
  md 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_coordinates_dimensions_gte(__func__, __FILE__, __LINE__, p, md))

Definition at line 246 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_DATA_LAYOUT_NOT_IN

#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_LAYOUT_NOT_IN (   t,
  ... 
)
Value:
::arm_compute::error_on_data_layout_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))

Definition at line 890 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN

#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN (   t,
  c,
  ... 
)
Value:
::arm_compute::error_on_data_type_channel_not_in(__func__, __FILE__, __LINE__, t, c, __VA_ARGS__))

Definition at line 952 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_NOT_IN

#define ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_NOT_IN (   t,
  ... 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_data_type_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__))

Definition at line 838 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR

#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR (   p,
  c,
 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, p, c, s))

Definition at line 1103 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION

#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBTENSOR_VALID_REGION (   pv,
  sv 
)
Value:

Definition at line 1124 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBWINDOW

#define ARM_COMPUTE_RETURN_ERROR_ON_INVALID_SUBWINDOW (   f,
 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_invalid_subwindow(__func__, __FILE__, __LINE__, f, s))

Definition at line 205 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_LAYOUT (   ...)
Value:
::arm_compute::error_on_mismatching_data_layouts(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 625 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES (   ...)
Value:
::arm_compute::error_on_mismatching_data_types(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 677 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DIMENSIONS

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DIMENSIONS (   ...)
Value:
::arm_compute::error_on_mismatching_dimensions(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 294 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_QUANTIZATION_INFO

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_QUANTIZATION_INFO (   ...)
Value:
::arm_compute::error_on_mismatching_quantization_info(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 753 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES (   ...)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_mismatching_shapes(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 574 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_WINDOWS

#define ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_WINDOWS (   f,
 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_mismatching_windows(__func__, __FILE__, __LINE__, f, w))

Definition at line 183 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR

#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR (   ...)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_nullptr(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 161 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_TENSOR_NOT_2D

#define ARM_COMPUTE_RETURN_ERROR_ON_TENSOR_NOT_2D (   t)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_tensor_not_2d(__func__, __FILE__, __LINE__, t))

Definition at line 1020 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_EVEN

#define ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_EVEN (   ...)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_tensors_not_even(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 388 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_SUBSAMPLED

#define ARM_COMPUTE_RETURN_ERROR_ON_TENSORS_NOT_SUBSAMPLED (   ...)
Value:
::arm_compute::error_on_tensors_not_subsampled(__func__, __FILE__, __LINE__, __VA_ARGS__))

Definition at line 459 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_UNCONFIGURED_KERNEL

#define ARM_COMPUTE_RETURN_ERROR_ON_UNCONFIGURED_KERNEL (   k)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_unconfigured_kernel(__func__, __FILE__, __LINE__, k))

Definition at line 1081 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_DIMENSIONS_GTE

#define ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_DIMENSIONS_GTE (   w,
  md 
)    ARM_COMPUTE_RETURN_ON_ERROR(::arm_compute::error_on_window_dimensions_gte(__func__, __FILE__, __LINE__, w, md))

Definition at line 265 of file Validate.h.

◆ ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION

#define ARM_COMPUTE_RETURN_ERROR_ON_WINDOW_NOT_COLLAPSABLE_AT_DIMENSION (   f,
  w,
 
)
Value:

Definition at line 226 of file Validate.h.

arm_compute::error_on_mismatching_data_layouts
arm_compute::Status error_on_mismatching_data_layouts(const char *function, const char *file, const int line, const ITensorInfo *tensor_info, Ts... tensor_infos)
Return an error if the passed tensor infos have different data layouts.
Definition: Validate.h:588
arm_compute::error_on_data_layout_not_in
arm_compute::Status error_on_data_layout_not_in(const char *function, const char *file, const int line, const ITensorInfo *tensor_info, T &&dl, Ts &&...dls)
Return an error if the data layout of the passed tensor info does not match any of the data layouts p...
Definition: Validate.h:853
arm_compute::error_on_mismatching_quantization_info
arm_compute::Status error_on_mismatching_quantization_info(const char *function, const char *file, const int line, const ITensorInfo *tensor_info_1, const ITensorInfo *tensor_info_2, Ts... tensor_infos)
Return an error if the passed tensor infos have different asymmetric quantized data types or differen...
Definition: Validate.h:695
ARM_COMPUTE_RETURN_ON_ERROR
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Definition: Error.h:205
arm_compute::error_on_mismatching_dimensions
arm_compute::Status error_on_mismatching_dimensions(const char *function, const char *file, int line, const Dimensions< T > &dim1, const Dimensions< T > &dim2, Ts &&...dims)
Return an error if the passed dimension objects differ.
Definition: Validate.h:280
ARM_COMPUTE_ERROR_THROW_ON
#define ARM_COMPUTE_ERROR_THROW_ON(status)
Definition: Error.h:455
arm_compute::test::validation::w
SimpleTensor< float > w
Definition: DFT.cpp:156
arm_compute::error_on_tensors_not_subsampled
arm_compute::Status error_on_tensors_not_subsampled(const char *function, const char *file, int line, const Format &format, const TensorShape &shape, const ITensor *tensor1, Ts... tensors)
Return an error if the passed tensor objects are not sub-sampled.
Definition: Validate.h:436
arm_compute::error_on_invalid_subtensor_valid_region
arm_compute::Status error_on_invalid_subtensor_valid_region(const char *function, const char *file, const int line, const ValidRegion &parent_valid_region, const ValidRegion &valid_region)
Return an error if the valid region of a subtensor is not inside the valid region of the parent tenso...
Definition: Validate.cpp:191
arm_compute::error_on_mismatching_data_types
arm_compute::Status error_on_mismatching_data_types(const char *function, const char *file, const int line, const ITensorInfo *tensor_info, Ts... tensor_infos)
Return an error if the passed two tensor infos have different data types.
Definition: Validate.h:640
arm_compute::error_on_window_not_collapsable_at_dimension
arm_compute::Status error_on_window_not_collapsable_at_dimension(const char *function, const char *file, const int line, const Window &full, const Window &window, const int dim)
Return an error if the window can't be collapsed at the given dimension.
Definition: Validate.cpp:63
tf_frozen_model_extractor.t
t
Definition: tf_frozen_model_extractor.py:49
arm_compute::error_on_data_type_channel_not_in
arm_compute::Status error_on_data_type_channel_not_in(const char *function, const char *file, const int line, const ITensorInfo *tensor_info, size_t num_channels, T &&dt, Ts &&...dts)
Return an error if the data type or the number of channels of the passed tensor info does not match a...
Definition: Validate.h:907