import{s as tr,o as or,n as Et}from"../chunks/scheduler.bdbef820.js";import{S as nr,i as rr,g as a,s as r,r as c,A as sr,h as i,f as t,c as s,j as b,u as m,x as h,k as v,y as n,a as d,v as p,d as f,t as u,w as g}from"../chunks/index.33f81d56.js";import{T as jt}from"../chunks/Tip.34194030.js";import{D as $}from"../chunks/Docstring.64554317.js";import{C as ar}from"../chunks/CodeBlock.362b34a4.js";import{E as ir}from"../chunks/ExampleCodeBlock.4f2252c6.js";import{H as It,E as dr}from"../chunks/EditOnGithub.a9246e21.js";function lr(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(_){l=i(_,"P",{"data-svelte-h":!0}),h(l)!=="svelte-1oii8ff"&&(l.innerHTML=x)},m(_,y){d(_,l,y)},p:Et,d(_){_&&t(l)}}}function cr(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(_){l=i(_,"P",{"data-svelte-h":!0}),h(l)!=="svelte-1oii8ff"&&(l.innerHTML=x)},m(_,y){d(_,l,y)},p:Et,d(_){_&&t(l)}}}function mr(w){let l,x="Examples:",_,y,L;return y=new ar({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,_=r(),c(y.$$.fragment)},l(T){l=i(T,"P",{"data-svelte-h":!0}),h(l)!=="svelte-kvfsh7"&&(l.textContent=x),_=s(T),m(y.$$.fragment,T)},m(T,D){d(T,l,D),d(T,_,D),p(y,T,D),L=!0},p:Et,i(T){L||(f(y.$$.fragment,T),L=!0)},o(T){u(y.$$.fragment,T),L=!1},d(T){T&&(t(l),t(_)),g(y,T)}}}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(_){l=i(_,"P",{"data-svelte-h":!0}),h(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(_,y){d(_,l,y)},p:Et,d(_){_&&t(l)}}}function fr(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(_){l=i(_,"P",{"data-svelte-h":!0}),h(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(_,y){d(_,l,y)},p:Et,d(_){_&&t(l)}}}function ur(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(_){l=i(_,"P",{"data-svelte-h":!0}),h(l)!=="svelte-14hlsz0"&&(l.textContent=x)},m(_,y){d(_,l,y)},p:Et,d(_){_&&t(l)}}}function gr(w){let l,x,_,y,L,T,D,$n="이 페이지는 라이브러리에서 사용되는 사용자 정의 레이어와 모델링을 위한 유틸리티 함수들을 나열합니다.",Ot,me,xn="이 함수들 대부분은 라이브러리 내의 모델 코드를 연구할 때만 유용합니다.",Nt,pe,Gt,z,fe,Po,Be,yn="1D-convolutional layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2).",Fo,Ue,Tn="Basically works like a linear layer but the weights are transposed.",Jt,P,ue,qo,Xe,wn="Compute SQuAD start logits from sequence hidden states.",So,Re,ge,Zt,F,_e,Mo,We,kn="Compute SQuAD end logits from sequence hidden states.",Ao,ee,he,Io,te,Qt,q,be,Eo,Ke,Cn="Compute SQuAD 2.0 answer class from classification and start tokens hidden states.",Ho,oe,ve,Vo,ne,Bt,N,$e,jo,Ye,Ln='Base class for outputs of question answering models using a <a href="/docs/transformers/pr_22105/ko/internal/modeling_utils#transformers.modeling_utils.SQuADHead">SQuADHead</a>.',Ut,S,xe,Oo,et,Dn="A SQuAD head inspired by XLNet.",No,tt,ye,Xt,M,Te,Go,ot,zn="Compute a single vector summary of a sequence hidden states.",Jo,re,we,Zo,nt,Pn="Compute a single vector summary of a sequence hidden states.",Rt,ke,Wt,k,Ce,Qo,rt,Fn=`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.`,Bo,st,qn=`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>.`,Uo,se,Kt,G,Le,Xo,at,Sn="Finds the heads and their indices taking <code>already_pruned_heads</code> into account.",Yt,A,De,Ro,it,Mn="Prune a Conv1D or linear layer to keep only entries in index.",Wo,dt,An="Used to remove heads.",eo,I,ze,Ko,lt,In=`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.`,Yo,ct,En="Used to remove heads.",to,E,Pe,en,mt,Hn="Prune a linear layer to keep only entries in index.",tn,pt,Vn="Used to remove heads.",oo,Fe,no,H,qe,on,ft,jn="1D-convolutional layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2).",nn,ut,On="Basically works like a linear layer but the weights are transposed.",ro,J,Se,rn,gt,Nn="Compute a single vector summary of a sequence hidden states.",so,Me,ao,V,Ae,sn,_t,Gn="Loss function suitable for causal language modeling (CLM), that is, the task of guessing the next token.",an,ae,io,j,Ie,dn,ht,Jn="Loss function suitable for masked language modeling (MLM), that is, the task of guessing the masked tokens.",ln,ie,lo,Z,Ee,cn,bt,Zn="Loss function suitable for multiple choice tasks.",co,Q,He,mn,vt,Qn="Loss function suitable for question answering.",mo,B,Ve,pn,$t,Bn="Loss function suitable for sequence classification.",po,O,je,fn,xt,Un="Loss function suitable for token classification.",un,de,fo,Oe,uo,U,Ne,gn,yt,Xn="Creates a <code>keras.initializers.TruncatedNormal</code> with the given range.",go,C,Ge,_n,Tt,Rn="Decorate a Keras Layer class to support Keras serialization.",hn,wt,Wn="This is done by:",bn,kt,Kn=`<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>keras.models.load_model</code>.</li>`,_o,X,Je,vn,Ct,Yn="Deal with dynamic shape in tensorflow cleanly.",ho,Ze,bo,Ht,vo;return L=new It({props:{title:"사용자 정의 레이어 및 유틸리티",local:"custom-layers-and-utilities",headingTag:"h1"}}),pe=new It({props:{title:"PyTorch 사용자 정의 모듈",local:"transformers.Conv1D ][ 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/vr_22105/src/transformers/pytorch_utils.py#L95"}}),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/pr_22105/ko/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/vr_22105/src/transformers/modeling_utils.py#L5094"}}),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/vr_22105/src/transformers/modeling_utils.py#L5107",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>
`}}),_e=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/pr_22105/ko/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/vr_22105/src/transformers/modeling_utils.py#L5132"}}),he=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/vr_22105/src/transformers/modeling_utils.py#L5149",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 jt({props:{$$slots:{default:[lr]},$$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/pr_22105/ko/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/vr_22105/src/transformers/modeling_utils.py#L5201"}}),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/vr_22105/src/transformers/modeling_utils.py#L5216",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 jt({props:{$$slots:{default:[cr]},$$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/vr_22105/src/transformers/modeling_utils.py#L5266"}}),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/pr_22105/ko/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/vr_22105/src/transformers/modeling_utils.py#L5297"}}),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/pr_22105/ko/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_utils.py#L5316",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_22105/ko/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/pr_22105/ko/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/pr_22105/ko/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/vr_22105/src/transformers/modeling_utils.py#L5414"}}),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/vr_22105/src/transformers/modeling_utils.py#L5469",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>
`}}),ke=new It({props:{title:"PyTorch 헬퍼(helper) 함수",local:"transformers.apply_chunking_to_forward ][ transformers.apply_chunking_to_forward",headingTag:"h2"}}),Ce=new $({props:{name:"transformers.apply_chunking_to_forward",anchor:"transformers.apply_chunking_to_forward",parameters:[{name:"forward_fn",val:": 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/vr_22105/src/transformers/pytorch_utils.py#L181",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 ir({props:{anchor:"transformers.apply_chunking_to_forward.example",$$slots:{default:[mr]},$$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:": List[int]"},{name:"n_heads",val:": int"},{name:"head_size",val:": int"},{name:"already_pruned_heads",val:": 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/vr_22105/src/transformers/pytorch_utils.py#L259",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:": Union[nn.Linear, Conv1D]"},{name:"index",val:": torch.LongTensor"},{name:"dim",val:": 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/vr_22105/src/transformers/pytorch_utils.py#L157",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/pr_22105/ko/internal/modeling_utils#transformers.Conv1D"
>Conv1D</a></p>
`}}),ze=new $({props:{name:"transformers.pytorch_utils.prune_conv1d_layer",anchor:"transformers.pytorch_utils.prune_conv1d_layer",parameters:[{name:"layer",val:": Conv1D"},{name:"index",val:": torch.LongTensor"},{name:"dim",val:": int = 1"}],parametersDescription:[{anchor:"transformers.pytorch_utils.prune_conv1d_layer.layer",description:'<strong>layer</strong> (<a href="/docs/transformers/pr_22105/ko/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/vr_22105/src/transformers/pytorch_utils.py#L124",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/pr_22105/ko/internal/modeling_utils#transformers.Conv1D"
>Conv1D</a></p>
`}}),Pe=new $({props:{name:"transformers.pytorch_utils.prune_linear_layer",anchor:"transformers.pytorch_utils.prune_linear_layer",parameters:[{name:"layer",val:": nn.Linear"},{name:"index",val:": torch.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/vr_22105/src/transformers/pytorch_utils.py#L61",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 It({props:{title:"TensorFlow 사용자 정의 레이어",local:"transformers.modeling_tf_utils.TFConv1D ][ transformers.modeling_tf_utils.TFConv1D",headingTag:"h2"}}),qe=new $({props:{name:"class transformers.modeling_tf_utils.TFConv1D",anchor:"transformers.modeling_tf_utils.TFConv1D",parameters:[{name:"nf",val:""},{name:"nx",val:""},{name:"initializer_range",val:" = 0.02"},{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>keras.layers.Layer</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L3273"}}),Se=new $({props:{name:"class transformers.TFSequenceSummary",anchor:"transformers.TFSequenceSummary",parameters:[{name:"config",val:": PretrainedConfig"},{name:"initializer_range",val:": float = 0.02"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFSequenceSummary.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_22105/ko/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>, <em>optional</em>, 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>keras.layers.Layer</code>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L3420"}}),Me=new It({props:{title:"TensorFlow 손실 함수",local:"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss ][ transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",headingTag:"h2"}}),Ae=new $({props:{name:"class transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",anchor:"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L213"}}),ae=new jt({props:{$$slots:{default:[pr]},$$scope:{ctx:w}}}),Ie=new $({props:{name:"class transformers.modeling_tf_utils.TFMaskedLanguageModelingLoss",anchor:"transformers.modeling_tf_utils.TFMaskedLanguageModelingLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L324"}}),ie=new jt({props:{$$slots:{default:[fr]},$$scope:{ctx:w}}}),Ee=new $({props:{name:"class transformers.modeling_tf_utils.TFMultipleChoiceLoss",anchor:"transformers.modeling_tf_utils.TFMultipleChoiceLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L316"}}),He=new $({props:{name:"class transformers.modeling_tf_utils.TFQuestionAnsweringLoss",anchor:"transformers.modeling_tf_utils.TFQuestionAnsweringLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L242"}}),Ve=new $({props:{name:"class transformers.modeling_tf_utils.TFSequenceClassificationLoss",anchor:"transformers.modeling_tf_utils.TFSequenceClassificationLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L297"}}),je=new $({props:{name:"class transformers.modeling_tf_utils.TFTokenClassificationLoss",anchor:"transformers.modeling_tf_utils.TFTokenClassificationLoss",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/modeling_tf_utils.py#L255"}}),de=new jt({props:{$$slots:{default:[ur]},$$scope:{ctx:w}}}),Oe=new It({props:{title:"TensorFlow 도우미 함수",local:"transformers.modeling_tf_utils.get_initializer ][ 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/vr_22105/src/transformers/modeling_tf_utils.py#L3545",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>keras.initializers.TruncatedNormal</code></p>
`}}),Ge=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>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/vr_22105/src/transformers/modeling_tf_utils.py#L148",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The same class object, with modifications for Keras deserialization.</p>
`}}),Je=new $({props:{name:"transformers.shape_list",anchor:"transformers.shape_list",parameters:[{name:"tensor",val:": typing.Union[tensorflow.python.framework.tensor.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/vr_22105/src/transformers/tf_utils.py#L28",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>
`}}),Ze=new dr({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/internal/modeling_utils.md"}}),{c(){l=a("meta"),x=r(),_=a("p"),y=r(),c(L.$$.fragment),T=r(),D=a("p"),D.textContent=$n,Ot=r(),me=a("p"),me.textContent=xn,Nt=r(),c(pe.$$.fragment),Gt=r(),z=a("div"),c(fe.$$.fragment),Po=r(),Be=a("p"),Be.textContent=yn,Fo=r(),Ue=a("p"),Ue.textContent=Tn,Jt=r(),P=a("div"),c(ue.$$.fragment),qo=r(),Xe=a("p"),Xe.textContent=wn,So=r(),Re=a("div"),c(ge.$$.fragment),Zt=r(),F=a("div"),c(_e.$$.fragment),Mo=r(),We=a("p"),We.textContent=kn,Ao=r(),ee=a("div"),c(he.$$.fragment),Io=r(),c(te.$$.fragment),Qt=r(),q=a("div"),c(be.$$.fragment),Eo=r(),Ke=a("p"),Ke.textContent=Cn,Ho=r(),oe=a("div"),c(ve.$$.fragment),Vo=r(),c(ne.$$.fragment),Bt=r(),N=a("div"),c($e.$$.fragment),jo=r(),Ye=a("p"),Ye.innerHTML=Ln,Ut=r(),S=a("div"),c(xe.$$.fragment),Oo=r(),et=a("p"),et.textContent=Dn,No=r(),tt=a("div"),c(ye.$$.fragment),Xt=r(),M=a("div"),c(Te.$$.fragment),Go=r(),ot=a("p"),ot.textContent=zn,Jo=r(),re=a("div"),c(we.$$.fragment),Zo=r(),nt=a("p"),nt.textContent=Pn,Rt=r(),c(ke.$$.fragment),Wt=r(),k=a("div"),c(Ce.$$.fragment),Qo=r(),rt=a("p"),rt.innerHTML=Fn,Bo=r(),st=a("p"),st.innerHTML=qn,Uo=r(),c(se.$$.fragment),Kt=r(),G=a("div"),c(Le.$$.fragment),Xo=r(),at=a("p"),at.innerHTML=Sn,Yt=r(),A=a("div"),c(De.$$.fragment),Ro=r(),it=a("p"),it.textContent=Mn,Wo=r(),dt=a("p"),dt.textContent=An,eo=r(),I=a("div"),c(ze.$$.fragment),Ko=r(),lt=a("p"),lt.textContent=In,Yo=r(),ct=a("p"),ct.textContent=En,to=r(),E=a("div"),c(Pe.$$.fragment),en=r(),mt=a("p"),mt.textContent=Hn,tn=r(),pt=a("p"),pt.textContent=Vn,oo=r(),c(Fe.$$.fragment),no=r(),H=a("div"),c(qe.$$.fragment),on=r(),ft=a("p"),ft.textContent=jn,nn=r(),ut=a("p"),ut.textContent=On,ro=r(),J=a("div"),c(Se.$$.fragment),rn=r(),gt=a("p"),gt.textContent=Nn,so=r(),c(Me.$$.fragment),ao=r(),V=a("div"),c(Ae.$$.fragment),sn=r(),_t=a("p"),_t.textContent=Gn,an=r(),c(ae.$$.fragment),io=r(),j=a("div"),c(Ie.$$.fragment),dn=r(),ht=a("p"),ht.textContent=Jn,ln=r(),c(ie.$$.fragment),lo=r(),Z=a("div"),c(Ee.$$.fragment),cn=r(),bt=a("p"),bt.textContent=Zn,co=r(),Q=a("div"),c(He.$$.fragment),mn=r(),vt=a("p"),vt.textContent=Qn,mo=r(),B=a("div"),c(Ve.$$.fragment),pn=r(),$t=a("p"),$t.textContent=Bn,po=r(),O=a("div"),c(je.$$.fragment),fn=r(),xt=a("p"),xt.textContent=Un,un=r(),c(de.$$.fragment),fo=r(),c(Oe.$$.fragment),uo=r(),U=a("div"),c(Ne.$$.fragment),gn=r(),yt=a("p"),yt.innerHTML=Xn,go=r(),C=a("div"),c(Ge.$$.fragment),_n=r(),Tt=a("p"),Tt.textContent=Rn,hn=r(),wt=a("p"),wt.textContent=Wn,bn=r(),kt=a("ol"),kt.innerHTML=Kn,_o=r(),X=a("div"),c(Je.$$.fragment),vn=r(),Ct=a("p"),Ct.textContent=Yn,ho=r(),c(Ze.$$.fragment),bo=r(),Ht=a("p"),this.h()},l(e){const o=sr("svelte-u9bgzb",document.head);l=i(o,"META",{name:!0,content:!0}),o.forEach(t),x=s(e),_=i(e,"P",{}),b(_).forEach(t),y=s(e),m(L.$$.fragment,e),T=s(e),D=i(e,"P",{"data-svelte-h":!0}),h(D)!=="svelte-1jwgmb"&&(D.textContent=$n),Ot=s(e),me=i(e,"P",{"data-svelte-h":!0}),h(me)!=="svelte-441d4c"&&(me.textContent=xn),Nt=s(e),m(pe.$$.fragment,e),Gt=s(e),z=i(e,"DIV",{class:!0});var R=b(z);m(fe.$$.fragment,R),Po=s(R),Be=i(R,"P",{"data-svelte-h":!0}),h(Be)!=="svelte-1lta4gb"&&(Be.textContent=yn),Fo=s(R),Ue=i(R,"P",{"data-svelte-h":!0}),h(Ue)!=="svelte-6u0wx8"&&(Ue.textContent=Tn),R.forEach(t),Jt=s(e),P=i(e,"DIV",{class:!0});var W=b(P);m(ue.$$.fragment,W),qo=s(W),Xe=i(W,"P",{"data-svelte-h":!0}),h(Xe)!=="svelte-nykzs4"&&(Xe.textContent=wn),So=s(W),Re=i(W,"DIV",{class:!0});var Vt=b(Re);m(ge.$$.fragment,Vt),Vt.forEach(t),W.forEach(t),Zt=s(e),F=i(e,"DIV",{class:!0});var K=b(F);m(_e.$$.fragment,K),Mo=s(K),We=i(K,"P",{"data-svelte-h":!0}),h(We)!=="svelte-1xgtkjp"&&(We.textContent=kn),Ao=s(K),ee=i(K,"DIV",{class:!0});var Qe=b(ee);m(he.$$.fragment,Qe),Io=s(Qe),m(te.$$.fragment,Qe),Qe.forEach(t),K.forEach(t),Qt=s(e),q=i(e,"DIV",{class:!0});var Y=b(q);m(be.$$.fragment,Y),Eo=s(Y),Ke=i(Y,"P",{"data-svelte-h":!0}),h(Ke)!=="svelte-i1ac0w"&&(Ke.textContent=Cn),Ho=s(Y),oe=i(Y,"DIV",{class:!0});var $o=b(oe);m(ve.$$.fragment,$o),Vo=s($o),m(ne.$$.fragment,$o),$o.forEach(t),Y.forEach(t),Bt=s(e),N=i(e,"DIV",{class:!0});var xo=b(N);m($e.$$.fragment,xo),jo=s(xo),Ye=i(xo,"P",{"data-svelte-h":!0}),h(Ye)!=="svelte-pz4qlf"&&(Ye.innerHTML=Ln),xo.forEach(t),Ut=s(e),S=i(e,"DIV",{class:!0});var Lt=b(S);m(xe.$$.fragment,Lt),Oo=s(Lt),et=i(Lt,"P",{"data-svelte-h":!0}),h(et)!=="svelte-vm79b9"&&(et.textContent=Dn),No=s(Lt),tt=i(Lt,"DIV",{class:!0});var er=b(tt);m(ye.$$.fragment,er),er.forEach(t),Lt.forEach(t),Xt=s(e),M=i(e,"DIV",{class:!0});var Dt=b(M);m(Te.$$.fragment,Dt),Go=s(Dt),ot=i(Dt,"P",{"data-svelte-h":!0}),h(ot)!=="svelte-1cor2i2"&&(ot.textContent=zn),Jo=s(Dt),re=i(Dt,"DIV",{class:!0});var yo=b(re);m(we.$$.fragment,yo),Zo=s(yo),nt=i(yo,"P",{"data-svelte-h":!0}),h(nt)!=="svelte-1cor2i2"&&(nt.textContent=Pn),yo.forEach(t),Dt.forEach(t),Rt=s(e),m(ke.$$.fragment,e),Wt=s(e),k=i(e,"DIV",{class:!0});var le=b(k);m(Ce.$$.fragment,le),Qo=s(le),rt=i(le,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-16kfis2"&&(rt.innerHTML=Fn),Bo=s(le),st=i(le,"P",{"data-svelte-h":!0}),h(st)!=="svelte-1ufp6tv"&&(st.innerHTML=qn),Uo=s(le),m(se.$$.fragment,le),le.forEach(t),Kt=s(e),G=i(e,"DIV",{class:!0});var To=b(G);m(Le.$$.fragment,To),Xo=s(To),at=i(To,"P",{"data-svelte-h":!0}),h(at)!=="svelte-o28a6l"&&(at.innerHTML=Sn),To.forEach(t),Yt=s(e),A=i(e,"DIV",{class:!0});var zt=b(A);m(De.$$.fragment,zt),Ro=s(zt),it=i(zt,"P",{"data-svelte-h":!0}),h(it)!=="svelte-by2rhc"&&(it.textContent=Mn),Wo=s(zt),dt=i(zt,"P",{"data-svelte-h":!0}),h(dt)!=="svelte-14zrzk1"&&(dt.textContent=An),zt.forEach(t),eo=s(e),I=i(e,"DIV",{class:!0});var Pt=b(I);m(ze.$$.fragment,Pt),Ko=s(Pt),lt=i(Pt,"P",{"data-svelte-h":!0}),h(lt)!=="svelte-1xogpwx"&&(lt.textContent=In),Yo=s(Pt),ct=i(Pt,"P",{"data-svelte-h":!0}),h(ct)!=="svelte-14zrzk1"&&(ct.textContent=En),Pt.forEach(t),to=s(e),E=i(e,"DIV",{class:!0});var Ft=b(E);m(Pe.$$.fragment,Ft),en=s(Ft),mt=i(Ft,"P",{"data-svelte-h":!0}),h(mt)!=="svelte-1edz4x0"&&(mt.textContent=Hn),tn=s(Ft),pt=i(Ft,"P",{"data-svelte-h":!0}),h(pt)!=="svelte-14zrzk1"&&(pt.textContent=Vn),Ft.forEach(t),oo=s(e),m(Fe.$$.fragment,e),no=s(e),H=i(e,"DIV",{class:!0});var qt=b(H);m(qe.$$.fragment,qt),on=s(qt),ft=i(qt,"P",{"data-svelte-h":!0}),h(ft)!=="svelte-1lta4gb"&&(ft.textContent=jn),nn=s(qt),ut=i(qt,"P",{"data-svelte-h":!0}),h(ut)!=="svelte-6u0wx8"&&(ut.textContent=On),qt.forEach(t),ro=s(e),J=i(e,"DIV",{class:!0});var wo=b(J);m(Se.$$.fragment,wo),rn=s(wo),gt=i(wo,"P",{"data-svelte-h":!0}),h(gt)!=="svelte-1cor2i2"&&(gt.textContent=Nn),wo.forEach(t),so=s(e),m(Me.$$.fragment,e),ao=s(e),V=i(e,"DIV",{class:!0});var St=b(V);m(Ae.$$.fragment,St),sn=s(St),_t=i(St,"P",{"data-svelte-h":!0}),h(_t)!=="svelte-1obn9c"&&(_t.textContent=Gn),an=s(St),m(ae.$$.fragment,St),St.forEach(t),io=s(e),j=i(e,"DIV",{class:!0});var Mt=b(j);m(Ie.$$.fragment,Mt),dn=s(Mt),ht=i(Mt,"P",{"data-svelte-h":!0}),h(ht)!=="svelte-16f7wip"&&(ht.textContent=Jn),ln=s(Mt),m(ie.$$.fragment,Mt),Mt.forEach(t),lo=s(e),Z=i(e,"DIV",{class:!0});var ko=b(Z);m(Ee.$$.fragment,ko),cn=s(ko),bt=i(ko,"P",{"data-svelte-h":!0}),h(bt)!=="svelte-yqule2"&&(bt.textContent=Zn),ko.forEach(t),co=s(e),Q=i(e,"DIV",{class:!0});var Co=b(Q);m(He.$$.fragment,Co),mn=s(Co),vt=i(Co,"P",{"data-svelte-h":!0}),h(vt)!=="svelte-1mrk13b"&&(vt.textContent=Qn),Co.forEach(t),mo=s(e),B=i(e,"DIV",{class:!0});var Lo=b(B);m(Ve.$$.fragment,Lo),pn=s(Lo),$t=i(Lo,"P",{"data-svelte-h":!0}),h($t)!=="svelte-13vmm2k"&&($t.textContent=Bn),Lo.forEach(t),po=s(e),O=i(e,"DIV",{class:!0});var At=b(O);m(je.$$.fragment,At),fn=s(At),xt=i(At,"P",{"data-svelte-h":!0}),h(xt)!=="svelte-biydvq"&&(xt.textContent=Un),un=s(At),m(de.$$.fragment,At),At.forEach(t),fo=s(e),m(Oe.$$.fragment,e),uo=s(e),U=i(e,"DIV",{class:!0});var Do=b(U);m(Ne.$$.fragment,Do),gn=s(Do),yt=i(Do,"P",{"data-svelte-h":!0}),h(yt)!=="svelte-xpqleu"&&(yt.innerHTML=Xn),Do.forEach(t),go=s(e),C=i(e,"DIV",{class:!0});var ce=b(C);m(Ge.$$.fragment,ce),_n=s(ce),Tt=i(ce,"P",{"data-svelte-h":!0}),h(Tt)!=="svelte-5ynxmr"&&(Tt.textContent=Rn),hn=s(ce),wt=i(ce,"P",{"data-svelte-h":!0}),h(wt)!=="svelte-19x4elj"&&(wt.textContent=Wn),bn=s(ce),kt=i(ce,"OL",{"data-svelte-h":!0}),h(kt)!=="svelte-16g9ved"&&(kt.innerHTML=Kn),ce.forEach(t),_o=s(e),X=i(e,"DIV",{class:!0});var zo=b(X);m(Je.$$.fragment,zo),vn=s(zo),Ct=i(zo,"P",{"data-svelte-h":!0}),h(Ct)!=="svelte-pubhri"&&(Ct.textContent=Yn),zo.forEach(t),ho=s(e),m(Ze.$$.fragment,e),bo=s(e),Ht=i(e,"P",{}),b(Ht).forEach(t),this.h()},h(){v(l,"name","hf:doc:metadata"),v(l,"content",_r),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(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(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(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(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(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(tt,"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(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(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(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(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(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(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(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(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(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(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(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(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,_,o),d(e,y,o),p(L,e,o),d(e,T,o),d(e,D,o),d(e,Ot,o),d(e,me,o),d(e,Nt,o),p(pe,e,o),d(e,Gt,o),d(e,z,o),p(fe,z,null),n(z,Po),n(z,Be),n(z,Fo),n(z,Ue),d(e,Jt,o),d(e,P,o),p(ue,P,null),n(P,qo),n(P,Xe),n(P,So),n(P,Re),p(ge,Re,null),d(e,Zt,o),d(e,F,o),p(_e,F,null),n(F,Mo),n(F,We),n(F,Ao),n(F,ee),p(he,ee,null),n(ee,Io),p(te,ee,null),d(e,Qt,o),d(e,q,o),p(be,q,null),n(q,Eo),n(q,Ke),n(q,Ho),n(q,oe),p(ve,oe,null),n(oe,Vo),p(ne,oe,null),d(e,Bt,o),d(e,N,o),p($e,N,null),n(N,jo),n(N,Ye),d(e,Ut,o),d(e,S,o),p(xe,S,null),n(S,Oo),n(S,et),n(S,No),n(S,tt),p(ye,tt,null),d(e,Xt,o),d(e,M,o),p(Te,M,null),n(M,Go),n(M,ot),n(M,Jo),n(M,re),p(we,re,null),n(re,Zo),n(re,nt),d(e,Rt,o),p(ke,e,o),d(e,Wt,o),d(e,k,o),p(Ce,k,null),n(k,Qo),n(k,rt),n(k,Bo),n(k,st),n(k,Uo),p(se,k,null),d(e,Kt,o),d(e,G,o),p(Le,G,null),n(G,Xo),n(G,at),d(e,Yt,o),d(e,A,o),p(De,A,null),n(A,Ro),n(A,it),n(A,Wo),n(A,dt),d(e,eo,o),d(e,I,o),p(ze,I,null),n(I,Ko),n(I,lt),n(I,Yo),n(I,ct),d(e,to,o),d(e,E,o),p(Pe,E,null),n(E,en),n(E,mt),n(E,tn),n(E,pt),d(e,oo,o),p(Fe,e,o),d(e,no,o),d(e,H,o),p(qe,H,null),n(H,on),n(H,ft),n(H,nn),n(H,ut),d(e,ro,o),d(e,J,o),p(Se,J,null),n(J,rn),n(J,gt),d(e,so,o),p(Me,e,o),d(e,ao,o),d(e,V,o),p(Ae,V,null),n(V,sn),n(V,_t),n(V,an),p(ae,V,null),d(e,io,o),d(e,j,o),p(Ie,j,null),n(j,dn),n(j,ht),n(j,ln),p(ie,j,null),d(e,lo,o),d(e,Z,o),p(Ee,Z,null),n(Z,cn),n(Z,bt),d(e,co,o),d(e,Q,o),p(He,Q,null),n(Q,mn),n(Q,vt),d(e,mo,o),d(e,B,o),p(Ve,B,null),n(B,pn),n(B,$t),d(e,po,o),d(e,O,o),p(je,O,null),n(O,fn),n(O,xt),n(O,un),p(de,O,null),d(e,fo,o),p(Oe,e,o),d(e,uo,o),d(e,U,o),p(Ne,U,null),n(U,gn),n(U,yt),d(e,go,o),d(e,C,o),p(Ge,C,null),n(C,_n),n(C,Tt),n(C,hn),n(C,wt),n(C,bn),n(C,kt),d(e,_o,o),d(e,X,o),p(Je,X,null),n(X,vn),n(X,Ct),d(e,ho,o),p(Ze,e,o),d(e,bo,o),d(e,Ht,o),vo=!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 Vt={};o&2&&(Vt.$$scope={dirty:o,ctx:e}),se.$set(Vt);const K={};o&2&&(K.$$scope={dirty:o,ctx:e}),ae.$set(K);const Qe={};o&2&&(Qe.$$scope={dirty:o,ctx:e}),ie.$set(Qe);const Y={};o&2&&(Y.$$scope={dirty:o,ctx:e}),de.$set(Y)},i(e){vo||(f(L.$$.fragment,e),f(pe.$$.fragment,e),f(fe.$$.fragment,e),f(ue.$$.fragment,e),f(ge.$$.fragment,e),f(_e.$$.fragment,e),f(he.$$.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(ke.$$.fragment,e),f(Ce.$$.fragment,e),f(se.$$.fragment,e),f(Le.$$.fragment,e),f(De.$$.fragment,e),f(ze.$$.fragment,e),f(Pe.$$.fragment,e),f(Fe.$$.fragment,e),f(qe.$$.fragment,e),f(Se.$$.fragment,e),f(Me.$$.fragment,e),f(Ae.$$.fragment,e),f(ae.$$.fragment,e),f(Ie.$$.fragment,e),f(ie.$$.fragment,e),f(Ee.$$.fragment,e),f(He.$$.fragment,e),f(Ve.$$.fragment,e),f(je.$$.fragment,e),f(de.$$.fragment,e),f(Oe.$$.fragment,e),f(Ne.$$.fragment,e),f(Ge.$$.fragment,e),f(Je.$$.fragment,e),f(Ze.$$.fragment,e),vo=!0)},o(e){u(L.$$.fragment,e),u(pe.$$.fragment,e),u(fe.$$.fragment,e),u(ue.$$.fragment,e),u(ge.$$.fragment,e),u(_e.$$.fragment,e),u(he.$$.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(ke.$$.fragment,e),u(Ce.$$.fragment,e),u(se.$$.fragment,e),u(Le.$$.fragment,e),u(De.$$.fragment,e),u(ze.$$.fragment,e),u(Pe.$$.fragment,e),u(Fe.$$.fragment,e),u(qe.$$.fragment,e),u(Se.$$.fragment,e),u(Me.$$.fragment,e),u(Ae.$$.fragment,e),u(ae.$$.fragment,e),u(Ie.$$.fragment,e),u(ie.$$.fragment,e),u(Ee.$$.fragment,e),u(He.$$.fragment,e),u(Ve.$$.fragment,e),u(je.$$.fragment,e),u(de.$$.fragment,e),u(Oe.$$.fragment,e),u(Ne.$$.fragment,e),u(Ge.$$.fragment,e),u(Je.$$.fragment,e),u(Ze.$$.fragment,e),vo=!1},d(e){e&&(t(x),t(_),t(y),t(T),t(D),t(Ot),t(me),t(Nt),t(Gt),t(z),t(Jt),t(P),t(Zt),t(F),t(Qt),t(q),t(Bt),t(N),t(Ut),t(S),t(Xt),t(M),t(Rt),t(Wt),t(k),t(Kt),t(G),t(Yt),t(A),t(eo),t(I),t(to),t(E),t(oo),t(no),t(H),t(ro),t(J),t(so),t(ao),t(V),t(io),t(j),t(lo),t(Z),t(co),t(Q),t(mo),t(B),t(po),t(O),t(fo),t(uo),t(U),t(go),t(C),t(_o),t(X),t(ho),t(bo),t(Ht)),t(l),g(L,e),g(pe,e),g(fe),g(ue),g(ge),g(_e),g(he),g(te),g(be),g(ve),g(ne),g($e),g(xe),g(ye),g(Te),g(we),g(ke,e),g(Ce),g(se),g(Le),g(De),g(ze),g(Pe),g(Fe,e),g(qe),g(Se),g(Me,e),g(Ae),g(ae),g(Ie),g(ie),g(Ee),g(He),g(Ve),g(je),g(de),g(Oe,e),g(Ne),g(Ge),g(Je),g(Ze,e)}}}const _r='{"title":"사용자 정의 레이어 및 유틸리티","local":"custom-layers-and-utilities","sections":[{"title":"PyTorch 사용자 정의 모듈","local":"transformers.Conv1D ][ transformers.Conv1D","sections":[],"depth":2},{"title":"PyTorch 헬퍼(helper) 함수","local":"transformers.apply_chunking_to_forward ][ transformers.apply_chunking_to_forward","sections":[],"depth":2},{"title":"TensorFlow 사용자 정의 레이어","local":"transformers.modeling_tf_utils.TFConv1D ][ transformers.modeling_tf_utils.TFConv1D","sections":[],"depth":2},{"title":"TensorFlow 손실 함수","local":"transformers.modeling_tf_utils.TFCausalLanguageModelingLoss ][ transformers.modeling_tf_utils.TFCausalLanguageModelingLoss","sections":[],"depth":2},{"title":"TensorFlow 도우미 함수","local":"transformers.modeling_tf_utils.get_initializer ][ transformers.modeling_tf_utils.get_initializer","sections":[],"depth":2}],"depth":1}';function hr(w){return or(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class kr extends nr{constructor(l){super(),rr(this,l,hr,gr,tr,{})}}export{kr as component};
