Buckets:
| # パイプラインの状態 | |
| ## PipelineState[[diffusers.modular_pipelines.PipelineState]] | |
| #### diffusers.modular_pipelines.PipelineState[[diffusers.modular_pipelines.PipelineState]] | |
| ```python | |
| diffusers.modular_pipelines.PipelineState(values: dict[str, typing.Any] = <factory>, kwargs_mapping: dict[str, list[str]] = <factory>) | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L231) | |
| `PipelineState`はパイプラインの状態を保持します。パイプラインブロック間でデータを渡すために使用されます。 | |
| #### get[[diffusers.modular_pipelines.PipelineState.get]] | |
| ```python | |
| get(keys: str | list[str], default: Any = None) | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L256) | |
| **パラメータ:** | |
| keys (str | list[str]) : 値のキーまたはキーのリスト | |
| default (Any) : 見つからない場合に返すデフォルト値 | |
| **戻り値:** Any | dict[str, Any] | |
| keysがstrの場合は単一の値、keysがlistの場合は値の辞書 | |
| パイプラインの状態から1つ以上の値を取得します。 | |
| #### get_by_kwargs[[diffusers.modular_pipelines.PipelineState.get_by_kwargs]] | |
| ```python | |
| get_by_kwargs(kwargs_type: str) | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L271) | |
| **パラメータ:** | |
| kwargs_type (str) : フィルターに使用するkwargs_type | |
| **戻り値:** dict[str, Any] | |
| kwargs_type と一致する値の辞書 | |
| kwargs_type に一致するすべての値を取得します。 | |
| #### set[[diffusers.modular_pipelines.PipelineState.set]] | |
| ```python | |
| set(key: str, value: Any, kwargs_type: str = None) | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L239) | |
| **パラメータ:** | |
| key (str) : 値のキー | |
| value (Any) : 保存する値 | |
| kwargs_type (str) : 値に関連付けられているkwargs_type | |
| パイプラインの状態に値を追加します。 | |
| #### to_dict[[diffusers.modular_pipelines.PipelineState.to_dict]] | |
| ```python | |
| to_dict() | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L284) | |
| PipelineStateを辞書に変換します。 | |
| ## BlockState[[diffusers.modular_pipelines.BlockState]] | |
| #### diffusers.modular_pipelines.BlockState[[diffusers.modular_pipelines.BlockState]] | |
| ```python | |
| diffusers.modular_pipelines.BlockState(**kwargs) | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L321) | |
| 属性アクセスと整形済み表現を備えたブロック状態データのコンテナ。 | |
| #### as_dict[[diffusers.modular_pipelines.BlockState.as_dict]] | |
| ```python | |
| as_dict() | |
| ``` | |
| [ソース](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L338) | |
| **戻り値:** dict[str, Any] | |
| BlockState のすべての属性を含む辞書 | |
| BlockStateを辞書に変換します。 | |
Xet Storage Details
- Size:
- 3.13 kB
- Xet hash:
- 31e494cfdee28f1f083d474d5e712e9390eaea724e4e369c041d467b03409152
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.