ARM Compute Library
17.04
|
#include "arm_compute/core/Error.h"
#include "arm_compute/core/HOGInfo.h"
#include "arm_compute/core/IKernel.h"
#include "arm_compute/core/IMultiHOG.h"
#include "arm_compute/core/IMultiImage.h"
#include "arm_compute/core/ITensor.h"
#include "arm_compute/core/MultiImageInfo.h"
#include "arm_compute/core/Window.h"
#include <algorithm>
Go to the source code of this file.
Namespaces | |
arm_compute | |
Functions | |
void | error_on_mismatching_windows (const char *function, const char *file, const int line, const Window &full, const Window &win) |
Throw an error if the passed window is invalid. More... | |
void | error_on_invalid_subwindow (const char *function, const char *file, const int line, const Window &full, const Window &sub) |
Throw an error if the passed subwindow is invalid. More... | |
void | error_on_coordinates_dimensions_gte (const char *function, const char *file, const int line, const Coordinates &pos, unsigned int max_dim) |
Throw an error if the passed coordinates have too many dimensions. More... | |
void | error_on_window_dimensions_gte (const char *function, const char *file, const int line, const Window &win, unsigned int max_dim) |
Throw an error if the passed window has too many dimensions. More... | |
bool | have_different_shapes (const ITensor *tensor_1, const ITensor *tensor_2) |
template<typename... Ts> | |
void | error_on_mismatching_shapes (const char *function, const char *file, const int line, const ITensor *tensor_1, const ITensor *tensor_2, Ts...tensors) |
Throw an error if the passed two tensors have different shapes. More... | |
template<typename... Ts> | |
void | error_on_mismatching_data_types (const char *function, const char *file, const int line, const ITensor *tensor_1, const ITensor *tensor_2, Ts...tensors) |
Throw an error if the passed two tensors have different data types. 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> | |
void | error_on_data_type_not_in (const char *function, const char *file, const int line, const ITensor *tensor, T &&dt, Ts &&...dts) |
Throw 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> | |
void | 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) |
Throw 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... | |
void | error_on_tensor_not_2d (const char *function, const char *file, const int line, const ITensor *tensor) |
Throw an error if the tensor is not 2D. More... | |
template<typename T , typename... Ts> | |
void | error_on_channel_not_in (const char *function, const char *file, const int line, T cn, T &&channel, Ts &&...channels) |
Throw an error if the channel is not in channels. More... | |
void | error_on_channel_not_in_known_format (const char *function, const char *file, const int line, Format fmt, Channel cn) |
Throw an error if the channel is not in format. More... | |
void | error_on_invalid_multi_hog (const char *function, const char *file, const int line, const IMultiHOG *multi_hog) |
Throw an error if the IMultiHOG container is invalid. More... | |
void | error_on_unconfigured_kernel (const char *function, const char *file, const int line, const IKernel *kernel) |
Throw an error if the kernel is not configured. More... | |
#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN | ( | c, | |
... | |||
) | ::arm_compute::error_on_channel_not_in(__func__, __FILE__, __LINE__, c, __VA_ARGS__) |
Definition at line 305 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_CHANNEL_NOT_IN_KNOWN_FORMAT | ( | f, | |
c | |||
) | ::arm_compute::error_on_channel_not_in_known_format(__func__, __FILE__, __LINE__, f, c) |
Definition at line 317 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_COORDINATES_DIMENSIONS_GTE | ( | p, | |
md | |||
) | ::arm_compute::error_on_coordinates_dimensions_gte(__func__, __FILE__, __LINE__, p, md) |
Definition at line 86 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN | ( | t, | |
c, | |||
... | |||
) | ::arm_compute::error_on_data_type_channel_not_in(__func__, __FILE__, __LINE__, t, c, __VA_ARGS__) |
Definition at line 269 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN | ( | t, | |
... | |||
) | ::arm_compute::error_on_data_type_not_in(__func__, __FILE__, __LINE__, t, __VA_ARGS__) |
Definition at line 246 of file Validate.h.
#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 215 of file Validate.h.
Referenced by test_helpers::draw_detection_rectangle(), PPMLoader::fill_image(), and test_helpers::save_to_ppm().
#define ARM_COMPUTE_ERROR_ON_INVALID_MULTI_HOG | ( | m | ) | ::arm_compute::error_on_invalid_multi_hog(__func__, __FILE__, __LINE__, m) |
Definition at line 334 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW | ( | f, | |
s | |||
) | ::arm_compute::error_on_invalid_subwindow(__func__, __FILE__, __LINE__, f, s) |
Definition at line 72 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES | ( | ... | ) | ::arm_compute::error_on_mismatching_data_types(__func__, __FILE__, __LINE__, __VA_ARGS__) |
Definition at line 184 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES | ( | ... | ) | ::arm_compute::error_on_mismatching_shapes(__func__, __FILE__, __LINE__, __VA_ARGS__) |
Definition at line 150 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS | ( | f, | |
w | |||
) | ::arm_compute::error_on_mismatching_windows(__func__, __FILE__, __LINE__, f, w) |
Definition at line 55 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D | ( | t | ) | ::arm_compute::error_on_tensor_not_2d(__func__, __FILE__, __LINE__, t) |
Definition at line 280 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL | ( | k | ) | ::arm_compute::error_on_unconfigured_kernel(__func__, __FILE__, __LINE__, k) |
Definition at line 345 of file Validate.h.
#define ARM_COMPUTE_ERROR_ON_WINDOW_DIMENSIONS_GTE | ( | w, | |
md | |||
) | ::arm_compute::error_on_window_dimensions_gte(__func__, __FILE__, __LINE__, w, md) |
Definition at line 100 of file Validate.h.