Compute Library
 21.02
ScaleKernelInfo Struct Reference

#include <KernelDescriptors.h>

Collaboration diagram for ScaleKernelInfo:
[legend]

Public Member Functions

 ScaleKernelInfo (InterpolationPolicy interpolation_policy, BorderMode border_mode, PixelValue constant_border_value=PixelValue(), SamplingPolicy sampling_policy=SamplingPolicy::CENTER, bool use_padding=true, bool align_corners=false, DataLayout data_layout=DataLayout::UNKNOWN)
 Constructor. More...
 

Data Fields

InterpolationPolicy interpolation_policy
 Interpolation type to use. More...
 
BorderMode border_mode
 Border mode policy. More...
 
PixelValue constant_border_value
 Constant value to use for constant border mode policy. More...
 
SamplingPolicy sampling_policy
 Sampling policy used by the interpolation. More...
 
bool use_padding
 Indication of using padding. More...
 
bool align_corners
 Align corners of input and output. More...
 
DataLayout data_layout
 Data layout to use. More...
 

Detailed Description

Definition at line 175 of file KernelDescriptors.h.

Constructor & Destructor Documentation

◆ ScaleKernelInfo()

ScaleKernelInfo ( InterpolationPolicy  interpolation_policy,
BorderMode  border_mode,
PixelValue  constant_border_value = PixelValue(),
SamplingPolicy  sampling_policy = SamplingPolicy::CENTER,
bool  use_padding = true,
bool  align_corners = false,
DataLayout  data_layout = DataLayout::UNKNOWN 
)
inline

Constructor.

Parameters
[in]interpolation_policyInterpolation type to use
[in]border_modeBorder mode policy
[in]constant_border_value(Optional) Constant value to use for borders if border_mode is set to CONSTANT and use_padding is set to false. Defaults to default PixelValue
[in]sampling_policy(Optional) Sampling policy used by the interpolation. Defaults to SamplingPolicy::CENTER
[in]use_padding(Optional) Is padding in use or not. Defaults to true.
[in]align_corners(Optional) Align corners of input and output, only affecting bilinear policy with TOP_LEFT sampling policy. Defaults to false.
[in]data_layout(Optional) Data layout used by the layer. Defaults to DataLayout::UNKNOWN

Definition at line 187 of file KernelDescriptors.h.

References arm_compute::test::validation::data_layout, and arm_compute::test::validation::sampling_policy.

201  {
202  }
BorderMode border_mode
Border mode policy.
InterpolationPolicy interpolation_policy
Interpolation type to use.
bool align_corners
Align corners of input and output.
bool use_padding
Indication of using padding.
SamplingPolicy sampling_policy
Sampling policy used by the interpolation.
PixelValue constant_border_value
Constant value to use for constant border mode policy.
DataLayout data_layout
Data layout to use.

Field Documentation

◆ align_corners

bool align_corners

Align corners of input and output.

Definition at line 209 of file KernelDescriptors.h.

Referenced by NEScale::configure(), CLScaleKernel::configure(), and NEScaleKernel::configure().

◆ border_mode

◆ constant_border_value

PixelValue constant_border_value

Constant value to use for constant border mode policy.

Definition at line 206 of file KernelDescriptors.h.

Referenced by GCScale::configure(), CLScaleKernel::configure(), NEScaleKernel::configure(), and CLScale::configure().

◆ data_layout

◆ interpolation_policy

InterpolationPolicy interpolation_policy

◆ sampling_policy

SamplingPolicy sampling_policy

Sampling policy used by the interpolation.

Definition at line 207 of file KernelDescriptors.h.

Referenced by GCScaleKernel::configure(), NEScale::configure(), CLScaleKernel::configure(), NEScaleKernel::configure(), and NEScale::validate().

◆ use_padding

bool use_padding

Indication of using padding.

Definition at line 208 of file KernelDescriptors.h.


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