Shape Constructor and Destructor

Description

Constructs or destructs an object of class Shape.

Prototype

Shape()

~Shape() = default

explicit Shape(const std::vector<int64_t> &dims)

Parameters

Parameter

Input/Output

Description

dims

Input

Value of Shape.

Shape indicates the dimensions of a tensor. std::vector<int64_t> indicates each dimension.

Returns

A Shape object.

Exception Handling

None

Restrictions

None