hyped.core.features.reference module¶
This module provides the classes for referencing nodes within a data flow system.
It includes abstractions for both concrete references, which point to real nodes in a data flow graph, and forward references, which serve as placeholders or unresolved references to be resolved later.
- class hyped.core.features.reference.BaseReference[source]¶
Bases:
ABCAbstract base class for references to nodes within a data flow graph.
Subclasses of
BaseReferencerepresent different types of references that can be used to track or resolve elements in data flow graph. Each subclass must implement theget_dtype()method, which provides the data type associated with the reference.
- class hyped.core.features.reference.ConcreteReference(_node_id: str, _graph: AbstractDataFlowGraph, _builder: None | AbstractDataFlowGraphBuilder)[source]¶
Bases:
BaseReferenceRepresents a reference to a specific node within a data flow graph.
This class encapsulates the node identifier and the graph instance it belongs to, allowing for precise tracking and interaction with nodes in a data flow graph.
- class hyped.core.features.reference.ForwardReference(dtype: DType | None = None)[source]¶
Bases:
BaseReferenceRepresents a forward reference.
A forward reference serves as a placeholder for a node that is not yet resolved. This is often used in cases where the node or feature will be defined or linked at a later stage in the graph construction process.
- hyped.core.features.reference.NodeId¶
Node ID type in the data flow graph.
Represents the identifier for a node within a data flow graph. This is typically a string that uniquely identifies a node, allowing for the tracking and referencing of nodes within the graph structure.