1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Update docs/source/en/modular_diffusers/write_own_pipeline_block.md

This commit is contained in:
YiYi Xu
2025-06-29 14:49:54 -10:00
committed by GitHub
parent 9fae3828a7
commit b43e703fae

View File

@@ -21,7 +21,6 @@ In this tutorial, we will focus on how to write a basic `PipelineBlock` and how
Before we dive into creating `PipelineBlock`s, we need to have a basic understanding of `PipelineState` - the core data structure that all blocks operate on. This concept is fundamental to understanding how blocks interact with each other and the pipeline system.
In the modular diffusers system, `PipelineState` acts as the global state container that `PipelineBlock`s operate on - each block gets a local view (`BlockState`) of the relevant variables it needs from `PipelineState`, performs its operations, and then updates `PipelineState` with any changes.
While `PipelineState` maintains the complete runtime state of the pipeline, `PipelineBlock`s define what parts of that state they can read from and write to through their `input`s, `intermediates_inputs`, and `intermediates_outputs` properties.