Compute Library
 19.08
AccessWindowHorizontal Class Reference

Implementation of a row access pattern. More...

#include <IAccessWindow.h>

Collaboration diagram for AccessWindowHorizontal:
[legend]

Public Member Functions

 AccessWindowHorizontal (ITensorInfo *info, int x, int width, float scale_x=1.f)
 Constructor for a row access pattern. More...
 
- Public Member Functions inherited from AccessWindowRectangle
 AccessWindowRectangle (ITensorInfo *info, int x, int y, int width, int height)
 Constructor for a rectangular access pattern. More...
 
 AccessWindowRectangle (ITensorInfo *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
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 AccessWindowRectangle (AccessWindowRectangle &&)=default
 Allow instances of this class to be move constructed. More...
 
AccessWindowRectangleoperator= (const AccessWindowRectangle &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
AccessWindowRectangleoperator= (AccessWindowRectangle &&)=default
 Allow instances of this class to be moved. More...
 
 ~AccessWindowRectangle ()=default
 Default destructor. More...
 
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. More...
 
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. 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...
 
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) override
 Increase the padding to be large enough for the window. More...
 
- Public Member Functions inherited from IAccessWindow
virtual ~IAccessWindow ()=default
 Default virtual destructor. More...
 

Detailed Description

Implementation of a row access pattern.

Definition at line 231 of file IAccessWindow.h.

Constructor & Destructor Documentation

◆ AccessWindowHorizontal()

AccessWindowHorizontal ( ITensorInfo info,
int  x,
int  width,
float  scale_x = 1.f 
)
inline

Constructor for a row access pattern.

Note
Width has to be non-negative.
Parameters
[in,out]infoTensor info of the accessed kernel.
[in]xOffset of the access in X direction.
[in]widthNumber of elements that are accessed in X direction.
[in]scale_xRatio along the X direction between the window used by the execute_window_loop and the rectangular access pattern defined

Definition at line 243 of file IAccessWindow.h.

244  : AccessWindowRectangle(info, x, 0, width, 1, scale_x, 1.f)
245  {
246  ARM_COMPUTE_ERROR_ON(width < 0);
247  ARM_COMPUTE_ERROR_ON(scale_x < 0);
248  }
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Definition: Error.h:337
AccessWindowRectangle(ITensorInfo *info, int x, int y, int width, int height)
Constructor for a rectangular access pattern.

References ARM_COMPUTE_ERROR_ON.


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