Implementation of a rectangular access pattern.
More...
#include <IAccessWindow.h>
|
| AccessWindowRectangle (TensorInfo *info, int x, int y, int width, int height) |
| Constructor for a rectangular access pattern. More...
|
|
| AccessWindowRectangle (TensorInfo *info, int x, int y, int width, int height, float scale_x, float scale_y) |
| Constructor for a rectangular access pattern. More...
|
|
| AccessWindowRectangle (const AccessWindowRectangle &)=delete |
|
AccessWindowRectangle & | operator= (const AccessWindowRectangle &)=delete |
|
| AccessWindowRectangle (AccessWindowRectangle &&)=default |
|
AccessWindowRectangle & | operator= (AccessWindowRectangle &&)=default |
|
| ~AccessWindowRectangle ()=default |
|
void | set_valid_region (const Window &window, ValidRegion input_valid_region) |
| Set the valid region based on access pattern and valid region of the inputs. More...
|
|
void | set_valid_region (const Window &window, ValidRegion input_valid_region, bool border_undefined, BorderSize border_size) override |
|
bool | update_window_if_needed (Window &window) const override |
| Shrink the window if padding is not large enough. More...
|
|
bool | update_padding_if_needed (const Window &window) const override |
| Increase the padding to be large enough for the window. More...
|
|
virtual | ~IAccessWindow ()=default |
|
Implementation of a rectangular access pattern.
Definition at line 100 of file IAccessWindow.h.
Constructor for a rectangular access pattern.
- Note
- Width and height have to be non-negative.
- Parameters
-
[in,out] | info | Tensor info of the accessed kernel. |
[in] | x | Offset of the access in X direction. |
[in] | y | Offset of the access in Y direction. |
[in] | width | Number of elements that are accessed in X direction. |
[in] | height | Number of elements that are accessed in Y direction. |
Definition at line 113 of file IAccessWindow.h.
AccessWindowRectangle(TensorInfo *info, int x, int y, int width, int height)
Constructor for a rectangular access pattern.
Constructor for a rectangular access pattern.
- Note
- Width, height and scale have to be non-negative.
- Parameters
-
[in,out] | info | Tensor info of the accessed kernel. |
[in] | x | Offset of the access in X direction. |
[in] | y | Offset of the access in Y direction. |
[in] | width | Number of elements that are accessed in X direction. |
[in] | height | Number of elements that are accessed in Y direction. |
[in] | scale_x | Ratio along the X direction between the window used by the execute_window_loop and the rectangular access pattern defined |
[in] | scale_y | Ratio along the Y direction between the window used by the execute_window_loop and the rectangular access pattern defined |
Definition at line 130 of file IAccessWindow.h.
References ARM_COMPUTE_ERROR_ON, IAccessWindow::set_valid_region(), IAccessWindow::update_padding_if_needed(), and IAccessWindow::update_window_if_needed().
131 : _info(info), _x(x), _y(y), _width(width), _height(height), _scale_x(scale_x), _scale_y(scale_y)
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Set the valid region based on access pattern and valid region of the inputs.
- Note
- This method assumes that there is no border.
-
This method assumes that all elements written by the kernel are valid.
- Parameters
-
[in] | window | Execution window of the kernel. |
[in] | input_valid_region | Combined valid region of all inputs. |
- Note
- This method assumes that all elements written by the kernel are valid.
Implements IAccessWindow.
bool update_padding_if_needed |
( |
const Window & |
window | ) |
const |
|
overridevirtual |
Increase the padding to be large enough for the window.
- Parameters
-
[in] | window | Window used by the kernel. |
- Returns
- True if the padding has been changed.
Implements IAccessWindow.
bool update_window_if_needed |
( |
Window & |
window | ) |
const |
|
overridevirtual |
Shrink the window if padding is not large enough.
- Parameters
-
[in] | window | Window used by the kernel. |
- Returns
- True if the window has been changed.
Implements IAccessWindow.
The documentation for this class was generated from the following file: