23.11
|
Go to the documentation of this file.
91 const char *
function,
const char *file,
const int line,
const arm_compute::Window &win,
unsigned int max_dim)
96 (win[i].start() != 0) || (win[i].
end() != win[i].
step()),
function, file, line,
97 "Maximum number of dimensions expected %u but dimension %u is not empty", max_dim, i);
110 "Only 2D Tensors are supported by this kernel (%zu passed)",
111 tensor->info()->num_dimensions());
122 "Only 2D Tensors are supported by this kernel (%zu passed)",
123 tensor->num_dimensions());
170 "This kernel hasn't been configured.");
182 for (
unsigned int i = 0; i < TensorShape::num_max_dimensions; ++i)
184 const bool invalid_idx = coords[i] >=
static_cast<int>(parent_shape[i]);
185 const bool out_of_bounds_size = coords[i] +
static_cast<int>(
shape[i]) >
static_cast<int>(parent_shape[i]);
198 for (
unsigned int d = 0; d < TensorShape::num_max_dimensions; ++d)
202 (parent_valid_region.
anchor[d] +
static_cast<int>(parent_valid_region.
shape[d])) <
204 function, file, line);
@ RGB888
3 channels, 1 U8 per channel
@ UNKNOWN
Unknown image format.
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.
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.
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.
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.
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.
Interface for CPU tensor.
@ UV88
2 channel, 1 U8 per channel
const ValidRegion valid_region
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.
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.
Common information for all the kernels.
Container for valid region of a window.
void validate() const
Will validate all the window's dimensions' values when asserts are enabled.
@ IYUV
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
bool is_window_configured() const
Function to check if the embedded window of this kernel has been configured.
@ RGBA8888
4 channels, 1 U8 per channel
#define ARM_COMPUTE_RETURN_ERROR_ON_LOC_MSG_VAR(cond, func, file, line, msg,...)
If the condition is true, an error is thrown.
CLTensor * tensor
Pointer to the auxiliary tensor.
Format
Image colour formats.
Channel
Available channels.
@ YUYV422
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
#define ARM_COMPUTE_ERROR_LOC(func, file, line, msg)
Print the given message then throw an std::runtime_error.
@ YUV444
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
@ UYVY422
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
Describe a multidimensional execution window.
TensorShape shape
Shape of the valid region.
@ NV12
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
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...
void end(TokenStream &in, bool &valid)
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.
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.
Store the tensor's metadata.
@ NV21
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
#define ARM_COMPUTE_RETURN_ERROR_ON_LOC_MSG(cond, func, file, line, msg)
If the condition is true, an error is thrown.
static constexpr size_t num_max_dimensions
Number of dimensions the tensor has.
Coordinates anchor
Anchor for the start of the valid region.
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.
#define ARM_COMPUTE_RETURN_ERROR_ON_LOC(cond, func, file, line)
If the condition is true, an error is returned.