Buckets:
| # Estados do Pipeline | |
| ## 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>) | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L231) | |
| `PipelineState` armazena o estado de um pipeline. Ele é usado para passar dados entre blocos do pipeline. | |
| #### get[[diffusers.modular_pipelines.PipelineState.get]] | |
| ```python | |
| get(keys: str | list[str], default: Any = None) | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L256) | |
| **Parâmetros:** | |
| keys (str | list[str]) : Chave ou lista de chaves para os valores | |
| default (Any) : O valor padrão a ser retornado caso não seja encontrado | |
| **Retorna:** Any | dict[str, Any] | |
| Valor único se keys for str, dicionário de valores se keys for list | |
| Obtenha um ou vários valores do estado do pipeline. | |
| #### get_by_kwargs[[diffusers.modular_pipelines.PipelineState.get_by_kwargs]] | |
| ```python | |
| get_by_kwargs(kwargs_type: str) | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L271) | |
| **Parâmetros:** | |
| kwargs_type (str) : o kwargs_type para filtrar por | |
| **Retorna:** dict[str, Any] | |
| Dicionário de valores com kwargs_type correspondente | |
| Obtenha todos os valores com kwargs_type correspondente. | |
| #### set[[diffusers.modular_pipelines.PipelineState.set]] | |
| ```python | |
| set(key: str, value: Any, kwargs_type: str = None) | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L239) | |
| **Parâmetros:** | |
| key (str) : A chave para o valor | |
| value (Any) : O valor a ser armazenado | |
| kwargs_type (str) : o kwargs_type com o qual o valor está associado | |
| Adicione um valor ao estado do pipeline. | |
| #### to_dict[[diffusers.modular_pipelines.PipelineState.to_dict]] | |
| ```python | |
| to_dict() | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L284) | |
| Converte PipelineState em um dicionário. | |
| ## BlockState[[diffusers.modular_pipelines.BlockState]] | |
| #### diffusers.modular_pipelines.BlockState[[diffusers.modular_pipelines.BlockState]] | |
| ```python | |
| diffusers.modular_pipelines.BlockState(**kwargs) | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L321) | |
| Contêiner para dados de estado de bloco com acesso a atributos e representação formatada. | |
| #### as_dict[[diffusers.modular_pipelines.BlockState.as_dict]] | |
| ```python | |
| as_dict() | |
| ``` | |
| [Fonte](https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L338) | |
| **Retorna:** dict[str, Any] | |
| Dicionário contendo todos os atributos do BlockState | |
| Converte BlockState em um dicionário. | |
Xet Storage Details
- Size:
- 3.02 kB
- Xet hash:
- 233afab47337d031f7691fcf2ef8731dfe4f9373e39e55dea6f7ffa8fa6270b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.