Buckets:
| import{s as Ae,n as Be,o as Ie}from"../chunks/scheduler.53228c21.js";import{S as Ve,i as Me,e as l,s,c as m,h as ze,a as o,d as r,b as i,f as v,g as u,j as H,k as y,l as t,m as p,n as f,t as c,o as g,p as $}from"../chunks/index.100fac89.js";import{C as He}from"../chunks/CopyLLMTxtMenu.88008e00.js";import{D as U}from"../chunks/Docstring.98d3e518.js";import{H as ke,E as Ue}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.afa087fa.js";function Ge(we){let h,W,J,X,S,Y,C,Z,D,ee,a,L,me,G,Pe="<code>PipelineState</code> stores the state of a pipeline. It is used to pass data between pipeline blocks.",ue,b,T,fe,N,Se="Get one or multiple values from the pipeline state.",ce,x,E,ge,j,Ce="Get all values with matching kwargs_type.",$e,k,A,_e,q,De="Add a value to the pipeline state.",he,w,B,ve,K,Le="Convert PipelineState to a dictionary.",te,I,re,_,V,ye,O,Te="Container for block state data with attribute access and formatted representation.",be,P,M,xe,R,Ee="Convert BlockState to a dictionary.",ne,z,se,Q,ie;return S=new He({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new ke({props:{title:"Pipeline states",local:"pipeline-states",headingTag:"h1"}}),D=new ke({props:{title:"PipelineState",local:"diffusers.modular_pipelines.PipelineState",headingTag:"h2"}}),L=new U({props:{name:"class diffusers.modular_pipelines.PipelineState",anchor:"diffusers.modular_pipelines.PipelineState",parameters:[{name:"values",val:": typing.Dict[str, typing.Any] = <factory>"},{name:"kwargs_mapping",val:": typing.Dict[str, typing.List[str]] = <factory>"}],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L72"}}),T=new U({props:{name:"get",anchor:"diffusers.modular_pipelines.PipelineState.get",parameters:[{name:"keys",val:": typing.Union[str, typing.List[str]]"},{name:"default",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.get.keys",description:"<strong>keys</strong> (Union[str, List[str]]) — Key or list of keys for the values",name:"keys"},{anchor:"diffusers.modular_pipelines.PipelineState.get.default",description:"<strong>default</strong> (Any) — The default value to return if not found",name:"default"}],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L97",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Single value if keys is str, dictionary of values if keys is list</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Union[Any, Dict[str, Any]]</p> | |
| `}}),E=new U({props:{name:"get_by_kwargs",anchor:"diffusers.modular_pipelines.PipelineState.get_by_kwargs",parameters:[{name:"kwargs_type",val:": str"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.get_by_kwargs.kwargs_type",description:"<strong>kwargs_type</strong> (str) — The kwargs_type to filter by",name:"kwargs_type"}],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L112",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dictionary of values with matching kwargs_type</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dict[str, Any]</p> | |
| `}}),A=new U({props:{name:"set",anchor:"diffusers.modular_pipelines.PipelineState.set",parameters:[{name:"key",val:": str"},{name:"value",val:": typing.Any"},{name:"kwargs_type",val:": str = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.set.key",description:"<strong>key</strong> (str) — The key for the value",name:"key"},{anchor:"diffusers.modular_pipelines.PipelineState.set.value",description:"<strong>value</strong> (Any) — The value to store",name:"value"},{anchor:"diffusers.modular_pipelines.PipelineState.set.kwargs_type",description:"<strong>kwargs_type</strong> (str) — The kwargs_type with which the value is associated",name:"kwargs_type"}],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L80"}}),B=new U({props:{name:"to_dict",anchor:"diffusers.modular_pipelines.PipelineState.to_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L125"}}),I=new ke({props:{title:"BlockState",local:"diffusers.modular_pipelines.BlockState",headingTag:"h2"}}),V=new U({props:{name:"class diffusers.modular_pipelines.BlockState",anchor:"diffusers.modular_pipelines.BlockState",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L162"}}),M=new U({props:{name:"as_dict",anchor:"diffusers.modular_pipelines.BlockState.as_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12448/src/diffusers/modular_pipelines/modular_pipeline.py#L179",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dictionary containing all attributes of the BlockState</p> | |
| `,returnType:`<script context="module">export const metadata = 'undefined';<\/script> | |
| <p>Dict[str, Any]</p> | |
| `}}),z=new Ue({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline_states.md"}}),{c(){h=l("meta"),W=s(),J=l("p"),X=s(),m(S.$$.fragment),Y=s(),m(C.$$.fragment),Z=s(),m(D.$$.fragment),ee=s(),a=l("div"),m(L.$$.fragment),me=s(),G=l("p"),G.innerHTML=Pe,ue=s(),b=l("div"),m(T.$$.fragment),fe=s(),N=l("p"),N.textContent=Se,ce=s(),x=l("div"),m(E.$$.fragment),ge=s(),j=l("p"),j.textContent=Ce,$e=s(),k=l("div"),m(A.$$.fragment),_e=s(),q=l("p"),q.textContent=De,he=s(),w=l("div"),m(B.$$.fragment),ve=s(),K=l("p"),K.textContent=Le,te=s(),m(I.$$.fragment),re=s(),_=l("div"),m(V.$$.fragment),ye=s(),O=l("p"),O.textContent=Te,be=s(),P=l("div"),m(M.$$.fragment),xe=s(),R=l("p"),R.textContent=Ee,ne=s(),m(z.$$.fragment),se=s(),Q=l("p"),this.h()},l(e){const n=ze("svelte-u9bgzb",document.head);h=o(n,"META",{name:!0,content:!0}),n.forEach(r),W=i(e),J=o(e,"P",{}),v(J).forEach(r),X=i(e),u(S.$$.fragment,e),Y=i(e),u(C.$$.fragment,e),Z=i(e),u(D.$$.fragment,e),ee=i(e),a=o(e,"DIV",{class:!0});var d=v(a);u(L.$$.fragment,d),me=i(d),G=o(d,"P",{"data-svelte-h":!0}),H(G)!=="svelte-1p9z2f0"&&(G.innerHTML=Pe),ue=i(d),b=o(d,"DIV",{class:!0});var ae=v(b);u(T.$$.fragment,ae),fe=i(ae),N=o(ae,"P",{"data-svelte-h":!0}),H(N)!=="svelte-rz858h"&&(N.textContent=Se),ae.forEach(r),ce=i(d),x=o(d,"DIV",{class:!0});var le=v(x);u(E.$$.fragment,le),ge=i(le),j=o(le,"P",{"data-svelte-h":!0}),H(j)!=="svelte-nbwkc2"&&(j.textContent=Ce),le.forEach(r),$e=i(d),k=o(d,"DIV",{class:!0});var oe=v(k);u(A.$$.fragment,oe),_e=i(oe),q=o(oe,"P",{"data-svelte-h":!0}),H(q)!=="svelte-11kc6w2"&&(q.textContent=De),oe.forEach(r),he=i(d),w=o(d,"DIV",{class:!0});var pe=v(w);u(B.$$.fragment,pe),ve=i(pe),K=o(pe,"P",{"data-svelte-h":!0}),H(K)!=="svelte-yxpz8g"&&(K.textContent=Le),pe.forEach(r),d.forEach(r),te=i(e),u(I.$$.fragment,e),re=i(e),_=o(e,"DIV",{class:!0});var F=v(_);u(V.$$.fragment,F),ye=i(F),O=o(F,"P",{"data-svelte-h":!0}),H(O)!=="svelte-i3htgy"&&(O.textContent=Te),be=i(F),P=o(F,"DIV",{class:!0});var de=v(P);u(M.$$.fragment,de),xe=i(de),R=o(de,"P",{"data-svelte-h":!0}),H(R)!=="svelte-kch88p"&&(R.textContent=Ee),de.forEach(r),F.forEach(r),ne=i(e),u(z.$$.fragment,e),se=i(e),Q=o(e,"P",{}),v(Q).forEach(r),this.h()},h(){y(h,"name","hf:doc:metadata"),y(h,"content",Ne),y(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,n){t(document.head,h),p(e,W,n),p(e,J,n),p(e,X,n),f(S,e,n),p(e,Y,n),f(C,e,n),p(e,Z,n),f(D,e,n),p(e,ee,n),p(e,a,n),f(L,a,null),t(a,me),t(a,G),t(a,ue),t(a,b),f(T,b,null),t(b,fe),t(b,N),t(a,ce),t(a,x),f(E,x,null),t(x,ge),t(x,j),t(a,$e),t(a,k),f(A,k,null),t(k,_e),t(k,q),t(a,he),t(a,w),f(B,w,null),t(w,ve),t(w,K),p(e,te,n),f(I,e,n),p(e,re,n),p(e,_,n),f(V,_,null),t(_,ye),t(_,O),t(_,be),t(_,P),f(M,P,null),t(P,xe),t(P,R),p(e,ne,n),f(z,e,n),p(e,se,n),p(e,Q,n),ie=!0},p:Be,i(e){ie||(c(S.$$.fragment,e),c(C.$$.fragment,e),c(D.$$.fragment,e),c(L.$$.fragment,e),c(T.$$.fragment,e),c(E.$$.fragment,e),c(A.$$.fragment,e),c(B.$$.fragment,e),c(I.$$.fragment,e),c(V.$$.fragment,e),c(M.$$.fragment,e),c(z.$$.fragment,e),ie=!0)},o(e){g(S.$$.fragment,e),g(C.$$.fragment,e),g(D.$$.fragment,e),g(L.$$.fragment,e),g(T.$$.fragment,e),g(E.$$.fragment,e),g(A.$$.fragment,e),g(B.$$.fragment,e),g(I.$$.fragment,e),g(V.$$.fragment,e),g(M.$$.fragment,e),g(z.$$.fragment,e),ie=!1},d(e){e&&(r(W),r(J),r(X),r(Y),r(Z),r(ee),r(a),r(te),r(re),r(_),r(ne),r(se),r(Q)),r(h),$(S,e),$(C,e),$(D,e),$(L),$(T),$(E),$(A),$(B),$(I,e),$(V),$(M),$(z,e)}}}const Ne='{"title":"Pipeline states","local":"pipeline-states","sections":[{"title":"PipelineState","local":"diffusers.modular_pipelines.PipelineState","sections":[],"depth":2},{"title":"BlockState","local":"diffusers.modular_pipelines.BlockState","sections":[],"depth":2}],"depth":1}';function je(we){return Ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Je extends Ve{constructor(h){super(),Me(this,h,je,Ge,Ae,{})}}export{Je as component}; | |
Xet Storage Details
- Size:
- 9.95 kB
- Xet hash:
- 637006a96a0428cb573d707a123d67c875c74f3963e04e1df29b59082cc670b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.