openvino.runtime.opset8.constant#

openvino.runtime.opset8.constant(value: int | float | ndarray, dtype: type | dtype | Type = None, name: str | None = None) 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.