diffusers
f7fc4389 - [modular] fill a missing input from the first block that reads it, keep a passed None (#15135)

Commit
26 days ago
[modular] fill a missing input from the first block that reads it, keep a passed None (#15135) * [modular] fill a missing input from the first block that reads it, keep a passed None `get_block_state` fell back to the block's own default whenever the state held None. That let a later block in a sequence swap in its default on top of the first block's, and made a passed None indistinguishable from "not passed". Now a missing input is filled in by the first block that reads it and `set_block_state` records the fill, so every block after it reads the same value. The pipeline stores a passed None as is and no longer pre-fills a None default. Conditional branches need no special code: the branch that runs is the first reader. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * [modular] move the sequence test next to the branch-default tests It shows that per-branch defaults do not affect sequential blocks: the first block that reads an input fills in its default and records it, so a later block with a different default reads the same value. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * [modular] example for the default recorded by set_block_state Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Author
Parents
Loading