openvino.runtime.opset13.reshape#

openvino.runtime.opset13.reshape(node: Node | int | float | ndarray, output_shape: Node | int | float | ndarray, special_zero: bool, name: str | None = None) Node#

Return reshaped node according to provided parameters.

Parameters:
  • node – The tensor we want to reshape.

  • output_shape – The node with a new shape for input tensor.

  • special_zero – The boolean variable that controls how zero values in shape are interpreted. If special_zero is false, then 0 is interpreted as-is which means that output shape will contain a zero dimension at the specified location. Input and output tensors are empty in this case. If special_zero is true, then all zeros in shape implies the copying of corresponding dimensions from data.shape into the output shape. Range of values: False or True

Returns:

The node reshaping an input tensor.