SetShape

Function Usage

Sets the shape of TensorBase.

Not supported by the Atlas 200/300/500 inference product.

Prototype

1
APP_ERROR TensorBase::SetShape(std::vector<uint32_t> shape);

Parameters

Parameter

Input/Output

Description

shape

Input

Each dimension in the shape vector must be a positive integer. The maximum value of a single dimension or the product of all dimensions cannot exceed 536,870,912 (512 x 1024 x 1024). Otherwise, the function will throw an exception.

Response Parameters

Data Structure

Description

APP_ERROR

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