nv_dfm_core.api: Pipeline API#
The API package contains all the pydantic models that encode the available functions that can be sent to the dfm for execution.
Core#
The building blocks for constructing DFM pipelines.
Represents a DFM pipeline containing a sequence of operations and control flow. |
|
A pipeline that has been prepared and optimized for execution in a federation. |
|
An Operation is semantically similar to a remote method call on the containing provider object. |
|
Sends a value back to a place located in the app. |
|
This marker is attached to Statements to indicate that the value is passed later as a pipeline a parameter. |
|
A NodeRef is used to identify (reference) a node in a pipeline when passing the output of a node as a parameter to another node. |
Control Flow#
Constructs for branching, looping, and caching within a pipeline.
Takes an iterable and iterates over it, executing the body for each element. |
|
IfTrue is a statement that executes the body if the condition is true. |
|
A Block is a linear list of Statements (and subclasses of Statements). |
|
Takes a key and tries to get the value from the cache. |
|
Writes a value to the cache. |
|
This marker is attached to site and provider to indicate that the user wants IRGen to deduce the optimal location. |
|
This marker is attached to statements to request advice for fields |
Boolean Expressions#
Used with If to define conditional logic.
Represent a PEP 604 union type |
|
Represent a PEP 604 union type |
|
Represents a logical AND operation. |
|
Represents a logical OR operation. |
|
Represents a logical NOT operation. |
|
Represents an equality comparison (==). |
|
Represents a not equal comparison (!=). |
|
Represents a greater than comparison (>). |
|
Represents a greater than or equal comparison (>=). |
|
Represents a less than comparison (<). |
|
Represents a less than or equal comparison (<=). |
|
Represent a PEP 604 union type |
Tokens and Signals#
Internal data units that flow through the pipeline.
A token indicating that a pipeline stream has been stopped. |
|
A token representing one or more errors that occurred during pipeline execution. |
Advanced#
Lower-level types and utilities for framework authors and advanced users.
The PipelineBuildHelper is a helper for the user to simplify writing DFM code that is embedded inside python. |
|
NodeId uniquely identifies a node in a Pipeline graph. |
|
Represent a PEP 604 union type |
|
Located is a mixin class for statements that are assigned to a specific site. |
|
An expression is a Statement that produces a value that can be referenced by other Statements. |
|
A Statement is the base class for all syntactic constructs that can appear in a Pipeline body. |
|
A class that can serialize and deserialize a Python object to a JSON string by pickling and base64 encoding it. |
|
Base visitor class for traversing DFM API models. |
|
Visitor interface for boolean expressions. |
Auto IDs are prefixed with %. |
|
Well-known IDs (user-defined IDs) are prefixed with #. |