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 | dict[str, Any] | |
| قيمة واحدة إذا كان keys من نوع str، أو قاموس من القيم إذا كان keys من نوع list | |
| احصل على قيمة واحدة أو عدة قيم من حالة خط المعالجة. | |
| #### 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 | |
| احصل على جميع القيم التي تطابق 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 (أي): القيمة التي سيتم تخزينها | |
| 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.4 kB
- Xet hash:
- c2ee2869f76fec00b2bc0f6a4dcf0252c217d5d362c32ce8fc17318dcc3422ae
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.