21.02
|
Interface describing methods to update access window and padding based on kernel parameters. More...
#include <IAccessWindow.h>
Public Member Functions | |
virtual | ~IAccessWindow ()=default |
Default virtual destructor. More... | |
virtual bool | update_window_if_needed (Window &window) const =0 |
Shrink the window if padding is not large enough. More... | |
virtual bool | update_padding_if_needed (const Window &window)=0 |
Increase the padding to be large enough for the window. More... | |
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. More... | |
Interface describing methods to update access window and padding based on kernel parameters.
Definition at line 71 of file IAccessWindow.h.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Compute the valid region based on access pattern and valid region of the inputs.
[in] | window | Execution window of the kernel. |
[in] | input_valid_region | Combined valid region of all inputs. |
[in] | border_undefined | Undefined borders are excluded from the valid region. |
[in] | border_size | Size of the border around the XY-plane of the tensor. |
Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.
|
pure virtual |
Increase the padding to be large enough for the window.
[in] | window | Window used by the kernel. |
Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.
Referenced by arm_compute::update_window_and_padding().
|
pure virtual |
Shrink the window if padding is not large enough.
[in] | window | Window used by the kernel. |
Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.
Referenced by arm_compute::update_window_and_padding().