reshape

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

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

Exception Handling

None

Constraints

If reshaping is performed on the input, other nodes that use the input may be affected.