21.02
|
Basic function to run GCScaleKernel. More...
#include <GCScale.h>
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... | |
IGCSimpleFunction & | operator= (const IGCSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
IGCSimpleFunction & | operator= (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... | |
Basic function to run GCScaleKernel.
void configure | ( | IGCTensor * | input, |
IGCTensor * | output, | ||
const ScaleKernelInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
[in,out] | input | Source tensor. Data types supported: F16. (Written to only for border_mode != UNDEFINED) |
[out] | output | Destination 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] | info | ScaleKernelInfo descriptor to be used to configure |
Definition at line 33 of file GCScale.cpp.
References ScaleKernelInfo::border_mode, and ScaleKernelInfo::constant_border_value.