openvino.runtime.opset5.reshape(node: Union[openvino.pyopenvino.Node, int, float, numpy.ndarray], output_shape: Union[openvino.pyopenvino.Node, int, float, numpy.ndarray], special_zero: bool, name: Optional[str] = None) → openvino.pyopenvino.Node

Return reshaped node according to provided 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