openvino.runtime.opset9.reshape

openvino.runtime.opset9.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.

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.