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 a,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.1b50ff75.js";import{D as G}from"../chunks/Docstring.2d4c264a.js";import{H as ke,E as Ge}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.f94e0d6c.js";function Ne(we){let h,W,J,X,S,Y,C,Z,D,ee,i,T,me,N,Pe="<code>PipelineState</code> stores the state of a pipeline. It is used to pass data between pipeline blocks.",ue,b,E,fe,j,Se="Get one or multiple values from the pipeline state.",ce,x,L,ge,q,Ce="Get all values with matching kwargs_type.",$e,k,A,_e,K,De="Add a value to the pipeline state.",he,w,B,ve,O,Te="Convert PipelineState to a dictionary.",te,I,re,_,V,ye,R,Ee="Container for block state data with attribute access and formatted representation.",be,P,M,xe,U,Le="Convert BlockState to a dictionary.",ne,z,se,Q,ae;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"}}),T=new G({props:{name:"class diffusers.modular_pipelines.PipelineState",anchor:"diffusers.modular_pipelines.PipelineState",parameters:[{name:"values",val:": dict = <factory>"},{name:"kwargs_mapping",val:": dict = <factory>"}],source:"https://github.com/huggingface/diffusers/blob/vr_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L120"}}),E=new G({props:{name:"get",anchor:"diffusers.modular_pipelines.PipelineState.get",parameters:[{name:"keys",val:": str | list[str]"},{name:"default",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.get.keys",description:"<strong>keys</strong> (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_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L145",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>Any | dict[str, Any]</p> | |
| `}}),L=new G({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_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L160",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 G({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_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L128"}}),B=new G({props:{name:"to_dict",anchor:"diffusers.modular_pipelines.PipelineState.to_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L173"}}),I=new ke({props:{title:"BlockState",local:"diffusers.modular_pipelines.BlockState",headingTag:"h2"}}),V=new G({props:{name:"class diffusers.modular_pipelines.BlockState",anchor:"diffusers.modular_pipelines.BlockState",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L210"}}),M=new G({props:{name:"as_dict",anchor:"diffusers.modular_pipelines.BlockState.as_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12652/src/diffusers/modular_pipelines/modular_pipeline.py#L227",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 Ge({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(),i=l("div"),m(T.$$.fragment),me=s(),N=l("p"),N.innerHTML=Pe,ue=s(),b=l("div"),m(E.$$.fragment),fe=s(),j=l("p"),j.textContent=Se,ce=s(),x=l("div"),m(L.$$.fragment),ge=s(),q=l("p"),q.textContent=Ce,$e=s(),k=l("div"),m(A.$$.fragment),_e=s(),K=l("p"),K.textContent=De,he=s(),w=l("div"),m(B.$$.fragment),ve=s(),O=l("p"),O.textContent=Te,te=s(),m(I.$$.fragment),re=s(),_=l("div"),m(V.$$.fragment),ye=s(),R=l("p"),R.textContent=Ee,be=s(),P=l("div"),m(M.$$.fragment),xe=s(),U=l("p"),U.textContent=Le,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=a(e),J=o(e,"P",{}),v(J).forEach(r),X=a(e),u(S.$$.fragment,e),Y=a(e),u(C.$$.fragment,e),Z=a(e),u(D.$$.fragment,e),ee=a(e),i=o(e,"DIV",{class:!0});var d=v(i);u(T.$$.fragment,d),me=a(d),N=o(d,"P",{"data-svelte-h":!0}),H(N)!=="svelte-1p9z2f0"&&(N.innerHTML=Pe),ue=a(d),b=o(d,"DIV",{class:!0});var ie=v(b);u(E.$$.fragment,ie),fe=a(ie),j=o(ie,"P",{"data-svelte-h":!0}),H(j)!=="svelte-rz858h"&&(j.textContent=Se),ie.forEach(r),ce=a(d),x=o(d,"DIV",{class:!0});var le=v(x);u(L.$$.fragment,le),ge=a(le),q=o(le,"P",{"data-svelte-h":!0}),H(q)!=="svelte-nbwkc2"&&(q.textContent=Ce),le.forEach(r),$e=a(d),k=o(d,"DIV",{class:!0});var oe=v(k);u(A.$$.fragment,oe),_e=a(oe),K=o(oe,"P",{"data-svelte-h":!0}),H(K)!=="svelte-11kc6w2"&&(K.textContent=De),oe.forEach(r),he=a(d),w=o(d,"DIV",{class:!0});var pe=v(w);u(B.$$.fragment,pe),ve=a(pe),O=o(pe,"P",{"data-svelte-h":!0}),H(O)!=="svelte-yxpz8g"&&(O.textContent=Te),pe.forEach(r),d.forEach(r),te=a(e),u(I.$$.fragment,e),re=a(e),_=o(e,"DIV",{class:!0});var F=v(_);u(V.$$.fragment,F),ye=a(F),R=o(F,"P",{"data-svelte-h":!0}),H(R)!=="svelte-i3htgy"&&(R.textContent=Ee),be=a(F),P=o(F,"DIV",{class:!0});var de=v(P);u(M.$$.fragment,de),xe=a(de),U=o(de,"P",{"data-svelte-h":!0}),H(U)!=="svelte-kch88p"&&(U.textContent=Le),de.forEach(r),F.forEach(r),ne=a(e),u(z.$$.fragment,e),se=a(e),Q=o(e,"P",{}),v(Q).forEach(r),this.h()},h(){y(h,"name","hf:doc:metadata"),y(h,"content",je),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(i,"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,i,n),f(T,i,null),t(i,me),t(i,N),t(i,ue),t(i,b),f(E,b,null),t(b,fe),t(b,j),t(i,ce),t(i,x),f(L,x,null),t(x,ge),t(x,q),t(i,$e),t(i,k),f(A,k,null),t(k,_e),t(k,K),t(i,he),t(i,w),f(B,w,null),t(w,ve),t(w,O),p(e,te,n),f(I,e,n),p(e,re,n),p(e,_,n),f(V,_,null),t(_,ye),t(_,R),t(_,be),t(_,P),f(M,P,null),t(P,xe),t(P,U),p(e,ne,n),f(z,e,n),p(e,se,n),p(e,Q,n),ae=!0},p:Be,i(e){ae||(c(S.$$.fragment,e),c(C.$$.fragment,e),c(D.$$.fragment,e),c(T.$$.fragment,e),c(E.$$.fragment,e),c(L.$$.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),ae=!0)},o(e){g(S.$$.fragment,e),g(C.$$.fragment,e),g(D.$$.fragment,e),g(T.$$.fragment,e),g(E.$$.fragment,e),g(L.$$.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),ae=!1},d(e){e&&(r(W),r(J),r(X),r(Y),r(Z),r(ee),r(i),r(te),r(re),r(_),r(ne),r(se),r(Q)),r(h),$(S,e),$(C,e),$(D,e),$(T),$(E),$(L),$(A),$(B),$(I,e),$(V),$(M),$(z,e)}}}const je='{"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 qe(we){return Ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Je extends Ve{constructor(h){super(),Me(this,h,qe,Ne,Ae,{})}}export{Je as component}; | |
Xet Storage Details
- Size:
- 9.87 kB
- Xet hash:
- b83391a7862bec85debaa64cc8b6ec9cfe44328ee2912804367746d839c319e1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.