AppendDim

Description

Appends a dimension value. If the number of appended dimension values exceeds the maximum value of Shape, this function does not perform any operation.

Prototype

Shape& AppendDim(const int64_t value)

Parameters

Parameter

Input/Output

Description

value

Input

Dimension value to be appended.

Returns

"this" reference

Restrictions

None

Example

Shape shape0({3, 256, 256});
shape0.AppendDim(1024); // 3,256,256,1024