ngraph.opset5.constant

ngraph.opset5.constant(value: Union[int, float, numpy.ndarray], dtype: Union[type, numpy.dtype] = None, name: Optional[str] = None) _pyngraph.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.