Buckets:

mishig's picture
|
download
raw
3.13 kB

パイプラインの状態

PipelineState[[diffusers.modular_pipelines.PipelineState]]

diffusers.modular_pipelines.PipelineState[[diffusers.modular_pipelines.PipelineState]]

diffusers.modular_pipelines.PipelineState(values: dict[str, typing.Any] = <factory>, kwargs_mapping: dict[str, list[str]] = <factory>)

ソース

PipelineStateはパイプラインの状態を保持します。パイプラインブロック間でデータを渡すために使用されます。

get[[diffusers.modular_pipelines.PipelineState.get]]

get(keys: str | list[str], default: Any = None)

ソース

パラメータ:

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]]

get_by_kwargs(kwargs_type: str)

ソース

パラメータ:

kwargs_type (str) : フィルターに使用するkwargs_type

戻り値: dict[str, Any]

kwargs_type と一致する値の辞書

kwargs_type に一致するすべての値を取得します。

set[[diffusers.modular_pipelines.PipelineState.set]]

set(key: str, value: Any, kwargs_type: str = None)

ソース

パラメータ:

key (str) : 値のキー

value (Any) : 保存する値

kwargs_type (str) : 値に関連付けられているkwargs_type

パイプラインの状態に値を追加します。

to_dict[[diffusers.modular_pipelines.PipelineState.to_dict]]

to_dict()

ソース

PipelineStateを辞書に変換します。

BlockState[[diffusers.modular_pipelines.BlockState]]

diffusers.modular_pipelines.BlockState[[diffusers.modular_pipelines.BlockState]]

diffusers.modular_pipelines.BlockState(**kwargs)

ソース

属性アクセスと整形済み表現を備えたブロック状態データのコンテナ。

as_dict[[diffusers.modular_pipelines.BlockState.as_dict]]

as_dict()

ソース

戻り値: 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.