Reshape
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Reshapes a tensor without changing the tensor content.
Prototype
1 | int32_t Reshape(const std::vector<int64_t> &shape) |
Command-Line Options
Parameter |
Input/Output |
Description |
|---|---|---|
shape |
Input |
Target shape to be changed. The number of elements of shape before and after reshaping must be the same. |
Returns
- 0: success
- other: FAILED. For details, see the error code.
Troubleshooting
None
Constraints
If reshaping is performed on the input, other nodes that use the input may be affected.
Parent topic: SetMsgType