Compute Library
 22.02
AccessWindowVertical Class Reference

Implementation of a column access pattern. More...

#include <IAccessWindow.h>

Collaboration diagram for AccessWindowVertical:
[legend]

Public Member Functions

 AccessWindowVertical (ITensorInfo *info, int y, int height, float scale_y=1.f)
 Constructor for a column 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 column access pattern.

Definition at line 211 of file IAccessWindow.h.

Constructor & Destructor Documentation

◆ AccessWindowVertical()

AccessWindowVertical ( ITensorInfo info,
int  y,
int  height,
float  scale_y = 1.f 
)
inline

Constructor for a column access pattern.

Note
Height has to be non-negative.
Parameters
[in,out]infoTensor info of the accessed kernel.
[in]yOffset of the access in Y direction.
[in]heightNumber of elements that are accessed in Y direction.
[in]scale_yRatio along the Y direction between the window used by the execute_window_loop and the rectangular access pattern defined

Definition at line 223 of file IAccessWindow.h.

References ARM_COMPUTE_ERROR_ON, and arm_compute::test::validation::scale_y.

224  : AccessWindowRectangle(info, 0, y, 1, height, 1.f, scale_y)
225  {
226  ARM_COMPUTE_ERROR_ON(height < 0);
228  }
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Definition: Error.h:466
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
AccessWindowRectangle(ITensorInfo *info, int x, int y, int width, int height)
Constructor for a rectangular access pattern.

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