ARM Compute Library
17.04
|
Dummy access window. More...
#include <AccessWindowAutoPadding.h>
Public Member Functions | |
AccessWindowAutoPadding (TensorInfo *info) | |
Default constructor. More... | |
AccessWindowAutoPadding (const AccessWindowAutoPadding &)=delete | |
AccessWindowAutoPadding & | operator= (const AccessWindowAutoPadding &)=delete |
AccessWindowAutoPadding (AccessWindowAutoPadding &&)=default | |
AccessWindowAutoPadding & | operator= (AccessWindowAutoPadding &&)=default |
~AccessWindowAutoPadding ()=default | |
void | set_valid_region () |
Set the valid region to match the entire tensor. More... | |
ValidRegion | compute_valid_region () const |
Return a valid region that spans across the entire tensor. More... | |
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... | |
ValidRegion | compute_valid_region (const Window &window, ValidRegion input_valid_region, bool border_undefined, BorderSize border_size) const override |
Compute the valid region based on access pattern and valid region of the inputs. More... | |
Public Member Functions inherited from IAccessWindow | |
virtual | ~IAccessWindow ()=default |
Dummy access window.
This implementation always uses the auto padding of the tensor info and never updates the window. The valid region is always set to cover the entire tensor.
Definition at line 47 of file AccessWindowAutoPadding.h.
AccessWindowAutoPadding | ( | TensorInfo * | info | ) |
Default constructor.
[in,out] | info | Tensor info of the accessed kernel. |
|
delete |
|
default |
|
default |
ValidRegion compute_valid_region | ( | ) | const |
Return a valid region that spans across the entire tensor.
|
overridevirtual |
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. |
Implements IAccessWindow.
|
delete |
|
default |
void set_valid_region | ( | ) |
Set the valid region to match the entire tensor.
|
overridevirtual |
Increase the padding to be large enough for the window.
[in] | window | Window used by the kernel. |
Implements IAccessWindow.
|
overridevirtual |
Shrink the window if padding is not large enough.
[in] | window | Window used by the kernel. |
Implements IAccessWindow.