CreateTensorBase

Function Usage

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

Prototype

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

Parameters

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 corresponding constructor.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.