openvino.runtime.opset9.constant

openvino.runtime.opset9.constant(value: Union[int, float, numpy.ndarray], dtype: Union[type, numpy.dtype, openvino._pyopenvino.Type] = None, name: Optional[str] = None) openvino._pyopenvino.op.Constant

Create a Constant node from provided value.

Parameters
  • value – One of: array of values or scalar to initialize node with.

  • dtype – The data type of provided data.

  • name – Optional name for output node.

Returns

The Constant node initialized with provided data.