42 anchor[0] + border_size.
left,
45 anchor[0] + border_size.
left +
ceil_to_multiple(std::max(0, static_cast<int>(shape[0]) - static_cast<int>(border_size.
left) - static_cast<int>(border_size.
right)), steps[0]),
54 anchor[1] + border_size.
top,
56 anchor[1] + border_size.
top +
ceil_to_multiple(std::max(0, static_cast<int>(shape[1]) - static_cast<int>(border_size.
top) - static_cast<int>(border_size.
bottom)), steps[1]),
96 border_size.
left +
ceil_to_multiple(std::max(0, static_cast<int>(shape[0]) - static_cast<int>(border_size.
left) - static_cast<int>(border_size.
right)), steps[0]),
107 border_size.
top +
ceil_to_multiple(std::max(0, static_cast<int>(shape[1]) - static_cast<int>(border_size.
top) - static_cast<int>(border_size.
bottom)), steps[1]),
142 anchor[0] - border_size.
left,
154 anchor[1] - border_size.
top,
191 border_size.
left = 0;
192 border_size.
right = 0;
202 anchor[0] + border_size.
left,
205 anchor[0] + border_size.
left +
ceil_to_multiple(std::max(0, static_cast<int>(shape[0]) - static_cast<int>(border_size.
left) - static_cast<int>(border_size.
right)), steps[0]),
214 anchor[1] - border_size.
top,
216 anchor[1] + shape[1] + border_size.
bottom,
unsigned int top
top of the border
Window calculate_max_window(const ValidRegion &valid_region, const Steps &steps, bool skip_border, BorderSize border_size)
TensorShape shape
Shape of the valid region.
Container for 2D border size.
Describe one of the image's dimensions with a start, end and step.
unsigned int bottom
bottom of the border
const ValidRegion valid_region
Window calculate_max_window_horizontal(const ValidRegion &valid_region, const Steps &steps, bool skip_border, BorderSize border_size)
Copyright (c) 2017-2021 Arm Limited.
auto ceil_to_multiple(S value, T divisor) -> decltype(((value+divisor - 1)/divisor) *divisor)
Computes the smallest number larger or equal to value that is a multiple of divisor.
Class to describe a number of elements in each dimension.
void set(size_t dimension, const Dimension &dim)
Set the values of a given dimension.
unsigned int left
left of the border
unsigned int right
right of the border
unsigned int num_dimensions() const
Returns the effective dimensionality of the tensor.
Window calculate_max_enlarged_window(const ValidRegion &valid_region, const Steps &steps, BorderSize border_size)
Container for valid region of a window.
static constexpr size_t num_max_dimensions
Number of dimensions the tensor has.
Describe a multidimensional execution window.
Coordinates anchor
Anchor for the start of the valid region.