目录

AppendDim

Function 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.

Function Prototype

Shape& AppendDim(const int64_t value)

Parameters

parameter Input/Output Description
value Input Dimension value to be appended.

Return Value

"this" reference

Restrictions

None

Calling Example

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