import{s as b,o as z,n as A}from"../chunks/scheduler.9bc65507.js";import{S as G,i as j,g as _,s as c,r as w,A as k,h as $,f as n,c as u,j as U,u as y,x as S,k as C,y as q,a as o,v as E,d as H,t as M,w as L}from"../chunks/index.707bf1b6.js";import{T as R}from"../chunks/Tip.c2ecdbf4.js";import{H as B}from"../chunks/Heading.342b1fa6.js";function D(d){let e,i='注意: <a href="perf_train_gpu_one">シングルGPUセクション</a>で紹介されているほとんどの戦略（混合精度トレーニングや勾配蓄積など）および<a href="perf_train_gpu_many">マルチGPUセクション</a>は一般的なモデルのトレーニングに適用できますので、このセクションに入る前にそれを確認してください。';return{c(){e=_("p"),e.innerHTML=i},l(s){e=$(s,"P",{"data-svelte-h":!0}),S(e)!=="svelte-1od8uu0"&&(e.innerHTML=i)},m(s,m){o(s,e,m)},p:A,d(s){s&&n(e)}}}function F(d){let e,i,s,m,l,h,r,g,p,v="このドキュメントは、TPUでのトレーニング方法に関する情報をまもなく追加いたします。",P,f,T;return l=new B({props:{title:"Training on TPUs",local:"training-on-tpus",headingTag:"h1"}}),r=new R({props:{$$slots:{default:[D]},$$scope:{ctx:d}}}),{c(){e=_("meta"),i=c(),s=_("p"),m=c(),w(l.$$.fragment),h=c(),w(r.$$.fragment),g=c(),p=_("p"),p.textContent=v,P=c(),f=_("p"),this.h()},l(t){const a=k("svelte-u9bgzb",document.head);e=$(a,"META",{name:!0,content:!0}),a.forEach(n),i=u(t),s=$(t,"P",{}),U(s).forEach(n),m=u(t),y(l.$$.fragment,t),h=u(t),y(r.$$.fragment,t),g=u(t),p=$(t,"P",{"data-svelte-h":!0}),S(p)!=="svelte-uyfz5e"&&(p.textContent=v),P=u(t),f=$(t,"P",{}),U(f).forEach(n),this.h()},h(){C(e,"name","hf:doc:metadata"),C(e,"content",I)},m(t,a){q(document.head,e),o(t,i,a),o(t,s,a),o(t,m,a),E(l,t,a),o(t,h,a),E(r,t,a),o(t,g,a),o(t,p,a),o(t,P,a),o(t,f,a),T=!0},p(t,[a]){const x={};a&2&&(x.$$scope={dirty:a,ctx:t}),r.$set(x)},i(t){T||(H(l.$$.fragment,t),H(r.$$.fragment,t),T=!0)},o(t){M(l.$$.fragment,t),M(r.$$.fragment,t),T=!1},d(t){t&&(n(i),n(s),n(m),n(h),n(g),n(p),n(P),n(f)),n(e),L(l,t),L(r,t)}}}const I='{"title":"Training on TPUs","local":"training-on-tpus","sections":[],"depth":1}';function J(d){return z(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class V extends G{constructor(e){super(),j(this,e,J,F,b,{})}}export{V as component};
