Buckets:
| import{s as Ee,n as Le,o as Ae}from"../chunks/scheduler.8c3d61f6.js";import{S as Be,i as Ie,g as l,s as n,r as m,A as Ve,h as o,f as r,c as s,j as v,u as f,x as H,k as y,y as t,a as d,v as c,d as g,t as _,w as h}from"../chunks/index.da70eac4.js";import{D as M}from"../chunks/Docstring.634d8861.js";import{H as be,E as ze}from"../chunks/getInferenceSnippets.ea1775db.js";function He(xe){let $,Q,F,W,S,X,C,Y,a,D,pe,U,ke="<code>PipelineState</code> stores the state of a pipeline. It is used to pass data between pipeline blocks.",de,b,T,ue,G,we="Get one or multiple values from the pipeline state.",me,x,E,fe,N,Pe="Get all values with matching kwargs_type.",ce,k,L,ge,j,Se="Add a value to the pipeline state.",_e,w,A,he,q,Ce="Convert PipelineState to a dictionary.",Z,B,ee,u,I,$e,K,De="Container for block state data with attribute access and formatted representation.",ve,P,V,ye,O,Te="Convert BlockState to a dictionary.",te,z,re,J,ne;return S=new be({props:{title:"Pipeline states",local:"pipeline-states",headingTag:"h1"}}),C=new be({props:{title:"PipelineState",local:"diffusers.modular_pipelines.PipelineState",headingTag:"h2"}}),D=new M({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_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L76"}}),T=new M({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_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L101",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 M({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_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L116",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> | |
| `}}),L=new M({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_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L84"}}),A=new M({props:{name:"to_dict",anchor:"diffusers.modular_pipelines.PipelineState.to_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L129"}}),B=new be({props:{title:"BlockState",local:"diffusers.modular_pipelines.BlockState",headingTag:"h2"}}),I=new M({props:{name:"class diffusers.modular_pipelines.BlockState",anchor:"diffusers.modular_pipelines.BlockState",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L160"}}),V=new M({props:{name:"as_dict",anchor:"diffusers.modular_pipelines.BlockState.as_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_12403/src/diffusers/modular_pipelines/modular_pipeline.py#L177",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 ze({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline_states.md"}}),{c(){$=l("meta"),Q=n(),F=l("p"),W=n(),m(S.$$.fragment),X=n(),m(C.$$.fragment),Y=n(),a=l("div"),m(D.$$.fragment),pe=n(),U=l("p"),U.innerHTML=ke,de=n(),b=l("div"),m(T.$$.fragment),ue=n(),G=l("p"),G.textContent=we,me=n(),x=l("div"),m(E.$$.fragment),fe=n(),N=l("p"),N.textContent=Pe,ce=n(),k=l("div"),m(L.$$.fragment),ge=n(),j=l("p"),j.textContent=Se,_e=n(),w=l("div"),m(A.$$.fragment),he=n(),q=l("p"),q.textContent=Ce,Z=n(),m(B.$$.fragment),ee=n(),u=l("div"),m(I.$$.fragment),$e=n(),K=l("p"),K.textContent=De,ve=n(),P=l("div"),m(V.$$.fragment),ye=n(),O=l("p"),O.textContent=Te,te=n(),m(z.$$.fragment),re=n(),J=l("p"),this.h()},l(e){const i=Ve("svelte-u9bgzb",document.head);$=o(i,"META",{name:!0,content:!0}),i.forEach(r),Q=s(e),F=o(e,"P",{}),v(F).forEach(r),W=s(e),f(S.$$.fragment,e),X=s(e),f(C.$$.fragment,e),Y=s(e),a=o(e,"DIV",{class:!0});var p=v(a);f(D.$$.fragment,p),pe=s(p),U=o(p,"P",{"data-svelte-h":!0}),H(U)!=="svelte-1p9z2f0"&&(U.innerHTML=ke),de=s(p),b=o(p,"DIV",{class:!0});var se=v(b);f(T.$$.fragment,se),ue=s(se),G=o(se,"P",{"data-svelte-h":!0}),H(G)!=="svelte-rz858h"&&(G.textContent=we),se.forEach(r),me=s(p),x=o(p,"DIV",{class:!0});var ie=v(x);f(E.$$.fragment,ie),fe=s(ie),N=o(ie,"P",{"data-svelte-h":!0}),H(N)!=="svelte-nbwkc2"&&(N.textContent=Pe),ie.forEach(r),ce=s(p),k=o(p,"DIV",{class:!0});var ae=v(k);f(L.$$.fragment,ae),ge=s(ae),j=o(ae,"P",{"data-svelte-h":!0}),H(j)!=="svelte-11kc6w2"&&(j.textContent=Se),ae.forEach(r),_e=s(p),w=o(p,"DIV",{class:!0});var le=v(w);f(A.$$.fragment,le),he=s(le),q=o(le,"P",{"data-svelte-h":!0}),H(q)!=="svelte-yxpz8g"&&(q.textContent=Ce),le.forEach(r),p.forEach(r),Z=s(e),f(B.$$.fragment,e),ee=s(e),u=o(e,"DIV",{class:!0});var R=v(u);f(I.$$.fragment,R),$e=s(R),K=o(R,"P",{"data-svelte-h":!0}),H(K)!=="svelte-i3htgy"&&(K.textContent=De),ve=s(R),P=o(R,"DIV",{class:!0});var oe=v(P);f(V.$$.fragment,oe),ye=s(oe),O=o(oe,"P",{"data-svelte-h":!0}),H(O)!=="svelte-kch88p"&&(O.textContent=Te),oe.forEach(r),R.forEach(r),te=s(e),f(z.$$.fragment,e),re=s(e),J=o(e,"P",{}),v(J).forEach(r),this.h()},h(){y($,"name","hf:doc:metadata"),y($,"content",Me),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(u,"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,i){t(document.head,$),d(e,Q,i),d(e,F,i),d(e,W,i),c(S,e,i),d(e,X,i),c(C,e,i),d(e,Y,i),d(e,a,i),c(D,a,null),t(a,pe),t(a,U),t(a,de),t(a,b),c(T,b,null),t(b,ue),t(b,G),t(a,me),t(a,x),c(E,x,null),t(x,fe),t(x,N),t(a,ce),t(a,k),c(L,k,null),t(k,ge),t(k,j),t(a,_e),t(a,w),c(A,w,null),t(w,he),t(w,q),d(e,Z,i),c(B,e,i),d(e,ee,i),d(e,u,i),c(I,u,null),t(u,$e),t(u,K),t(u,ve),t(u,P),c(V,P,null),t(P,ye),t(P,O),d(e,te,i),c(z,e,i),d(e,re,i),d(e,J,i),ne=!0},p:Le,i(e){ne||(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(z.$$.fragment,e),ne=!0)},o(e){_(S.$$.fragment,e),_(C.$$.fragment,e),_(D.$$.fragment,e),_(T.$$.fragment,e),_(E.$$.fragment,e),_(L.$$.fragment,e),_(A.$$.fragment,e),_(B.$$.fragment,e),_(I.$$.fragment,e),_(V.$$.fragment,e),_(z.$$.fragment,e),ne=!1},d(e){e&&(r(Q),r(F),r(W),r(X),r(Y),r(a),r(Z),r(ee),r(u),r(te),r(re),r(J)),r($),h(S,e),h(C,e),h(D),h(T),h(E),h(L),h(A),h(B,e),h(I),h(V),h(z,e)}}}const Me='{"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 Ue(xe){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ke extends Be{constructor($){super(),Ie(this,$,Ue,He,Ee,{})}}export{Ke as component}; | |
Xet Storage Details
- Size:
- 9.62 kB
- Xet hash:
- 3f113db16c51c0bf74a88a353f94ea8e787445328dc151e5170da849829eef1e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.