parameters: (value: NumericData, dtype: NumericType = None)
return_statement: return Constant(element_type, Shape(ndarray.shape), ndarray.flatten().tolist())
docstring: Return an ngraph Constant node with the specified value.
docstring_summary: Return an ngraph Constant node with the specified value.
docstring_tokens: Return an ngraph Constant node with the specified value .
function: def make_constant_node(value: NumericData, dtype: NumericType = None) -> Constant:
      """Return an ngraph Constant node with the specified value."""
      ndarray = get_ndarray(value)
      if dtype:
          element_type = get_element_type(dtype)
      else:
          element_type = get_element_type(ndarray.dtype)
  
      return Constant(element_type, Shape(ndarray.shape), ndarray.flatten().tolist())
function_tokens: def make_constant_node ( value : NumericData , dtype : NumericType = None ) -> Constant : ndarray = get_ndarray ( value ) if dtype : element_type = get_element_type ( dtype ) else : element_type = get_element_type ( ndarray . dtype ) return Constant ( element_type , Shape ( ndarray . shape ) , ndarray . flatten ( ) . tolist ( ) )