24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_IACCESS_WINDOW_H
25 #define ARM_COMPUTE_IACCESS_WINDOW_H
105 bool border_undefined,
141 : _info(
info), _x(x), _y(y), _width(width), _height(height), _scale_x(
scale_x), _scale_y(
scale_y)
169 bool border_undefined =
false,
200 bool border_undefined,
Container for 2D border size.
virtual ~IAccessWindow()=default
Default virtual destructor.
ValidRegion compute_valid_region(const Window &window, const ValidRegion &input_valid_region) const
Compute the valid region based on access pattern, valid region of the inputs and border mode.
Implementation of a row access pattern.
~AccessWindowRectangle()=default
Default destructor.
virtual bool update_padding_if_needed(const Window &window)=0
Increase the padding to be large enough for the window.
Interface describing methods to update access window and padding based on kernel parameters.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Container for valid region of a window.
AccessWindowRectangle(ITensorInfo *info, int x, int y, int width, int height, float scale_x, float scale_y)
Constructor for a rectangular access pattern.
int adjust_up(int required, int available, int step)
Increase required in steps of step until it's greater than available.
virtual bool update_window_if_needed(Window &window) const =0
Shrink the window if padding is not large enough.
bool update_window_if_needed(Window &window) const override
Shrink the window if padding is not large enough.
Implementation of a rectangular access pattern.
bool update_padding_if_needed(const Window &window) override
Increase the padding to be large enough for the window.
AccessWindowVertical(ITensorInfo *info, int y, int height, float scale_y=1.f)
Constructor for a column access pattern.
AccessWindowHorizontal(ITensorInfo *info, int x, int width, float scale_x=1.f)
Constructor for a row access pattern.
Describe a multidimensional execution window.
Implementation of a column access pattern.
AccessWindowRectangle & operator=(const AccessWindowRectangle &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Copyright (c) 2017-2024 Arm Limited.
int adjust_down(int required, int available, int step)
Decrease required in steps of step until it's less than available.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void set_valid_region(const Window &window, const ValidRegion &input_valid_region, bool border_undefined=false, const BorderSize &border_size=BorderSize(0))
Set the valid region based on access pattern, valid region of the inputs and border mode.
virtual ValidRegion compute_valid_region(const Window &window, ValidRegion input_valid_region, bool border_undefined, BorderSize border_size) const =0
Compute the valid region based on access pattern and valid region of the inputs.
AccessWindowRectangle(ITensorInfo *info, int x, int y, int width, int height)
Constructor for a rectangular access pattern.