AppendDim
Function Usage
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
1 | Shape& AppendDim(const int64_t value) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Input |
Dimension value to be appended. |
Returns
"this" reference
Constraints
None
Examples
1 2 | Shape shape0({3, 256, 256}); shape0.AppendDim(1024); // 3,256,256,1024 |
Parent topic: Shape