Compute Library
 21.02
GCScale Class Reference

Basic function to run GCScaleKernel. More...

#include <GCScale.h>

Collaboration diagram for GCScale:
[legend]

Public Member Functions

void configure (IGCTensor *input, IGCTensor *output, const ScaleKernelInfo &info)
 Initialize the function's source, destination, interpolation type and border_mode. More...
 
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction (GCRuntimeContext *ctx=nullptr)
 Default Constructor. More...
 
 IGCSimpleFunction (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 IGCSimpleFunction (IGCSimpleFunction &&)=default
 Default move constructor. More...
 
IGCSimpleFunctionoperator= (const IGCSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
IGCSimpleFunctionoperator= (IGCSimpleFunction &&)=default
 Default move assignment operator. 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.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 41 of file GCScale.h.

Member Function Documentation

◆ configure()

void configure ( IGCTensor input,
IGCTensor output,
const ScaleKernelInfo info 
)

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

Parameters
[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]infoScaleKernelInfo descriptor to be used to configure

Definition at line 33 of file GCScale.cpp.

References ScaleKernelInfo::border_mode, and ScaleKernelInfo::constant_border_value.

34 {
35  auto k = std::make_unique<GCScaleKernel>();
36  k->configure(input, output, info);
37  _kernel = std::move(k);
38  _border_handler.configure(input, _kernel->border_size(), info.border_mode, info.constant_border_value);
39 }
BorderMode border_mode
Border mode policy.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
PixelValue constant_border_value
Constant value to use for constant border mode policy.

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