TensorShape

Function Usage

Constructor of TensorShape, which is used to create a TensorShape() object.

Prototype

TensorShape() = default;
TensorShape (std::vector<T> shape);

Parameter Description

Parameter

Input/Output

Description

shape

Input

Tensor shape.

Each dimension in the shape vector must be a positive integer. The maximum value of a single dimension and the product of all dimensions cannot exceed 52,428,8000 (500 MB). Otherwise, the function will throw an exception. ‬