API Reference
Graph.
reshape
Reshape a tensor into a new shape, keeping the order of its elements.
tensor (np.ndarray or Tensor) – The tensor you want to reshape.
shape (tuple[int]) – The new shape of the tensor.
name (str, optional) – The name of the node.
The reshaped tensor.
Tensor