Compute Library
 21.02
IAccessWindow Class Referenceabstract

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...
 

Detailed Description

Interface describing methods to update access window and padding based on kernel parameters.

Definition at line 71 of file IAccessWindow.h.

Constructor & Destructor Documentation

◆ ~IAccessWindow()

virtual ~IAccessWindow ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ compute_valid_region()

virtual ValidRegion compute_valid_region ( const Window window,
ValidRegion  input_valid_region,
bool  border_undefined,
BorderSize  border_size 
) const
pure virtual

Compute the valid region based on access pattern and valid region of the inputs.

Note
This method assumes that there is no border.
Parameters
[in]windowExecution window of the kernel.
[in]input_valid_regionCombined valid region of all inputs.
[in]border_undefinedUndefined borders are excluded from the valid region.
[in]border_sizeSize of the border around the XY-plane of the tensor.
Returns
a valid region.

Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.

◆ update_padding_if_needed()

virtual bool update_padding_if_needed ( const Window window)
pure virtual

Increase the padding to be large enough for the window.

Parameters
[in]windowWindow used by the kernel.
Returns
True if the padding has been changed.

Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.

Referenced by arm_compute::update_window_and_padding().

◆ update_window_if_needed()

virtual bool update_window_if_needed ( Window window) const
pure virtual

Shrink the window if padding is not large enough.

Parameters
[in]windowWindow used by the kernel.
Returns
True if the window has been changed.

Implemented in AccessWindowRectangle, AccessWindowStatic, AccessWindowAutoPadding, and AccessWindowTranspose.

Referenced by arm_compute::update_window_and_padding().


The documentation for this class was generated from the following file: