import{s as Yn,o as er,n as At}from"../chunks/scheduler.9bc65507.js";import{S as tr,i as or,g as a,s as r,r as c,A as nr,h as i,f as t,c as s,j as b,u as p,x as _,k as v,y as n,a as d,v as m,d as f,t as u,w as g}from"../chunks/index.707bf1b6.js";import{T as Et}from"../chunks/Tip.c2ecdbf4.js";import{D as $}from"../chunks/Docstring.17db21ae.js";import{C as rr}from"../chunks/CodeBlock.54a9f38d.js";import{E as sr}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as jt}from"../chunks/Heading.342b1fa6.js";function ar(w){let l,x=`One of <code>start_states</code> or <code>start_positions</code> should be not <code>None</code>. If both are set, <code>start_positions</code> overrides
<code>start_states</code>.`;return{c(){l=a("p"),l.innerHTML=x},l(h){l=i(h,"P",{"data-svelte-h":!0}),_(l)!=="svelte-1oii8ff"&&(l.innerHTML=x)},m(h,y){d(h,l,y)},p:At,d(h){h&&t(l)}}}function ir(w){let l,x=`One of <code>start_states</code> or <code>start_positions</code> should be not <code>None</code>. If both are set, <code>start_positions</code> overrides
<code>start_states</code>.`;return{c(){l=a("p"),l.innerHTML=x},l(h){l=i(h,"P",{"data-svelte-h":!0}),_(l)!=="svelte-1oii8ff"&&(l.innerHTML=x)},m(h,y){d(h,l,y)},p:At,d(h){h&&t(l)}}}function dr(w){let l,x="Examples:",h,y,L;return y=new rr({props:{code:"JTIzJTIwcmVuYW1lJTIwdGhlJTIwdXN1YWwlMjBmb3J3YXJkKCklMjBmbiUyMHRvJTIwZm9yd2FyZF9jaHVuaygpJTBBZGVmJTIwZm9yd2FyZF9jaHVuayhzZWxmJTJDJTIwaGlkZGVuX3N0YXRlcyklM0ElMEElMjAlMjAlMjAlMjBoaWRkZW5fc3RhdGVzJTIwJTNEJTIwc2VsZi5kZWNvZGVyKGhpZGRlbl9zdGF0ZXMpJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwaGlkZGVuX3N0YXRlcyUwQSUwQSUwQSUyMyUyMGltcGxlbWVudCUyMGElMjBjaHVua2VkJTIwZm9yd2FyZCUyMGZ1bmN0aW9uJTBBZGVmJTIwZm9yd2FyZChzZWxmJTJDJTIwaGlkZGVuX3N0YXRlcyklM0ElMEElMjAlMjAlMjAlMjByZXR1cm4lMjBhcHBseV9jaHVua2luZ190b19mb3J3YXJkKHNlbGYuZm9yd2FyZF9jaHVuayUyQyUyMHNlbGYuY2h1bmtfc2l6ZV9sbV9oZWFkJTJDJTIwc2VsZi5zZXFfbGVuX2RpbSUyQyUyMGhpZGRlbl9zdGF0ZXMp",highlighted:`<span class="hljs-comment"># rename the usual forward() fn to forward_chunk()</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">forward_chunk</span>(<span class="hljs-params">self, hidden_states</span>):
    hidden_states = self.decoder(hidden_states)
    <span class="hljs-keyword">return</span> hidden_states


<span class="hljs-comment"># implement a chunked forward function</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">forward</span>(<span class="hljs-params">self, hidden_states</span>):
    <span class="hljs-keyword">return</span> apply_chunking_to_forward(self.forward_chunk, self.chunk_size_lm_head, self.seq_len_dim, hidden_states)`,wrap:!1}}),{c(){l=a("p"),l.textContent=x,h=r(),c(y.$$.fragment)},l(T){l=i(T,"P",{"data-svelte-h":!0}),_(l)!=="svelte-kvfsh7"&&(l.textContent=x),h=s(T),p(y.$$.fragment,T)},m(T,D){d(T,l,D),d(T,h,D),m(y,T,D),L=!0},p:At,i(T){L||(f(y.$$.fragment,T),L=!0)},o(T){u(y.$$.fragment,T),L=!1},d(T){T&&(t(l),t(h)),g(y,T)}}}function lr(w){let l,x="Any label of -100 will be ignored (along with the corresponding logits) in the loss computation.";return{c(){l=a("p"),l.textContent=x},l(h){l=i(h,"P",{"data-svelte-h":!0}),_(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(h,y){d(h,l,y)},p:At,d(h){h&&t(l)}}}function cr(w){let l,x="Any label of -100 will be ignored (along with the corresponding logits) in the loss computation.";return{c(){l=a("p"),l.textContent=x},l(h){l=i(h,"P",{"data-svelte-h":!0}),_(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(h,y){d(h,l,y)},p:At,d(h){h&&t(l)}}}function pr(w){let l,x="Any label of -100 will be ignored (along with the corresponding logits) in the loss computation.";return{c(){l=a("p"),l.textContent=x},l(h){l=i(h,"P",{"data-svelte-h":!0}),_(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(h,y){d(h,l,y)},p:At,d(h){h&&t(l)}}}function mr(w){let l,x,h,y,L,T,D,bn="このページには、ライブラリで使用されるすべてのカスタム レイヤーと、モデリングに提供されるユーティリティ関数がリストされます。",Vt,pe,vn="これらのほとんどは、ライブラリ内のモデルのコードを研究する場合にのみ役に立ちます。",Ot,me,Nt,P,fe,Do,Qe,$n="1D-convolutional layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2).",Po,Be,xn="Basically works like a linear layer but the weights are transposed.",Jt,z,ue,zo,Ue,yn="Compute SQuAD start logits from sequence hidden states.",Fo,Xe,ge,Gt,F,he,So,Re,Tn="Compute SQuAD end logits from sequence hidden states.",qo,ee,_e,Mo,te,Zt,S,be,jo,We,wn="Compute SQuAD 2.0 answer class from classification and start tokens hidden states.",Ao,oe,ve,Io,ne,Qt,N,$e,Ho,Ke,Cn='Base class for outputs of question answering models using a <a href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.modeling_utils.SQuADHead">SQuADHead</a>.',Bt,q,xe,Eo,Ye,kn="A SQuAD head inspired by XLNet.",Vo,et,ye,Ut,M,Te,Oo,tt,Ln="Compute a single vector summary of a sequence hidden states.",No,re,we,Jo,ot,Dn="Compute a single vector summary of a sequence hidden states.",Xt,Ce,Rt,C,ke,Go,nt,Pn=`This function chunks the <code>input_tensors</code> into smaller input tensor parts of size <code>chunk_size</code> over the dimension
<code>chunk_dim</code>. It then applies a layer <code>forward_fn</code> to each chunk independently to save memory.`,Zo,rt,zn=`If the <code>forward_fn</code> is independent across the <code>chunk_dim</code> this function will yield the same result as directly
applying <code>forward_fn</code> to <code>input_tensors</code>.`,Qo,se,Wt,J,Le,Bo,st,Fn="Finds the heads and their indices taking <code>already_pruned_heads</code> into account.",Kt,j,De,Uo,at,Sn="Prune a Conv1D or linear layer to keep only entries in index.",Xo,it,qn="Used to remove heads.",Yt,A,Pe,Ro,dt,Mn=`Prune a Conv1D layer to keep only entries in index. A Conv1D work as a Linear layer (see e.g. BERT) but the weights
are transposed.`,Wo,lt,jn="Used to remove heads.",eo,I,ze,Ko,ct,An="Prune a linear layer to keep only entries in index.",Yo,pt,In="Used to remove heads.",to,Fe,oo,H,Se,en,mt,Hn="1D-convolutional layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2).",tn,ft,En="Basically works like a linear layer but the weights are transposed.",no,G,qe,on,ut,Vn="Compute a single vector summary of a sequence hidden states.",ro,Me,so,E,je,nn,gt,On="Loss function suitable for causal language modeling (CLM), that is, the task of guessing the next token.",rn,ae,ao,V,Ae,sn,ht,Nn="Loss function suitable for masked language modeling (MLM), that is, the task of guessing the masked tokens.",an,ie,io,Z,Ie,dn,_t,Jn="Loss function suitable for multiple choice tasks.",lo,Q,He,ln,bt,Gn="Loss function suitable for question answering.",co,B,Ee,cn,vt,Zn="Loss function suitable for sequence classification.",po,O,Ve,pn,$t,Qn="Loss function suitable for token classification.",mn,de,mo,Oe,fo,U,Ne,fn,xt,Bn="Creates a <code>tf.keras.initializers.TruncatedNormal</code> with the given range.",uo,k,Je,un,yt,Un="Decorate a Keras Layer class to support Keras serialization.",gn,Tt,Xn="This is done by:",hn,wt,Rn=`<li>Adding a <code>transformers_config</code> dict to the Keras config dictionary in <code>get_config</code> (called by Keras at
serialization time.</li> <li>Wrapping <code>__init__</code> to accept that <code>transformers_config</code> dict (passed by Keras at deserialization time) and
convert it to a config object for the actual layer initializer.</li> <li>Registering the class as a custom object in Keras (if the Tensorflow version supports this), so that it does not
need to be supplied in <code>custom_objects</code> in the call to <code>tf.keras.models.load_model</code>.</li>`,go,X,Ge,_n,Ct,Wn="Deal with dynamic shape in tensorflow cleanly.",ho,It,_o;return L=new jt({props:{title:"カスタムレイヤーとユーティリティ",local:"カスタムレイヤーとユーティリティ",headingTag:"h1"}}),me=new jt({props:{title:"Pytorch custom modules",local:"transformers.Conv1D",headingTag:"h2"}}),fe=new $({props:{name:"class transformers.Conv1D",anchor:"transformers.Conv1D",parameters:[{name:"nf",val:""},{name:"nx",val:""}],parametersDescription:[{anchor:"transformers.Conv1D.nf",description:"<strong>nf</strong> (<code>int</code>) &#x2014; The number of output features.",name:"nf"},{anchor:"transformers.Conv1D.nx",description:"<strong>nx</strong> (<code>int</code>) &#x2014; The number of input features.",name:"nx"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L88"}}),ue=new $({props:{name:"class transformers.modeling_utils.PoolerStartLogits",anchor:"transformers.modeling_utils.PoolerStartLogits",parameters:[{name:"config",val:": PretrainedConfig"}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerStartLogits.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model, will be used to grab the <code>hidden_size</code> of the model.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4381"}}),ge=new $({props:{name:"forward",anchor:"transformers.modeling_utils.PoolerStartLogits.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"p_mask",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerStartLogits.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>) &#x2014;
The final hidden states of the model.`,name:"hidden_states"},{anchor:"transformers.modeling_utils.PoolerStartLogits.forward.p_mask",description:`<strong>p_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len)</code>, <em>optional</em>) &#x2014;
Mask for tokens at invalid position, such as query and special symbols (PAD, SEP, CLS). 1.0 means token
should be masked.`,name:"p_mask"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4394",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The start logits for SQuAD.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.FloatTensor</code></p>
`}}),he=new $({props:{name:"class transformers.modeling_utils.PoolerEndLogits",anchor:"transformers.modeling_utils.PoolerEndLogits",parameters:[{name:"config",val:": PretrainedConfig"}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerEndLogits.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model, will be used to grab the <code>hidden_size</code> of the model and the <code>layer_norm_eps</code>
to use.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4419"}}),_e=new $({props:{name:"forward",anchor:"transformers.modeling_utils.PoolerEndLogits.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"start_states",val:": typing.Optional[torch.FloatTensor] = None"},{name:"start_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"p_mask",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerEndLogits.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>) &#x2014;
The final hidden states of the model.`,name:"hidden_states"},{anchor:"transformers.modeling_utils.PoolerEndLogits.forward.start_states",description:`<strong>start_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>, <em>optional</em>) &#x2014;
The hidden states of the first tokens for the labeled span.`,name:"start_states"},{anchor:"transformers.modeling_utils.PoolerEndLogits.forward.start_positions",description:`<strong>start_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
The position of the first token for the labeled span.`,name:"start_positions"},{anchor:"transformers.modeling_utils.PoolerEndLogits.forward.p_mask",description:`<strong>p_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len)</code>, <em>optional</em>) &#x2014;
Mask for tokens at invalid position, such as query and special symbols (PAD, SEP, CLS). 1.0 means token
should be masked.`,name:"p_mask"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4436",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The end logits for SQuAD.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.FloatTensor</code></p>
`}}),te=new Et({props:{$$slots:{default:[ar]},$$scope:{ctx:w}}}),be=new $({props:{name:"class transformers.modeling_utils.PoolerAnswerClass",anchor:"transformers.modeling_utils.PoolerAnswerClass",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerAnswerClass.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model, will be used to grab the <code>hidden_size</code> of the model.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4488"}}),ve=new $({props:{name:"forward",anchor:"transformers.modeling_utils.PoolerAnswerClass.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"start_states",val:": typing.Optional[torch.FloatTensor] = None"},{name:"start_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"cls_index",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.PoolerAnswerClass.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>) &#x2014;
The final hidden states of the model.`,name:"hidden_states"},{anchor:"transformers.modeling_utils.PoolerAnswerClass.forward.start_states",description:`<strong>start_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>, <em>optional</em>) &#x2014;
The hidden states of the first tokens for the labeled span.`,name:"start_states"},{anchor:"transformers.modeling_utils.PoolerAnswerClass.forward.start_positions",description:`<strong>start_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
The position of the first token for the labeled span.`,name:"start_positions"},{anchor:"transformers.modeling_utils.PoolerAnswerClass.forward.cls_index",description:`<strong>cls_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Position of the CLS token for each sentence in the batch. If <code>None</code>, takes the last token.`,name:"cls_index"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4503",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The SQuAD 2.0 answer class.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.FloatTensor</code></p>
`}}),ne=new Et({props:{$$slots:{default:[ir]},$$scope:{ctx:w}}}),$e=new $({props:{name:"class transformers.modeling_utils.SquadHeadOutput",anchor:"transformers.modeling_utils.SquadHeadOutput",parameters:[{name:"loss",val:": typing.Optional[torch.FloatTensor] = None"},{name:"start_top_log_probs",val:": typing.Optional[torch.FloatTensor] = None"},{name:"start_top_index",val:": typing.Optional[torch.LongTensor] = None"},{name:"end_top_log_probs",val:": typing.Optional[torch.FloatTensor] = None"},{name:"end_top_index",val:": typing.Optional[torch.LongTensor] = None"},{name:"cls_logits",val:": typing.Optional[torch.FloatTensor] = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.SquadHeadOutput.loss",description:`<strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned if both <code>start_positions</code> and <code>end_positions</code> are provided) &#x2014;
Classification loss as the sum of start token, end token (and is_impossible if provided) classification
losses.`,name:"loss"},{anchor:"transformers.modeling_utils.SquadHeadOutput.start_top_log_probs",description:`<strong>start_top_log_probs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.start_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) &#x2014;
Log probabilities for the top config.start_n_top start token possibilities (beam-search).`,name:"start_top_log_probs"},{anchor:"transformers.modeling_utils.SquadHeadOutput.start_top_index",description:`<strong>start_top_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, config.start_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) &#x2014;
Indices for the top config.start_n_top start token possibilities (beam-search).`,name:"start_top_index"},{anchor:"transformers.modeling_utils.SquadHeadOutput.end_top_log_probs",description:`<strong>end_top_log_probs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.start_n_top * config.end_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) &#x2014;
Log probabilities for the top <code>config.start_n_top * config.end_n_top</code> end token possibilities
(beam-search).`,name:"end_top_log_probs"},{anchor:"transformers.modeling_utils.SquadHeadOutput.end_top_index",description:`<strong>end_top_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, config.start_n_top * config.end_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) &#x2014;
Indices for the top <code>config.start_n_top * config.end_n_top</code> end token possibilities (beam-search).`,name:"end_top_index"},{anchor:"transformers.modeling_utils.SquadHeadOutput.cls_logits",description:`<strong>cls_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) &#x2014;
Log probabilities for the <code>is_impossible</code> label of the answers.`,name:"cls_logits"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4554"}}),xe=new $({props:{name:"class transformers.modeling_utils.SQuADHead",anchor:"transformers.modeling_utils.SQuADHead",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.modeling_utils.SQuADHead.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model, will be used to grab the <code>hidden_size</code> of the model and the <code>layer_norm_eps</code>
to use.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4584"}}),ye=new $({props:{name:"forward",anchor:"transformers.modeling_utils.SQuADHead.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"start_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"end_positions",val:": typing.Optional[torch.LongTensor] = None"},{name:"cls_index",val:": typing.Optional[torch.LongTensor] = None"},{name:"is_impossible",val:": typing.Optional[torch.LongTensor] = None"},{name:"p_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"return_dict",val:": bool = False"}],parametersDescription:[{anchor:"transformers.modeling_utils.SQuADHead.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len, hidden_size)</code>) &#x2014;
Final hidden states of the model on the sequence tokens.`,name:"hidden_states"},{anchor:"transformers.modeling_utils.SQuADHead.forward.start_positions",description:`<strong>start_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Positions of the first token for the labeled span.`,name:"start_positions"},{anchor:"transformers.modeling_utils.SQuADHead.forward.end_positions",description:`<strong>end_positions</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Positions of the last token for the labeled span.`,name:"end_positions"},{anchor:"transformers.modeling_utils.SQuADHead.forward.cls_index",description:`<strong>cls_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Position of the CLS token for each sentence in the batch. If <code>None</code>, takes the last token.`,name:"cls_index"},{anchor:"transformers.modeling_utils.SQuADHead.forward.is_impossible",description:`<strong>is_impossible</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Whether the question has a possible answer in the paragraph or not.`,name:"is_impossible"},{anchor:"transformers.modeling_utils.SQuADHead.forward.p_mask",description:`<strong>p_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_len)</code>, <em>optional</em>) &#x2014;
Mask for tokens at invalid position, such as query and special symbols (PAD, SEP, CLS). 1.0 means token
should be masked.`,name:"p_mask"},{anchor:"transformers.modeling_utils.SQuADHead.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return a <a href="/docs/transformers/v4.36.1/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4603",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.modeling_utils.SquadHeadOutput"
>transformers.modeling_utils.SquadHeadOutput</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.configuration_utils.PretrainedConfig'&gt;</code>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned if both <code>start_positions</code> and <code>end_positions</code> are provided) — Classification loss as the sum of start token, end token (and is_impossible if provided) classification
losses.</li>
<li><strong>start_top_log_probs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.start_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) — Log probabilities for the top config.start_n_top start token possibilities (beam-search).</li>
<li><strong>start_top_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, config.start_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) — Indices for the top config.start_n_top start token possibilities (beam-search).</li>
<li><strong>end_top_log_probs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.start_n_top * config.end_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) — Log probabilities for the top <code>config.start_n_top * config.end_n_top</code> end token possibilities
(beam-search).</li>
<li><strong>end_top_index</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, config.start_n_top * config.end_n_top)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) — Indices for the top <code>config.start_n_top * config.end_n_top</code> end token possibilities (beam-search).</li>
<li><strong>cls_logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>, returned if <code>start_positions</code> or <code>end_positions</code> is not provided) — Log probabilities for the <code>is_impossible</code> label of the answers.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.modeling_utils.SquadHeadOutput"
>transformers.modeling_utils.SquadHeadOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Te=new $({props:{name:"class transformers.modeling_utils.SequenceSummary",anchor:"transformers.modeling_utils.SequenceSummary",parameters:[{name:"config",val:": PretrainedConfig"}],parametersDescription:[{anchor:"transformers.modeling_utils.SequenceSummary.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model. Relevant arguments in the config class of the model are (refer to the actual
config class of your model for the default values it uses):</p>
<ul>
<li>
<p><strong>summary_type</strong> (<code>str</code>) &#x2014; The method to use to make this summary. Accepted values are:</p>
<ul>
<li><code>&quot;last&quot;</code> &#x2014; Take the last token hidden state (like XLNet)</li>
<li><code>&quot;first&quot;</code> &#x2014; Take the first token hidden state (like Bert)</li>
<li><code>&quot;mean&quot;</code> &#x2014; Take the mean of all tokens hidden states</li>
<li><code>&quot;cls_index&quot;</code> &#x2014; Supply a Tensor of classification token position (GPT/GPT-2)</li>
<li><code>&quot;attn&quot;</code> &#x2014; Not implemented now, use multi-head attention</li>
</ul>
</li>
<li>
<p><strong>summary_use_proj</strong> (<code>bool</code>) &#x2014; Add a projection after the vector extraction.</p>
</li>
<li>
<p><strong>summary_proj_to_labels</strong> (<code>bool</code>) &#x2014; If <code>True</code>, the projection outputs to <code>config.num_labels</code> classes
(otherwise to <code>config.hidden_size</code>).</p>
</li>
<li>
<p><strong>summary_activation</strong> (<code>Optional[str]</code>) &#x2014; Set to <code>&quot;tanh&quot;</code> to add a tanh activation to the output,
another string or <code>None</code> will add no activation.</p>
</li>
<li>
<p><strong>summary_first_dropout</strong> (<code>float</code>) &#x2014; Optional dropout probability before the projection and activation.</p>
</li>
<li>
<p><strong>summary_last_dropout</strong> (<code>float</code>)&#x2014; Optional dropout probability after the projection and activation.</p>
</li>
</ul>`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4701"}}),we=new $({props:{name:"forward",anchor:"transformers.modeling_utils.SequenceSummary.forward",parameters:[{name:"hidden_states",val:": FloatTensor"},{name:"cls_index",val:": typing.Optional[torch.LongTensor] = None"}],parametersDescription:[{anchor:"transformers.modeling_utils.SequenceSummary.forward.hidden_states",description:`<strong>hidden_states</strong> (<code>torch.FloatTensor</code> of shape <code>[batch_size, seq_len, hidden_size]</code>) &#x2014;
The hidden states of the last layer.`,name:"hidden_states"},{anchor:"transformers.modeling_utils.SequenceSummary.forward.cls_index",description:`<strong>cls_index</strong> (<code>torch.LongTensor</code> of shape <code>[batch_size]</code> or <code>[batch_size, ...]</code> where &#x2026; are optional leading dimensions of <code>hidden_states</code>, <em>optional</em>) &#x2014;
Used if <code>summary_type == &quot;cls_index&quot;</code> and takes the last token of the sequence as classification token.`,name:"cls_index"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_utils.py#L4756",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The summary of the sequence hidden states.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.FloatTensor</code></p>
`}}),Ce=new jt({props:{title:"PyTorch Helper Functions",local:"transformers.apply_chunking_to_forward",headingTag:"h2"}}),ke=new $({props:{name:"transformers.apply_chunking_to_forward",anchor:"transformers.apply_chunking_to_forward",parameters:[{name:"forward_fn",val:": typing.Callable[..., torch.Tensor]"},{name:"chunk_size",val:": int"},{name:"chunk_dim",val:": int"},{name:"*input_tensors",val:""}],parametersDescription:[{anchor:"transformers.apply_chunking_to_forward.forward_fn",description:`<strong>forward_fn</strong> (<code>Callable[..., torch.Tensor]</code>) &#x2014;
The forward function of the model.`,name:"forward_fn"},{anchor:"transformers.apply_chunking_to_forward.chunk_size",description:`<strong>chunk_size</strong> (<code>int</code>) &#x2014;
The chunk size of a chunked tensor: <code>num_chunks = len(input_tensors[0]) / chunk_size</code>.`,name:"chunk_size"},{anchor:"transformers.apply_chunking_to_forward.chunk_dim",description:`<strong>chunk_dim</strong> (<code>int</code>) &#x2014;
The dimension over which the <code>input_tensors</code> should be chunked.`,name:"chunk_dim"},{anchor:"transformers.apply_chunking_to_forward.input_tensors",description:`<strong>input_tensors</strong> (<code>Tuple[torch.Tensor]</code>) &#x2014;
The input tensors of <code>forward_fn</code> which will be chunked`,name:"input_tensors"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L170",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tensor with the same shape as the <code>forward_fn</code> would have given if applied\`.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.Tensor</code></p>
`}}),se=new sr({props:{anchor:"transformers.apply_chunking_to_forward.example",$$slots:{default:[dr]},$$scope:{ctx:w}}}),Le=new $({props:{name:"transformers.pytorch_utils.find_pruneable_heads_and_indices",anchor:"transformers.pytorch_utils.find_pruneable_heads_and_indices",parameters:[{name:"heads",val:": typing.List[int]"},{name:"n_heads",val:": int"},{name:"head_size",val:": int"},{name:"already_pruned_heads",val:": typing.Set[int]"}],parametersDescription:[{anchor:"transformers.pytorch_utils.find_pruneable_heads_and_indices.heads",description:"<strong>heads</strong> (<code>List[int]</code>) &#x2014; List of the indices of heads to prune.",name:"heads"},{anchor:"transformers.pytorch_utils.find_pruneable_heads_and_indices.n_heads",description:"<strong>n_heads</strong> (<code>int</code>) &#x2014; The number of heads in the model.",name:"n_heads"},{anchor:"transformers.pytorch_utils.find_pruneable_heads_and_indices.head_size",description:"<strong>head_size</strong> (<code>int</code>) &#x2014; The size of each head.",name:"head_size"},{anchor:"transformers.pytorch_utils.find_pruneable_heads_and_indices.already_pruned_heads",description:"<strong>already_pruned_heads</strong> (<code>Set[int]</code>) &#x2014; A set of already pruned heads.",name:"already_pruned_heads"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L245",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple with the indices of heads to prune taking <code>already_pruned_heads</code>
into account and the indices of rows/columns to keep in the layer weight.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Tuple[Set[int], torch.LongTensor]</code></p>
`}}),De=new $({props:{name:"transformers.prune_layer",anchor:"transformers.prune_layer",parameters:[{name:"layer",val:": typing.Union[torch.nn.modules.linear.Linear, transformers.pytorch_utils.Conv1D]"},{name:"index",val:": LongTensor"},{name:"dim",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"transformers.prune_layer.layer",description:"<strong>layer</strong> (<code>Union[torch.nn.Linear, Conv1D]</code>) &#x2014; The layer to prune.",name:"layer"},{anchor:"transformers.prune_layer.index",description:"<strong>index</strong> (<code>torch.LongTensor</code>) &#x2014; The indices to keep in the layer.",name:"index"},{anchor:"transformers.prune_layer.dim",description:"<strong>dim</strong> (<code>int</code>, <em>optional</em>) &#x2014; The dimension on which to keep the indices.",name:"dim"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L146",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The pruned layer as a new layer with <code>requires_grad=True</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.nn.Linear</code> or <a
  href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.Conv1D"
>Conv1D</a></p>
`}}),Pe=new $({props:{name:"transformers.pytorch_utils.prune_conv1d_layer",anchor:"transformers.pytorch_utils.prune_conv1d_layer",parameters:[{name:"layer",val:": Conv1D"},{name:"index",val:": LongTensor"},{name:"dim",val:": int = 1"}],parametersDescription:[{anchor:"transformers.pytorch_utils.prune_conv1d_layer.layer",description:'<strong>layer</strong> (<a href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.Conv1D">Conv1D</a>) &#x2014; The layer to prune.',name:"layer"},{anchor:"transformers.pytorch_utils.prune_conv1d_layer.index",description:"<strong>index</strong> (<code>torch.LongTensor</code>) &#x2014; The indices to keep in the layer.",name:"index"},{anchor:"transformers.pytorch_utils.prune_conv1d_layer.dim",description:"<strong>dim</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014; The dimension on which to keep the indices.",name:"dim"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L113",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The pruned layer as a new layer with <code>requires_grad=True</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/v4.36.1/ja/internal/modeling_utils#transformers.Conv1D"
>Conv1D</a></p>
`}}),ze=new $({props:{name:"transformers.pytorch_utils.prune_linear_layer",anchor:"transformers.pytorch_utils.prune_linear_layer",parameters:[{name:"layer",val:": Linear"},{name:"index",val:": LongTensor"},{name:"dim",val:": int = 0"}],parametersDescription:[{anchor:"transformers.pytorch_utils.prune_linear_layer.layer",description:"<strong>layer</strong> (<code>torch.nn.Linear</code>) &#x2014; The layer to prune.",name:"layer"},{anchor:"transformers.pytorch_utils.prune_linear_layer.index",description:"<strong>index</strong> (<code>torch.LongTensor</code>) &#x2014; The indices to keep in the layer.",name:"index"},{anchor:"transformers.pytorch_utils.prune_linear_layer.dim",description:"<strong>dim</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014; The dimension on which to keep the indices.",name:"dim"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/pytorch_utils.py#L54",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The pruned layer as a new layer with <code>requires_grad=True</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>torch.nn.Linear</code></p>
`}}),Fe=new jt({props:{title:"TensorFlow custom layers",local:"transformers.modeling_tf_utils.TFConv1D",headingTag:"h2"}}),Se=new $({props:{name:"class transformers.modeling_tf_utils.TFConv1D",anchor:"transformers.modeling_tf_utils.TFConv1D",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.modeling_tf_utils.TFConv1D.nf",description:`<strong>nf</strong> (<code>int</code>) &#x2014;
The number of output features.`,name:"nf"},{anchor:"transformers.modeling_tf_utils.TFConv1D.nx",description:`<strong>nx</strong> (<code>int</code>) &#x2014;
The number of input features.`,name:"nx"},{anchor:"transformers.modeling_tf_utils.TFConv1D.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation to use to initialize the weights.`,name:"initializer_range"},{anchor:"transformers.modeling_tf_utils.TFConv1D.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <code>__init__</code> of <code>tf.keras.layers.Layer</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L3194"}}),qe=new $({props:{name:"class transformers.TFSequenceSummary",anchor:"transformers.TFSequenceSummary",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFSequenceSummary.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.36.1/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a>) &#x2014;
The config used by the model. Relevant arguments in the config class of the model are (refer to the actual
config class of your model for the default values it uses):</p>
<ul>
<li>
<p><strong>summary_type</strong> (<code>str</code>) &#x2014; The method to use to make this summary. Accepted values are:</p>
<ul>
<li><code>&quot;last&quot;</code> &#x2014; Take the last token hidden state (like XLNet)</li>
<li><code>&quot;first&quot;</code> &#x2014; Take the first token hidden state (like Bert)</li>
<li><code>&quot;mean&quot;</code> &#x2014; Take the mean of all tokens hidden states</li>
<li><code>&quot;cls_index&quot;</code> &#x2014; Supply a Tensor of classification token position (GPT/GPT-2)</li>
<li><code>&quot;attn&quot;</code> &#x2014; Not implemented now, use multi-head attention</li>
</ul>
</li>
<li>
<p><strong>summary_use_proj</strong> (<code>bool</code>) &#x2014; Add a projection after the vector extraction.</p>
</li>
<li>
<p><strong>summary_proj_to_labels</strong> (<code>bool</code>) &#x2014; If <code>True</code>, the projection outputs to <code>config.num_labels</code> classes
(otherwise to <code>config.hidden_size</code>).</p>
</li>
<li>
<p><strong>summary_activation</strong> (<code>Optional[str]</code>) &#x2014; Set to <code>&quot;tanh&quot;</code> to add a tanh activation to the output,
another string or <code>None</code> will add no activation.</p>
</li>
<li>
<p><strong>summary_first_dropout</strong> (<code>float</code>) &#x2014; Optional dropout probability before the projection and activation.</p>
</li>
<li>
<p><strong>summary_last_dropout</strong> (<code>float</code>)&#x2014; Optional dropout probability after the projection and activation.</p>
</li>
</ul>`,name:"config"},{anchor:"transformers.TFSequenceSummary.initializer_range",description:"<strong>initializer_range</strong> (<code>float</code>, defaults to 0.02) &#x2014; The standard deviation to use to initialize the weights.",name:"initializer_range"},{anchor:"transformers.TFSequenceSummary.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <code>__init__</code> of <code>tf.keras.layers.Layer</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L3338"}}),Me=new jt({props:{title:"TensorFlow loss functions",local:"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",headingTag:"h2"}}),je=new $({props:{name:"class transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",anchor:"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L192"}}),ae=new Et({props:{$$slots:{default:[lr]},$$scope:{ctx:w}}}),Ae=new $({props:{name:"class transformers.modeling_tf_utils.TFMaskedLanguageModelingLoss",anchor:"transformers.modeling_tf_utils.TFMaskedLanguageModelingLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L311"}}),ie=new Et({props:{$$slots:{default:[cr]},$$scope:{ctx:w}}}),Ie=new $({props:{name:"class transformers.modeling_tf_utils.TFMultipleChoiceLoss",anchor:"transformers.modeling_tf_utils.TFMultipleChoiceLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L301"}}),He=new $({props:{name:"class transformers.modeling_tf_utils.TFQuestionAnsweringLoss",anchor:"transformers.modeling_tf_utils.TFQuestionAnsweringLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L223"}}),Ee=new $({props:{name:"class transformers.modeling_tf_utils.TFSequenceClassificationLoss",anchor:"transformers.modeling_tf_utils.TFSequenceClassificationLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L282"}}),Ve=new $({props:{name:"class transformers.modeling_tf_utils.TFTokenClassificationLoss",anchor:"transformers.modeling_tf_utils.TFTokenClassificationLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L238"}}),de=new Et({props:{$$slots:{default:[pr]},$$scope:{ctx:w}}}),Oe=new jt({props:{title:"TensorFlow Helper Functions",local:"transformers.modeling_tf_utils.get_initializer",headingTag:"h2"}}),Ne=new $({props:{name:"transformers.modeling_tf_utils.get_initializer",anchor:"transformers.modeling_tf_utils.get_initializer",parameters:[{name:"initializer_range",val:": float = 0.02"}],parametersDescription:[{anchor:"transformers.modeling_tf_utils.get_initializer.initializer_range",description:"<strong>initializer_range</strong> (<em>float</em>, defaults to 0.02) &#x2014; Standard deviation of the initializer range.",name:"initializer_range"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L3454",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The truncated normal initializer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>tf.keras.initializers.TruncatedNormal</code></p>
`}}),Je=new $({props:{name:"transformers.modeling_tf_utils.keras_serializable",anchor:"transformers.modeling_tf_utils.keras_serializable",parameters:[],parametersDescription:[{anchor:"transformers.modeling_tf_utils.keras_serializable.cls",description:`<strong>cls</strong> (a <code>tf.keras.layers.Layers subclass</code>) &#x2014;
Typically a <code>TF.MainLayer</code> class in this project, in general must accept a <code>config</code> argument to its
initializer.`,name:"cls"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/modeling_tf_utils.py#L127",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The same class object, with modifications for Keras deserialization.</p>
`}}),Ge=new $({props:{name:"transformers.shape_list",anchor:"transformers.shape_list",parameters:[{name:"tensor",val:": typing.Union[tensorflow.python.framework.ops.Tensor, numpy.ndarray]"}],parametersDescription:[{anchor:"transformers.shape_list.tensor",description:"<strong>tensor</strong> (<code>tf.Tensor</code> or <code>np.ndarray</code>) &#x2014; The tensor we want the shape of.",name:"tensor"}],source:"https://github.com/huggingface/transformers/blob/v4.36.1/src/transformers/tf_utils.py#L26",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The shape of the tensor as a list.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>List[int]</code></p>
`}}),{c(){l=a("meta"),x=r(),h=a("p"),y=r(),c(L.$$.fragment),T=r(),D=a("p"),D.textContent=bn,Vt=r(),pe=a("p"),pe.textContent=vn,Ot=r(),c(me.$$.fragment),Nt=r(),P=a("div"),c(fe.$$.fragment),Do=r(),Qe=a("p"),Qe.textContent=$n,Po=r(),Be=a("p"),Be.textContent=xn,Jt=r(),z=a("div"),c(ue.$$.fragment),zo=r(),Ue=a("p"),Ue.textContent=yn,Fo=r(),Xe=a("div"),c(ge.$$.fragment),Gt=r(),F=a("div"),c(he.$$.fragment),So=r(),Re=a("p"),Re.textContent=Tn,qo=r(),ee=a("div"),c(_e.$$.fragment),Mo=r(),c(te.$$.fragment),Zt=r(),S=a("div"),c(be.$$.fragment),jo=r(),We=a("p"),We.textContent=wn,Ao=r(),oe=a("div"),c(ve.$$.fragment),Io=r(),c(ne.$$.fragment),Qt=r(),N=a("div"),c($e.$$.fragment),Ho=r(),Ke=a("p"),Ke.innerHTML=Cn,Bt=r(),q=a("div"),c(xe.$$.fragment),Eo=r(),Ye=a("p"),Ye.textContent=kn,Vo=r(),et=a("div"),c(ye.$$.fragment),Ut=r(),M=a("div"),c(Te.$$.fragment),Oo=r(),tt=a("p"),tt.textContent=Ln,No=r(),re=a("div"),c(we.$$.fragment),Jo=r(),ot=a("p"),ot.textContent=Dn,Xt=r(),c(Ce.$$.fragment),Rt=r(),C=a("div"),c(ke.$$.fragment),Go=r(),nt=a("p"),nt.innerHTML=Pn,Zo=r(),rt=a("p"),rt.innerHTML=zn,Qo=r(),c(se.$$.fragment),Wt=r(),J=a("div"),c(Le.$$.fragment),Bo=r(),st=a("p"),st.innerHTML=Fn,Kt=r(),j=a("div"),c(De.$$.fragment),Uo=r(),at=a("p"),at.textContent=Sn,Xo=r(),it=a("p"),it.textContent=qn,Yt=r(),A=a("div"),c(Pe.$$.fragment),Ro=r(),dt=a("p"),dt.textContent=Mn,Wo=r(),lt=a("p"),lt.textContent=jn,eo=r(),I=a("div"),c(ze.$$.fragment),Ko=r(),ct=a("p"),ct.textContent=An,Yo=r(),pt=a("p"),pt.textContent=In,to=r(),c(Fe.$$.fragment),oo=r(),H=a("div"),c(Se.$$.fragment),en=r(),mt=a("p"),mt.textContent=Hn,tn=r(),ft=a("p"),ft.textContent=En,no=r(),G=a("div"),c(qe.$$.fragment),on=r(),ut=a("p"),ut.textContent=Vn,ro=r(),c(Me.$$.fragment),so=r(),E=a("div"),c(je.$$.fragment),nn=r(),gt=a("p"),gt.textContent=On,rn=r(),c(ae.$$.fragment),ao=r(),V=a("div"),c(Ae.$$.fragment),sn=r(),ht=a("p"),ht.textContent=Nn,an=r(),c(ie.$$.fragment),io=r(),Z=a("div"),c(Ie.$$.fragment),dn=r(),_t=a("p"),_t.textContent=Jn,lo=r(),Q=a("div"),c(He.$$.fragment),ln=r(),bt=a("p"),bt.textContent=Gn,co=r(),B=a("div"),c(Ee.$$.fragment),cn=r(),vt=a("p"),vt.textContent=Zn,po=r(),O=a("div"),c(Ve.$$.fragment),pn=r(),$t=a("p"),$t.textContent=Qn,mn=r(),c(de.$$.fragment),mo=r(),c(Oe.$$.fragment),fo=r(),U=a("div"),c(Ne.$$.fragment),fn=r(),xt=a("p"),xt.innerHTML=Bn,uo=r(),k=a("div"),c(Je.$$.fragment),un=r(),yt=a("p"),yt.textContent=Un,gn=r(),Tt=a("p"),Tt.textContent=Xn,hn=r(),wt=a("ol"),wt.innerHTML=Rn,go=r(),X=a("div"),c(Ge.$$.fragment),_n=r(),Ct=a("p"),Ct.textContent=Wn,ho=r(),It=a("p"),this.h()},l(e){const o=nr("svelte-u9bgzb",document.head);l=i(o,"META",{name:!0,content:!0}),o.forEach(t),x=s(e),h=i(e,"P",{}),b(h).forEach(t),y=s(e),p(L.$$.fragment,e),T=s(e),D=i(e,"P",{"data-svelte-h":!0}),_(D)!=="svelte-10u7ir1"&&(D.textContent=bn),Vt=s(e),pe=i(e,"P",{"data-svelte-h":!0}),_(pe)!=="svelte-icau0f"&&(pe.textContent=vn),Ot=s(e),p(me.$$.fragment,e),Nt=s(e),P=i(e,"DIV",{class:!0});var R=b(P);p(fe.$$.fragment,R),Do=s(R),Qe=i(R,"P",{"data-svelte-h":!0}),_(Qe)!=="svelte-1lta4gb"&&(Qe.textContent=$n),Po=s(R),Be=i(R,"P",{"data-svelte-h":!0}),_(Be)!=="svelte-6u0wx8"&&(Be.textContent=xn),R.forEach(t),Jt=s(e),z=i(e,"DIV",{class:!0});var W=b(z);p(ue.$$.fragment,W),zo=s(W),Ue=i(W,"P",{"data-svelte-h":!0}),_(Ue)!=="svelte-nykzs4"&&(Ue.textContent=yn),Fo=s(W),Xe=i(W,"DIV",{class:!0});var Ht=b(Xe);p(ge.$$.fragment,Ht),Ht.forEach(t),W.forEach(t),Gt=s(e),F=i(e,"DIV",{class:!0});var K=b(F);p(he.$$.fragment,K),So=s(K),Re=i(K,"P",{"data-svelte-h":!0}),_(Re)!=="svelte-1xgtkjp"&&(Re.textContent=Tn),qo=s(K),ee=i(K,"DIV",{class:!0});var Ze=b(ee);p(_e.$$.fragment,Ze),Mo=s(Ze),p(te.$$.fragment,Ze),Ze.forEach(t),K.forEach(t),Zt=s(e),S=i(e,"DIV",{class:!0});var Y=b(S);p(be.$$.fragment,Y),jo=s(Y),We=i(Y,"P",{"data-svelte-h":!0}),_(We)!=="svelte-i1ac0w"&&(We.textContent=wn),Ao=s(Y),oe=i(Y,"DIV",{class:!0});var bo=b(oe);p(ve.$$.fragment,bo),Io=s(bo),p(ne.$$.fragment,bo),bo.forEach(t),Y.forEach(t),Qt=s(e),N=i(e,"DIV",{class:!0});var vo=b(N);p($e.$$.fragment,vo),Ho=s(vo),Ke=i(vo,"P",{"data-svelte-h":!0}),_(Ke)!=="svelte-axh91j"&&(Ke.innerHTML=Cn),vo.forEach(t),Bt=s(e),q=i(e,"DIV",{class:!0});var kt=b(q);p(xe.$$.fragment,kt),Eo=s(kt),Ye=i(kt,"P",{"data-svelte-h":!0}),_(Ye)!=="svelte-vm79b9"&&(Ye.textContent=kn),Vo=s(kt),et=i(kt,"DIV",{class:!0});var Kn=b(et);p(ye.$$.fragment,Kn),Kn.forEach(t),kt.forEach(t),Ut=s(e),M=i(e,"DIV",{class:!0});var Lt=b(M);p(Te.$$.fragment,Lt),Oo=s(Lt),tt=i(Lt,"P",{"data-svelte-h":!0}),_(tt)!=="svelte-1cor2i2"&&(tt.textContent=Ln),No=s(Lt),re=i(Lt,"DIV",{class:!0});var $o=b(re);p(we.$$.fragment,$o),Jo=s($o),ot=i($o,"P",{"data-svelte-h":!0}),_(ot)!=="svelte-1cor2i2"&&(ot.textContent=Dn),$o.forEach(t),Lt.forEach(t),Xt=s(e),p(Ce.$$.fragment,e),Rt=s(e),C=i(e,"DIV",{class:!0});var le=b(C);p(ke.$$.fragment,le),Go=s(le),nt=i(le,"P",{"data-svelte-h":!0}),_(nt)!=="svelte-16kfis2"&&(nt.innerHTML=Pn),Zo=s(le),rt=i(le,"P",{"data-svelte-h":!0}),_(rt)!=="svelte-1ufp6tv"&&(rt.innerHTML=zn),Qo=s(le),p(se.$$.fragment,le),le.forEach(t),Wt=s(e),J=i(e,"DIV",{class:!0});var xo=b(J);p(Le.$$.fragment,xo),Bo=s(xo),st=i(xo,"P",{"data-svelte-h":!0}),_(st)!=="svelte-o28a6l"&&(st.innerHTML=Fn),xo.forEach(t),Kt=s(e),j=i(e,"DIV",{class:!0});var Dt=b(j);p(De.$$.fragment,Dt),Uo=s(Dt),at=i(Dt,"P",{"data-svelte-h":!0}),_(at)!=="svelte-by2rhc"&&(at.textContent=Sn),Xo=s(Dt),it=i(Dt,"P",{"data-svelte-h":!0}),_(it)!=="svelte-14zrzk1"&&(it.textContent=qn),Dt.forEach(t),Yt=s(e),A=i(e,"DIV",{class:!0});var Pt=b(A);p(Pe.$$.fragment,Pt),Ro=s(Pt),dt=i(Pt,"P",{"data-svelte-h":!0}),_(dt)!=="svelte-1xogpwx"&&(dt.textContent=Mn),Wo=s(Pt),lt=i(Pt,"P",{"data-svelte-h":!0}),_(lt)!=="svelte-14zrzk1"&&(lt.textContent=jn),Pt.forEach(t),eo=s(e),I=i(e,"DIV",{class:!0});var zt=b(I);p(ze.$$.fragment,zt),Ko=s(zt),ct=i(zt,"P",{"data-svelte-h":!0}),_(ct)!=="svelte-1edz4x0"&&(ct.textContent=An),Yo=s(zt),pt=i(zt,"P",{"data-svelte-h":!0}),_(pt)!=="svelte-14zrzk1"&&(pt.textContent=In),zt.forEach(t),to=s(e),p(Fe.$$.fragment,e),oo=s(e),H=i(e,"DIV",{class:!0});var Ft=b(H);p(Se.$$.fragment,Ft),en=s(Ft),mt=i(Ft,"P",{"data-svelte-h":!0}),_(mt)!=="svelte-1lta4gb"&&(mt.textContent=Hn),tn=s(Ft),ft=i(Ft,"P",{"data-svelte-h":!0}),_(ft)!=="svelte-6u0wx8"&&(ft.textContent=En),Ft.forEach(t),no=s(e),G=i(e,"DIV",{class:!0});var yo=b(G);p(qe.$$.fragment,yo),on=s(yo),ut=i(yo,"P",{"data-svelte-h":!0}),_(ut)!=="svelte-1cor2i2"&&(ut.textContent=Vn),yo.forEach(t),ro=s(e),p(Me.$$.fragment,e),so=s(e),E=i(e,"DIV",{class:!0});var St=b(E);p(je.$$.fragment,St),nn=s(St),gt=i(St,"P",{"data-svelte-h":!0}),_(gt)!=="svelte-1obn9c"&&(gt.textContent=On),rn=s(St),p(ae.$$.fragment,St),St.forEach(t),ao=s(e),V=i(e,"DIV",{class:!0});var qt=b(V);p(Ae.$$.fragment,qt),sn=s(qt),ht=i(qt,"P",{"data-svelte-h":!0}),_(ht)!=="svelte-16f7wip"&&(ht.textContent=Nn),an=s(qt),p(ie.$$.fragment,qt),qt.forEach(t),io=s(e),Z=i(e,"DIV",{class:!0});var To=b(Z);p(Ie.$$.fragment,To),dn=s(To),_t=i(To,"P",{"data-svelte-h":!0}),_(_t)!=="svelte-yqule2"&&(_t.textContent=Jn),To.forEach(t),lo=s(e),Q=i(e,"DIV",{class:!0});var wo=b(Q);p(He.$$.fragment,wo),ln=s(wo),bt=i(wo,"P",{"data-svelte-h":!0}),_(bt)!=="svelte-1mrk13b"&&(bt.textContent=Gn),wo.forEach(t),co=s(e),B=i(e,"DIV",{class:!0});var Co=b(B);p(Ee.$$.fragment,Co),cn=s(Co),vt=i(Co,"P",{"data-svelte-h":!0}),_(vt)!=="svelte-13vmm2k"&&(vt.textContent=Zn),Co.forEach(t),po=s(e),O=i(e,"DIV",{class:!0});var Mt=b(O);p(Ve.$$.fragment,Mt),pn=s(Mt),$t=i(Mt,"P",{"data-svelte-h":!0}),_($t)!=="svelte-biydvq"&&($t.textContent=Qn),mn=s(Mt),p(de.$$.fragment,Mt),Mt.forEach(t),mo=s(e),p(Oe.$$.fragment,e),fo=s(e),U=i(e,"DIV",{class:!0});var ko=b(U);p(Ne.$$.fragment,ko),fn=s(ko),xt=i(ko,"P",{"data-svelte-h":!0}),_(xt)!=="svelte-iigt0"&&(xt.innerHTML=Bn),ko.forEach(t),uo=s(e),k=i(e,"DIV",{class:!0});var ce=b(k);p(Je.$$.fragment,ce),un=s(ce),yt=i(ce,"P",{"data-svelte-h":!0}),_(yt)!=="svelte-5ynxmr"&&(yt.textContent=Un),gn=s(ce),Tt=i(ce,"P",{"data-svelte-h":!0}),_(Tt)!=="svelte-19x4elj"&&(Tt.textContent=Xn),hn=s(ce),wt=i(ce,"OL",{"data-svelte-h":!0}),_(wt)!=="svelte-1g7pa8n"&&(wt.innerHTML=Rn),ce.forEach(t),go=s(e),X=i(e,"DIV",{class:!0});var Lo=b(X);p(Ge.$$.fragment,Lo),_n=s(Lo),Ct=i(Lo,"P",{"data-svelte-h":!0}),_(Ct)!=="svelte-pubhri"&&(Ct.textContent=Wn),Lo.forEach(t),ho=s(e),It=i(e,"P",{}),b(It).forEach(t),this.h()},h(){v(l,"name","hf:doc:metadata"),v(l,"content",fr),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"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,o){n(document.head,l),d(e,x,o),d(e,h,o),d(e,y,o),m(L,e,o),d(e,T,o),d(e,D,o),d(e,Vt,o),d(e,pe,o),d(e,Ot,o),m(me,e,o),d(e,Nt,o),d(e,P,o),m(fe,P,null),n(P,Do),n(P,Qe),n(P,Po),n(P,Be),d(e,Jt,o),d(e,z,o),m(ue,z,null),n(z,zo),n(z,Ue),n(z,Fo),n(z,Xe),m(ge,Xe,null),d(e,Gt,o),d(e,F,o),m(he,F,null),n(F,So),n(F,Re),n(F,qo),n(F,ee),m(_e,ee,null),n(ee,Mo),m(te,ee,null),d(e,Zt,o),d(e,S,o),m(be,S,null),n(S,jo),n(S,We),n(S,Ao),n(S,oe),m(ve,oe,null),n(oe,Io),m(ne,oe,null),d(e,Qt,o),d(e,N,o),m($e,N,null),n(N,Ho),n(N,Ke),d(e,Bt,o),d(e,q,o),m(xe,q,null),n(q,Eo),n(q,Ye),n(q,Vo),n(q,et),m(ye,et,null),d(e,Ut,o),d(e,M,o),m(Te,M,null),n(M,Oo),n(M,tt),n(M,No),n(M,re),m(we,re,null),n(re,Jo),n(re,ot),d(e,Xt,o),m(Ce,e,o),d(e,Rt,o),d(e,C,o),m(ke,C,null),n(C,Go),n(C,nt),n(C,Zo),n(C,rt),n(C,Qo),m(se,C,null),d(e,Wt,o),d(e,J,o),m(Le,J,null),n(J,Bo),n(J,st),d(e,Kt,o),d(e,j,o),m(De,j,null),n(j,Uo),n(j,at),n(j,Xo),n(j,it),d(e,Yt,o),d(e,A,o),m(Pe,A,null),n(A,Ro),n(A,dt),n(A,Wo),n(A,lt),d(e,eo,o),d(e,I,o),m(ze,I,null),n(I,Ko),n(I,ct),n(I,Yo),n(I,pt),d(e,to,o),m(Fe,e,o),d(e,oo,o),d(e,H,o),m(Se,H,null),n(H,en),n(H,mt),n(H,tn),n(H,ft),d(e,no,o),d(e,G,o),m(qe,G,null),n(G,on),n(G,ut),d(e,ro,o),m(Me,e,o),d(e,so,o),d(e,E,o),m(je,E,null),n(E,nn),n(E,gt),n(E,rn),m(ae,E,null),d(e,ao,o),d(e,V,o),m(Ae,V,null),n(V,sn),n(V,ht),n(V,an),m(ie,V,null),d(e,io,o),d(e,Z,o),m(Ie,Z,null),n(Z,dn),n(Z,_t),d(e,lo,o),d(e,Q,o),m(He,Q,null),n(Q,ln),n(Q,bt),d(e,co,o),d(e,B,o),m(Ee,B,null),n(B,cn),n(B,vt),d(e,po,o),d(e,O,o),m(Ve,O,null),n(O,pn),n(O,$t),n(O,mn),m(de,O,null),d(e,mo,o),m(Oe,e,o),d(e,fo,o),d(e,U,o),m(Ne,U,null),n(U,fn),n(U,xt),d(e,uo,o),d(e,k,o),m(Je,k,null),n(k,un),n(k,yt),n(k,gn),n(k,Tt),n(k,hn),n(k,wt),d(e,go,o),d(e,X,o),m(Ge,X,null),n(X,_n),n(X,Ct),d(e,ho,o),d(e,It,o),_o=!0},p(e,[o]){const R={};o&2&&(R.$$scope={dirty:o,ctx:e}),te.$set(R);const W={};o&2&&(W.$$scope={dirty:o,ctx:e}),ne.$set(W);const Ht={};o&2&&(Ht.$$scope={dirty:o,ctx:e}),se.$set(Ht);const K={};o&2&&(K.$$scope={dirty:o,ctx:e}),ae.$set(K);const Ze={};o&2&&(Ze.$$scope={dirty:o,ctx:e}),ie.$set(Ze);const Y={};o&2&&(Y.$$scope={dirty:o,ctx:e}),de.$set(Y)},i(e){_o||(f(L.$$.fragment,e),f(me.$$.fragment,e),f(fe.$$.fragment,e),f(ue.$$.fragment,e),f(ge.$$.fragment,e),f(he.$$.fragment,e),f(_e.$$.fragment,e),f(te.$$.fragment,e),f(be.$$.fragment,e),f(ve.$$.fragment,e),f(ne.$$.fragment,e),f($e.$$.fragment,e),f(xe.$$.fragment,e),f(ye.$$.fragment,e),f(Te.$$.fragment,e),f(we.$$.fragment,e),f(Ce.$$.fragment,e),f(ke.$$.fragment,e),f(se.$$.fragment,e),f(Le.$$.fragment,e),f(De.$$.fragment,e),f(Pe.$$.fragment,e),f(ze.$$.fragment,e),f(Fe.$$.fragment,e),f(Se.$$.fragment,e),f(qe.$$.fragment,e),f(Me.$$.fragment,e),f(je.$$.fragment,e),f(ae.$$.fragment,e),f(Ae.$$.fragment,e),f(ie.$$.fragment,e),f(Ie.$$.fragment,e),f(He.$$.fragment,e),f(Ee.$$.fragment,e),f(Ve.$$.fragment,e),f(de.$$.fragment,e),f(Oe.$$.fragment,e),f(Ne.$$.fragment,e),f(Je.$$.fragment,e),f(Ge.$$.fragment,e),_o=!0)},o(e){u(L.$$.fragment,e),u(me.$$.fragment,e),u(fe.$$.fragment,e),u(ue.$$.fragment,e),u(ge.$$.fragment,e),u(he.$$.fragment,e),u(_e.$$.fragment,e),u(te.$$.fragment,e),u(be.$$.fragment,e),u(ve.$$.fragment,e),u(ne.$$.fragment,e),u($e.$$.fragment,e),u(xe.$$.fragment,e),u(ye.$$.fragment,e),u(Te.$$.fragment,e),u(we.$$.fragment,e),u(Ce.$$.fragment,e),u(ke.$$.fragment,e),u(se.$$.fragment,e),u(Le.$$.fragment,e),u(De.$$.fragment,e),u(Pe.$$.fragment,e),u(ze.$$.fragment,e),u(Fe.$$.fragment,e),u(Se.$$.fragment,e),u(qe.$$.fragment,e),u(Me.$$.fragment,e),u(je.$$.fragment,e),u(ae.$$.fragment,e),u(Ae.$$.fragment,e),u(ie.$$.fragment,e),u(Ie.$$.fragment,e),u(He.$$.fragment,e),u(Ee.$$.fragment,e),u(Ve.$$.fragment,e),u(de.$$.fragment,e),u(Oe.$$.fragment,e),u(Ne.$$.fragment,e),u(Je.$$.fragment,e),u(Ge.$$.fragment,e),_o=!1},d(e){e&&(t(x),t(h),t(y),t(T),t(D),t(Vt),t(pe),t(Ot),t(Nt),t(P),t(Jt),t(z),t(Gt),t(F),t(Zt),t(S),t(Qt),t(N),t(Bt),t(q),t(Ut),t(M),t(Xt),t(Rt),t(C),t(Wt),t(J),t(Kt),t(j),t(Yt),t(A),t(eo),t(I),t(to),t(oo),t(H),t(no),t(G),t(ro),t(so),t(E),t(ao),t(V),t(io),t(Z),t(lo),t(Q),t(co),t(B),t(po),t(O),t(mo),t(fo),t(U),t(uo),t(k),t(go),t(X),t(ho),t(It)),t(l),g(L,e),g(me,e),g(fe),g(ue),g(ge),g(he),g(_e),g(te),g(be),g(ve),g(ne),g($e),g(xe),g(ye),g(Te),g(we),g(Ce,e),g(ke),g(se),g(Le),g(De),g(Pe),g(ze),g(Fe,e),g(Se),g(qe),g(Me,e),g(je),g(ae),g(Ae),g(ie),g(Ie),g(He),g(Ee),g(Ve),g(de),g(Oe,e),g(Ne),g(Je),g(Ge)}}}const fr='{"title":"カスタムレイヤーとユーティリティ","local":"カスタムレイヤーとユーティリティ","sections":[{"title":"Pytorch custom modules","local":"transformers.Conv1D","sections":[],"depth":2},{"title":"PyTorch Helper Functions","local":"transformers.apply_chunking_to_forward","sections":[],"depth":2},{"title":"TensorFlow custom layers","local":"transformers.modeling_tf_utils.TFConv1D","sections":[],"depth":2},{"title":"TensorFlow loss functions","local":"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss","sections":[],"depth":2},{"title":"TensorFlow Helper Functions","local":"transformers.modeling_tf_utils.get_initializer","sections":[],"depth":2}],"depth":1}';function ur(w){return er(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yr extends tr{constructor(l){super(),or(this,l,ur,mr,Yn,{})}}export{yr as component};
