Compute Library
 23.05
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) noexcept
 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 189 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 
)
inlinenoexcept

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 201 of file KernelDescriptors.h.

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

215  {
216  }
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

◆ border_mode

◆ constant_border_value

PixelValue constant_border_value

Constant value to use for constant border mode policy.

Definition at line 220 of file KernelDescriptors.h.

Referenced by ClScaleKernel::configure(), CpuScaleKernel::configure(), and arm_compute::operator<<().

◆ data_layout

◆ interpolation_policy

◆ sampling_policy

◆ use_padding

bool use_padding

Indication of using padding.

Definition at line 222 of file KernelDescriptors.h.

Referenced by arm_compute::operator<<().


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