CreateTensorBase

Function Usage

Creates a TensorBase object and calls different constructors based on the input parameters.

Prototype

template<typename... Param>
static APP_ERROR CreateTensorBase(TensorBase &tensor, Param... params);

Parameter Description

Parameter

Input/Output

Description

tensor

Output

TensorBase object, which is used to receive the constructed TensorBase object.

params

Input

TensorBase construction parameters. For details about the parameters, see the constructor.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.