reshape
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Reshapes a tensor without changing the tensor content.
Prototype
1 | def reshape(self, shape: Union[List[int], Tuple[int]]) |
Parameters
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 values: failure. For details, see UDF Error Codes.
Exception Handling
None
Constraints
If reshaping is performed on the input, other nodes that use the input may be affected.
Parent topic: Tensor Class