Skip to content

Commit

Permalink
Add a warning about pipeline definition being executed only once. (#5486
Browse files Browse the repository at this point in the history
)

Signed-off-by: Michał Zientkiewicz <[email protected]>
  • Loading branch information
mzient committed May 28, 2024
1 parent 5d31e14 commit bc0e8a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ The resulting graph is:

.. _processing_graph_structure:

.. important::
The pipeline definition function is excuted only once, when the pipeline is built,
and typically returns a ``dali.DataNode`` object or a tuple of thereof.
For convenience, it's possible to return other types, such as NumPy arrays, but those
are treated as constants and evaluated only once.


Processing Graph Structure
^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit bc0e8a3

Please sign in to comment.