hyped.core.abc module

Abstract base classes used to avoid circular imports.

class hyped.core.abc.AbstractDataFlow[source]

Bases: ABC

Abstract data flow base class.

class hyped.core.abc.AbstractDataFlowGraph[source]

Bases: ABC

Abstract data flow graph base class.

abstractmethod get_output_dtype(node_id: NodeId) DType[source]

Get the output data type of a specific node.

class hyped.core.abc.AbstractDataFlowGraphBuilder[source]

Bases: ABC

Abstract data flow graph builder base class.

abstractmethod attach_graph_to_node(*args, **kwargs) AbstractDataFlowGraph[source]

Attach a data flow graph to a specific node within the current graph.

abstractmethod cast(*args: Any, **kwargs: Any) ConcreteReference[source]

Add a cast node to the data flow graph.

abstractmethod collect(*args: Any, **kwargs: Any) ConcreteReference[source]

Adds a collect node to the data flow graph.

abstractmethod compute(*args, **kwargs) ConcreteReference[source]

Add a compute node to the data flow graph.

abstractmethod const(*args: Any, **kwargs: Any) ConcreteReference[source]

Adds a constant node to the data flow graph.

abstractmethod source(*args: Any, **kwargs: Any) ConcreteReference[source]

Add a the source node to the graph.