ngraph.constant

ngraph.constant(value: Union[int, float, numpy.ndarray], dtype: Optional[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.