openvino.experimental.set_tensor_type#

openvino.experimental.set_tensor_type(tensor: openvino._pyopenvino.DescriptorTensor, element_type: openvino._pyopenvino.Type, partial_shape: openvino._pyopenvino.PartialShape) None#

Changes element type and partial shape of a tensor descriptor in the OV model graph.

Parameters:
  • tensor (openvino.Tensor) – The tensor descriptor whose element type is to be set.

  • element_type (openvino.Type) – A new element type of the tensor descriptor.

  • partial_shape (openvino.PartialShape) – A new partial shape of the tensor desriptor.