Compute Library
GCScale Class Reference

Basic function to run GCScaleKernel. More...

#include <GCScale.h>

Collaboration diagram for GCScale:

Public Member Functions

void configure (IGCTensor *input, IGCTensor *output, InterpolationPolicy policy, BorderMode border_mode, PixelValue constant_border_value=PixelValue(), SamplingPolicy sampling_policy=SamplingPolicy::CENTER)
 Initialize the function's source, destination, interpolation type and border_mode. More...
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction ()
 Default constructor. More...
void run () override final
 Run the kernels contained in the function. More...
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
virtual void prepare ()
 Prepare the function for executing. More...

Detailed Description

Basic function to run GCScaleKernel.

Definition at line 37 of file GCScale.h.

Member Function Documentation

◆ configure()

void configure ( IGCTensor input,
IGCTensor output,
InterpolationPolicy  policy,
BorderMode  border_mode,
PixelValue  constant_border_value = PixelValue(),
SamplingPolicy  sampling_policy = SamplingPolicy::CENTER 

Initialize the function's source, destination, interpolation type and border_mode.

[in,out]inputSource tensor. Data types supported: F16. (Written to only for border_mode != UNDEFINED)
[out]outputDestination tensor. Data types supported: Same as input All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane.
[in]policyThe interpolation type.
[in]border_modeStrategy to use for borders.
[in]constant_border_value(Optional) Constant value to use for borders if border_mode is set to CONSTANT.
[in]sampling_policy(Optional) Sampling policy used by the interpolation. Defaults to SamplingPolicy::CENTER

Definition at line 34 of file GCScale.cpp.

35 {
36  auto k = arm_compute::support::cpp14::make_unique<GCScaleKernel>();
37  k->configure(input, output, policy, border_mode == BorderMode::UNDEFINED, sampling_policy);
38  _kernel = std::move(k);
39  _border_handler.configure(input, _kernel->border_size(), border_mode, constant_border_value);
40 }
Borders are left undefined.

References arm_compute::test::validation::border_mode, arm_compute::test::validation::policy, and arm_compute::UNDEFINED.

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