ngraph.utils.types

Functions related to converting between Python and numpy types and ngraph types.

Module Attributes

Functions

as_node(input_value)

Return input values as nodes.

as_nodes(*input_values)

Return input values as nodes.

get_dtype(ngraph_type)

Return a numpy.dtype for an ngraph element type.

get_element_type(data_type)

Return an ngraph element type for a Python type or numpy.dtype.

get_element_type_str(data_type)

Return an ngraph element type string representation for a Python type or numpy dtype.

get_ndarray(data)

Wrap data into a numpy ndarray.

get_shape(data)

Return a shape of NumericData.

make_constant_node(value[, dtype])

Return an ngraph Constant node with the specified value.

Classes

Constant

ngraph.impl.op.Constant wraps ngraph::op::Constant

NgraphType

alias of _pyngraph.Type

Node

ngraph.impl.Node wraps ngraph::Node

Output

ngraph.impl.Output wraps ngraph::Output<Node>

Shape

ngraph.impl.Shape wraps ngraph::Shape

Exceptions

NgraphTypeError

Type mismatch error.

Modules