Compute Library
 21.02
CPPUpsample Class Reference

Basic function to run CPPUpsample. More...

#include <CPPUpsample.h>

Collaboration diagram for CPPUpsample:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output, const PadStrideInfo &info)
 Configure the upsample CPP kernel. More...
 
- Public Member Functions inherited from ICPPSimpleFunction
 ICPPSimpleFunction ()
 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 CPPUpsample.

Definition at line 36 of file CPPUpsample.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output,
const PadStrideInfo info 
)

Configure the upsample CPP kernel.

Parameters
[in]inputThe input tensor to upsample. Data types supported: All.
[out]outputThe output tensor. Data types supported: same as input
[in]infoPadding information

Definition at line 30 of file CPPUpsample.cpp.

Referenced by NEDeconvolutionLayer::configure().

31 {
32  auto k = std::make_unique<CPPUpsampleKernel>();
33  k->configure(input, output, info);
34  _kernel = std::move(k);
35 }

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