import{s as Pt,f as Gt,o as Et,n as Ce}from"../chunks/scheduler.bdbef820.js";import{S as Rt,i as At,g as l,s as r,r as u,A as qt,h as d,f as n,c as i,j as me,u as g,x as f,k as U,y as p,a as o,v as _,d as b,t as $,w as T}from"../chunks/index.33f81d56.js";import{T as Zt}from"../chunks/Tip.34194030.js";import{D as Me}from"../chunks/Docstring.b9574034.js";import{C as ut}from"../chunks/CodeBlock.3bad7fc9.js";import{E as ht}from"../chunks/ExampleCodeBlock.633185da.js";import{P as Bt}from"../chunks/PipelineTag.d2f354cd.js";import{H as pe,E as St}from"../chunks/index.9edc4842.js";function Yt(j){let a,v="Example:",c,m,h;return m=new ut({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERpbmF0Q29uZmlnJTJDJTIwRGluYXRNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBEaW5hdCUyMHNoaS1sYWJzJTJGZGluYXQtbWluaS1pbjFrLTIyNCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBEaW5hdENvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjBzaGktbGFicyUyRmRpbmF0LW1pbmktaW4xay0yMjQlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMERpbmF0TW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DinatConfig, DinatModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Dinat shi-labs/dinat-mini-in1k-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = DinatConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the shi-labs/dinat-mini-in1k-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DinatModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){a=l("p"),a.textContent=v,c=r(),u(m.$$.fragment)},l(s){a=d(s,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=v),c=i(s),g(m.$$.fragment,s)},m(s,w){o(s,a,w),o(s,c,w),_(m,s,w),h=!0},p:Ce,i(s){h||(b(m.$$.fragment,s),h=!0)},o(s){$(m.$$.fragment,s),h=!1},d(s){s&&(n(a),n(c)),T(m,s)}}}function Vt(j){let a,v=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=l("p"),a.innerHTML=v},l(c){a=d(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-fincs2"&&(a.innerHTML=v)},m(c,m){o(c,a,m)},p:Ce,d(c){c&&n(a)}}}function Ot(j){let a,v="Example:",c,m,h;return m=new ut({props:{code:"",highlighted:"",wrap:!1}}),{c(){a=l("p"),a.textContent=v,c=r(),u(m.$$.fragment)},l(s){a=d(s,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=v),c=i(s),g(m.$$.fragment,s)},m(s,w){o(s,a,w),o(s,c,w),_(m,s,w),h=!0},p:Ce,i(s){h||(b(m.$$.fragment,s),h=!0)},o(s){$(m.$$.fragment,s),h=!1},d(s){s&&(n(a),n(c)),T(m,s)}}}function Xt(j){let a,v=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=l("p"),a.innerHTML=v},l(c){a=d(c,"P",{"data-svelte-h":!0}),f(a)!=="svelte-fincs2"&&(a.innerHTML=v)},m(c,m){o(c,a,m)},p:Ce,d(c){c&&n(a)}}}function Qt(j){let a,v="Example:",c,m,h;return m=new ut({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMERpbmF0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIlMkMlMjB0cnVzdF9yZW1vdGVfY29kZSUzRFRydWUpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyc2hpLWxhYnMlMkZkaW5hdC1taW5pLWluMWstMjI0JTIyKSUwQW1vZGVsJTIwJTNEJTIwRGluYXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJzaGktbGFicyUyRmRpbmF0LW1pbmktaW4xay0yMjQlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, DinatForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;shi-labs/dinat-mini-in1k-224&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DinatForImageClassification.from_pretrained(<span class="hljs-string">&quot;shi-labs/dinat-mini-in1k-224&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> torch.no_grad():
<span class="hljs-meta">... </span>    logits = model(**inputs).logits

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># model predicts one of the 1000 ImageNet classes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>predicted_label = logits.argmax(-<span class="hljs-number">1</span>).item()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label])
...`,wrap:!1}}),{c(){a=l("p"),a.textContent=v,c=r(),u(m.$$.fragment)},l(s){a=d(s,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=v),c=i(s),g(m.$$.fragment,s)},m(s,w){o(s,a,w),o(s,c,w),_(m,s,w),h=!0},p:Ce,i(s){h||(b(m.$$.fragment,s),h=!0)},o(s){$(m.$$.fragment,s),h=!1},d(s){s&&(n(a),n(c)),T(m,s)}}}function Kt(j){let a,v,c,m,h,s,w,xe,G,gt=`DiNAT は <a href="https://arxiv.org/abs/2209.15001" rel="nofollow">Dilated Neighborhood Attender Transformer</a> で提案されました。
Ali Hassani and Humphrey Shi.`,De,E,_t=`<a href="nat">NAT</a> を拡張するために、拡張近隣アテンション パターンを追加してグローバル コンテキストをキャプチャします。
そしてそれと比較して大幅なパフォーマンスの向上が見られます。`,je,R,bt="論文の要約は次のとおりです。",Ie,A,$t=`<em>トランスフォーマーは急速に、さまざまなモダリティにわたって最も頻繁に適用される深層学習アーキテクチャの 1 つになりつつあります。
ドメインとタスク。ビジョンでは、単純なトランスフォーマーへの継続的な取り組みに加えて、階層型トランスフォーマーが
また、そのパフォーマンスと既存のフレームワークへの簡単な統合のおかげで、大きな注目を集めました。
これらのモデルは通常、スライディング ウィンドウの近隣アテンション (NA) などの局所的な注意メカニズムを採用しています。
または Swin Transformer のシフト ウィンドウ セルフ アテンション。自己注意の二次複雑さを軽減するのに効果的ですが、
局所的な注意は、自己注意の最も望ましい 2 つの特性を弱めます。それは、長距離の相互依存性モデリングです。
そして全体的な受容野。このペーパーでは、自然で柔軟で、
NA への効率的な拡張により、よりグローバルなコンテキストを捕捉し、受容野をゼロから指数関数的に拡張することができます。
追加費用。 NA のローカルな注目と DiNA のまばらなグローバルな注目は相互に補完し合うため、私たちは
両方に基づいて構築された新しい階層型ビジョン トランスフォーマーである Dilated Neighborhood Attendant Transformer (DiNAT) を導入します。
DiNAT のバリアントは、NAT、Swin、ConvNeXt などの強力なベースラインに比べて大幅に改善されています。
私たちの大規模モデルは、COCO オブジェクト検出において Swin モデルよりも高速で、ボックス AP が 1.5% 優れています。
COCO インスタンス セグメンテーションでは 1.3% のマスク AP、ADE20K セマンティック セグメンテーションでは 1.1% の mIoU。
新しいフレームワークと組み合わせた当社の大規模バリアントは、COCO (58.2 PQ) 上の新しい最先端のパノプティック セグメンテーション モデルです。
および ADE20K (48.5 PQ)、および Cityscapes (44.5 AP) および ADE20K (35.4 AP) のインスタンス セグメンテーション モデル (追加データなし)。
また、ADE20K (58.2 mIoU) 上の最先端の特殊なセマンティック セグメンテーション モデルとも一致します。
都市景観 (84.5 mIoU) では 2 位にランクされています (追加データなし)。</em>`,Fe,z,Tt,We,q,vt=`異なる拡張値を使用した近隣アテンション。
<a href="https://arxiv.org/abs/2209.15001">元の論文</a>から抜粋。`,Ne,B,wt=`このモデルは <a href="https://huggingface.co/alihassanijr" rel="nofollow">Ali Hassani</a> によって提供されました。
元のコードは <a href="https://github.com/SHI-Labs/Neighborhood-Attendance-Transformer" rel="nofollow">ここ</a> にあります。`,Je,S,Ue,Y,yt=`DiNAT は <em>バックボーン</em> として使用できます。 「output<em>hidden</em>​​states = True」の場合、
<code>hidden_​​states</code> と <code>reshaped_hidden_​​states</code> の両方を出力します。 <code>reshape_hidden_​​states</code> は、<code>(batch_size, height, width, num_channels)</code> ではなく、<code>(batch, num_channels, height, width)</code> の形状を持っています。`,ze,V,Mt="ノート：",ke,O,Ct=`<li>DiNAT は、<a href="https://github.com/SHI-Labs/NATTEN/" rel="nofollow">NATTEN</a> による近隣アテンションと拡張近隣アテンションの実装に依存しています。
<a href="https://shi-labs.com/natten" rel="nofollow">shi-labs.com/natten</a> を参照して、Linux 用のビルド済みホイールを使用してインストールするか、<code>pip install natten</code> を実行してシステム上に構築できます。
後者はコンパイルに時間がかかる可能性があることに注意してください。 NATTEN はまだ Windows デバイスをサポートしていません。</li> <li>現時点ではパッチ サイズ 4 のみがサポートされています。</li>`,Le,X,He,Q,xt="DiNAT の使用を開始するのに役立つ公式 Hugging Face およびコミュニティ (🌎 で示されている) リソースのリスト。",Ze,K,Pe,ee,Dt='<li><a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatForImageClassification">DinatForImageClassification</a> は、この <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification" rel="nofollow">サンプル スクリプト</a> および <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb" rel="nofollow">ノートブック</a>。</li> <li>参照: <a href="../tasks/image_classification">画像分類タスク ガイド</a></li>',Ge,te,jt="ここに含めるリソースの送信に興味がある場合は、お気軽にプル リクエストを開いてください。審査させていただきます。リソースは、既存のリソースを複製するのではなく、何か新しいものを示すことが理想的です。",Ee,ne,Re,C,oe,Xe,fe,It=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatModel">DinatModel</a>. It is used to instantiate a Dinat
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
defaults will yield a similar configuration to that of the Dinat
<a href="https://huggingface.co/shi-labs/dinat-mini-in1k-224" rel="nofollow">shi-labs/dinat-mini-in1k-224</a> architecture.`,Qe,he,Ft=`Configuration objects inherit from <a href="/docs/transformers/main/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/main/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ke,k,Ae,ae,qe,y,se,et,ue,Wt="The bare Dinat Model outputting raw hidden-states without any specific head on top.",tt,ge,Nt=`This model inherits from <a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,nt,_e,Jt=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,ot,I,re,at,be,Ut='The <a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatModel">DinatModel</a> forward method, overrides the <code>__call__</code> special method.',st,L,rt,H,Be,ie,Se,M,le,it,$e,zt=`Dinat Model transformer with an image classification head on top (a linear layer on top of the final hidden state
of the [CLS] token) e.g. for ImageNet.`,lt,Te,kt=`This model inherits from <a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,dt,ve,Lt=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,ct,F,de,mt,we,Ht='The <a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatForImageClassification">DinatForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',pt,Z,ft,P,Ye,ce,Ve,ye,Oe;return h=new pe({props:{title:"Dilated Neighborhood Attention Transformer",local:"dilated-neighborhood-attention-transformer",headingTag:"h1"}}),w=new pe({props:{title:"Overview",local:"overview",headingTag:"h2"}}),S=new pe({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),X=new pe({props:{title:"Resources",local:"resources",headingTag:"h2"}}),K=new Bt({props:{pipeline:"image-classification"}}),ne=new pe({props:{title:"DinatConfig",local:"transformers.DinatConfig",headingTag:"h2"}}),oe=new Me({props:{name:"class transformers.DinatConfig",anchor:"transformers.DinatConfig",parameters:[{name:"patch_size",val:" = 4"},{name:"num_channels",val:" = 3"},{name:"embed_dim",val:" = 64"},{name:"depths",val:" = [3, 4, 6, 5]"},{name:"num_heads",val:" = [2, 4, 8, 16]"},{name:"kernel_size",val:" = 7"},{name:"dilations",val:" = [[1, 8, 1], [1, 4, 1, 4], [1, 2, 1, 2, 1, 2], [1, 1, 1, 1, 1]]"},{name:"mlp_ratio",val:" = 3.0"},{name:"qkv_bias",val:" = True"},{name:"hidden_dropout_prob",val:" = 0.0"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"drop_path_rate",val:" = 0.1"},{name:"hidden_act",val:" = 'gelu'"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"layer_scale_init_value",val:" = 0.0"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DinatConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The size (resolution) of each patch. NOTE: Only patch size of 4 is supported at the moment.`,name:"patch_size"},{anchor:"transformers.DinatConfig.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The number of input channels.`,name:"num_channels"},{anchor:"transformers.DinatConfig.embed_dim",description:`<strong>embed_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Dimensionality of patch embedding.`,name:"embed_dim"},{anchor:"transformers.DinatConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[3, 4, 6, 5]</code>) &#x2014;
Number of layers in each level of the encoder.`,name:"depths"},{anchor:"transformers.DinatConfig.num_heads",description:`<strong>num_heads</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[2, 4, 8, 16]</code>) &#x2014;
Number of attention heads in each layer of the Transformer encoder.`,name:"num_heads"},{anchor:"transformers.DinatConfig.kernel_size",description:`<strong>kernel_size</strong> (<code>int</code>, <em>optional</em>, defaults to 7) &#x2014;
Neighborhood Attention kernel size.`,name:"kernel_size"},{anchor:"transformers.DinatConfig.dilations",description:`<strong>dilations</strong> (<code>List[List[int]]</code>, <em>optional</em>, defaults to <code>[[1, 8, 1], [1, 4, 1, 4], [1, 2, 1, 2, 1, 2], [1, 1, 1, 1, 1]]</code>) &#x2014;
Dilation value of each NA layer in the Transformer encoder.`,name:"dilations"},{anchor:"transformers.DinatConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 3.0) &#x2014;
Ratio of MLP hidden dimensionality to embedding dimensionality.`,name:"mlp_ratio"},{anchor:"transformers.DinatConfig.qkv_bias",description:`<strong>qkv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not a learnable bias should be added to the queries, keys and values.`,name:"qkv_bias"},{anchor:"transformers.DinatConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout probability for all fully connected layers in the embeddings and encoder.`,name:"hidden_dropout_prob"},{anchor:"transformers.DinatConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.DinatConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
Stochastic depth rate.`,name:"drop_path_rate"},{anchor:"transformers.DinatConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder. If string, <code>&quot;gelu&quot;</code>, <code>&quot;relu&quot;</code>,
<code>&quot;selu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.DinatConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.`,name:"initializer_range"},{anchor:"transformers.DinatConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.DinatConfig.layer_scale_init_value",description:`<strong>layer_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The initial value for the layer scale. Disabled if &lt;=0.`,name:"layer_scale_init_value"},{anchor:"transformers.DinatConfig.out_features",description:`<strong>out_features</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of features to output. Can be any of <code>&quot;stem&quot;</code>, <code>&quot;stage1&quot;</code>, <code>&quot;stage2&quot;</code>, etc.
(depending on how many stages the model has). If unset and <code>out_indices</code> is set, will default to the
corresponding stages. If unset and <code>out_indices</code> is unset, will default to the last stage. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_features"},{anchor:"transformers.DinatConfig.out_indices",description:`<strong>out_indices</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of indices of features to output. Can be any of 0, 1, 2, etc. (depending on how
many stages the model has). If unset and <code>out_features</code> is set, will default to the corresponding stages.
If unset and <code>out_features</code> is unset, will default to the last stage. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_indices"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/dinat/configuration_dinat.py#L25"}}),k=new ht({props:{anchor:"transformers.DinatConfig.example",$$slots:{default:[Yt]},$$scope:{ctx:j}}}),ae=new pe({props:{title:"DinatModel",local:"transformers.DinatModel",headingTag:"h2"}}),se=new Me({props:{name:"class transformers.DinatModel",anchor:"transformers.DinatModel",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = True"}],parametersDescription:[{anchor:"transformers.DinatModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatModel">DinatModel</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.DinatModel.add_pooling_layer",description:`<strong>add_pooling_layer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to add a pooling layer`,name:"add_pooling_layer"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/dinat/modeling_dinat.py#L626"}}),re=new Me({props:{name:"forward",anchor:"transformers.DinatModel.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DinatModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, image_size, image_size)</code>, <em>optional</em>) &#x2014;
The tensors corresponding to the input images. Pixel values can be obtained using
<code>{image_processor_class}</code>. See <code>{image_processor_class}.__call__</code> for details (<code>{processor_class}</code> uses
<code>{image_processor_class}</code> for processing images).`,name:"pixel_values"},{anchor:"transformers.DinatModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DinatModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DinatModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/dinat/modeling_dinat.py#L661",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.dinat.modeling_dinat.DinatModelOutput</code> 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 (<a
  href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatConfig"
>DinatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>, <em>optional</em>, returned when <code>add_pooling_layer=True</code> is passed) — Average pooling of the last layer hidden-state.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each stage) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>reshaped_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, hidden_size, height, width)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs reshaped to
include the spatial dimensions.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.dinat.modeling_dinat.DinatModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),L=new Zt({props:{$$slots:{default:[Vt]},$$scope:{ctx:j}}}),H=new ht({props:{anchor:"transformers.DinatModel.forward.example",$$slots:{default:[Ot]},$$scope:{ctx:j}}}),ie=new pe({props:{title:"DinatForImageClassification",local:"transformers.DinatForImageClassification",headingTag:"h2"}}),le=new Me({props:{name:"class transformers.DinatForImageClassification",anchor:"transformers.DinatForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.DinatForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatForImageClassification">DinatForImageClassification</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/dinat/modeling_dinat.py#L709"}}),de=new Me({props:{name:"forward",anchor:"transformers.DinatForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DinatForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, image_size, image_size)</code>, <em>optional</em>) &#x2014;
The tensors corresponding to the input images. Pixel values can be obtained using
<code>{image_processor_class}</code>. See <code>{image_processor_class}.__call__</code> for details (<code>{processor_class}</code> uses
<code>{image_processor_class}</code> for processing images).`,name:"pixel_values"},{anchor:"transformers.DinatForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"},{anchor:"transformers.DinatForImageClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.DinatForImageClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers. See <code>hidden_states</code> under returned tensors for
more detail.`,name:"output_hidden_states"},{anchor:"transformers.DinatForImageClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/dinat/modeling_dinat.py#L732",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.dinat.modeling_dinat.DinatImageClassifierOutput</code> 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 (<a
  href="/docs/transformers/main/ja/model_doc/dinat#transformers.DinatConfig"
>DinatConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) — Classification (or regression if config.num_labels==1) loss.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) — Classification (or regression if config.num_labels==1) scores (before SoftMax).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each stage) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>reshaped_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, hidden_size, height, width)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs reshaped to
include the spatial dimensions.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.dinat.modeling_dinat.DinatImageClassifierOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Z=new Zt({props:{$$slots:{default:[Xt]},$$scope:{ctx:j}}}),P=new ht({props:{anchor:"transformers.DinatForImageClassification.forward.example",$$slots:{default:[Qt]},$$scope:{ctx:j}}}),ce=new St({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/model_doc/dinat.md"}}),{c(){a=l("meta"),v=r(),c=l("p"),m=r(),u(h.$$.fragment),s=r(),u(w.$$.fragment),xe=r(),G=l("p"),G.innerHTML=gt,De=r(),E=l("p"),E.innerHTML=_t,je=r(),R=l("p"),R.textContent=bt,Ie=r(),A=l("p"),A.innerHTML=$t,Fe=r(),z=l("img"),We=r(),q=l("small"),q.innerHTML=vt,Ne=r(),B=l("p"),B.innerHTML=wt,Je=r(),u(S.$$.fragment),Ue=r(),Y=l("p"),Y.innerHTML=yt,ze=r(),V=l("p"),V.textContent=Mt,ke=r(),O=l("ul"),O.innerHTML=Ct,Le=r(),u(X.$$.fragment),He=r(),Q=l("p"),Q.textContent=xt,Ze=r(),u(K.$$.fragment),Pe=r(),ee=l("ul"),ee.innerHTML=Dt,Ge=r(),te=l("p"),te.textContent=jt,Ee=r(),u(ne.$$.fragment),Re=r(),C=l("div"),u(oe.$$.fragment),Xe=r(),fe=l("p"),fe.innerHTML=It,Qe=r(),he=l("p"),he.innerHTML=Ft,Ke=r(),u(k.$$.fragment),Ae=r(),u(ae.$$.fragment),qe=r(),y=l("div"),u(se.$$.fragment),et=r(),ue=l("p"),ue.textContent=Wt,tt=r(),ge=l("p"),ge.innerHTML=Nt,nt=r(),_e=l("p"),_e.innerHTML=Jt,ot=r(),I=l("div"),u(re.$$.fragment),at=r(),be=l("p"),be.innerHTML=Ut,st=r(),u(L.$$.fragment),rt=r(),u(H.$$.fragment),Be=r(),u(ie.$$.fragment),Se=r(),M=l("div"),u(le.$$.fragment),it=r(),$e=l("p"),$e.textContent=zt,lt=r(),Te=l("p"),Te.innerHTML=kt,dt=r(),ve=l("p"),ve.innerHTML=Lt,ct=r(),F=l("div"),u(de.$$.fragment),mt=r(),we=l("p"),we.innerHTML=Ht,pt=r(),u(Z.$$.fragment),ft=r(),u(P.$$.fragment),Ye=r(),u(ce.$$.fragment),Ve=r(),ye=l("p"),this.h()},l(e){const t=qt("svelte-u9bgzb",document.head);a=d(t,"META",{name:!0,content:!0}),t.forEach(n),v=i(e),c=d(e,"P",{}),me(c).forEach(n),m=i(e),g(h.$$.fragment,e),s=i(e),g(w.$$.fragment,e),xe=i(e),G=d(e,"P",{"data-svelte-h":!0}),f(G)!=="svelte-4vh80g"&&(G.innerHTML=gt),De=i(e),E=d(e,"P",{"data-svelte-h":!0}),f(E)!=="svelte-5x2367"&&(E.innerHTML=_t),je=i(e),R=d(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-1cv3nri"&&(R.textContent=bt),Ie=i(e),A=d(e,"P",{"data-svelte-h":!0}),f(A)!=="svelte-yhhr0s"&&(A.innerHTML=$t),Fe=i(e),z=d(e,"IMG",{src:!0,alt:!0,width:!0}),We=i(e),q=d(e,"SMALL",{"data-svelte-h":!0}),f(q)!=="svelte-1i39043"&&(q.innerHTML=vt),Ne=i(e),B=d(e,"P",{"data-svelte-h":!0}),f(B)!=="svelte-8ihpwm"&&(B.innerHTML=wt),Je=i(e),g(S.$$.fragment,e),Ue=i(e),Y=d(e,"P",{"data-svelte-h":!0}),f(Y)!=="svelte-hbgrnn"&&(Y.innerHTML=yt),ze=i(e),V=d(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-adlvo8"&&(V.textContent=Mt),ke=i(e),O=d(e,"UL",{"data-svelte-h":!0}),f(O)!=="svelte-bu636x"&&(O.innerHTML=Ct),Le=i(e),g(X.$$.fragment,e),He=i(e),Q=d(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-15ra2ii"&&(Q.textContent=xt),Ze=i(e),g(K.$$.fragment,e),Pe=i(e),ee=d(e,"UL",{"data-svelte-h":!0}),f(ee)!=="svelte-17nwvol"&&(ee.innerHTML=Dt),Ge=i(e),te=d(e,"P",{"data-svelte-h":!0}),f(te)!=="svelte-17ytafw"&&(te.textContent=jt),Ee=i(e),g(ne.$$.fragment,e),Re=i(e),C=d(e,"DIV",{class:!0});var W=me(C);g(oe.$$.fragment,W),Xe=i(W),fe=d(W,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-c19fd9"&&(fe.innerHTML=It),Qe=i(W),he=d(W,"P",{"data-svelte-h":!0}),f(he)!=="svelte-1s6wgpv"&&(he.innerHTML=Ft),Ke=i(W),g(k.$$.fragment,W),W.forEach(n),Ae=i(e),g(ae.$$.fragment,e),qe=i(e),y=d(e,"DIV",{class:!0});var x=me(y);g(se.$$.fragment,x),et=i(x),ue=d(x,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-18jyt0c"&&(ue.textContent=Wt),tt=i(x),ge=d(x,"P",{"data-svelte-h":!0}),f(ge)!=="svelte-eisylu"&&(ge.innerHTML=Nt),nt=i(x),_e=d(x,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-hswkmf"&&(_e.innerHTML=Jt),ot=i(x),I=d(x,"DIV",{class:!0});var N=me(I);g(re.$$.fragment,N),at=i(N),be=d(N,"P",{"data-svelte-h":!0}),f(be)!=="svelte-1d2ruq1"&&(be.innerHTML=Ut),st=i(N),g(L.$$.fragment,N),rt=i(N),g(H.$$.fragment,N),N.forEach(n),x.forEach(n),Be=i(e),g(ie.$$.fragment,e),Se=i(e),M=d(e,"DIV",{class:!0});var D=me(M);g(le.$$.fragment,D),it=i(D),$e=d(D,"P",{"data-svelte-h":!0}),f($e)!=="svelte-17tpduv"&&($e.textContent=zt),lt=i(D),Te=d(D,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-eisylu"&&(Te.innerHTML=kt),dt=i(D),ve=d(D,"P",{"data-svelte-h":!0}),f(ve)!=="svelte-hswkmf"&&(ve.innerHTML=Lt),ct=i(D),F=d(D,"DIV",{class:!0});var J=me(F);g(de.$$.fragment,J),mt=i(J),we=d(J,"P",{"data-svelte-h":!0}),f(we)!=="svelte-ngm5gr"&&(we.innerHTML=Ht),pt=i(J),g(Z.$$.fragment,J),ft=i(J),g(P.$$.fragment,J),J.forEach(n),D.forEach(n),Ye=i(e),g(ce.$$.fragment,e),Ve=i(e),ye=d(e,"P",{}),me(ye).forEach(n),this.h()},h(){U(a,"name","hf:doc:metadata"),U(a,"content",en),Gt(z.src,Tt="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/dilated-neighborhood-attention-pattern.jpg")||U(z,"src",Tt),U(z,"alt","drawing"),U(z,"width","600"),U(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(M,"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,t){p(document.head,a),o(e,v,t),o(e,c,t),o(e,m,t),_(h,e,t),o(e,s,t),_(w,e,t),o(e,xe,t),o(e,G,t),o(e,De,t),o(e,E,t),o(e,je,t),o(e,R,t),o(e,Ie,t),o(e,A,t),o(e,Fe,t),o(e,z,t),o(e,We,t),o(e,q,t),o(e,Ne,t),o(e,B,t),o(e,Je,t),_(S,e,t),o(e,Ue,t),o(e,Y,t),o(e,ze,t),o(e,V,t),o(e,ke,t),o(e,O,t),o(e,Le,t),_(X,e,t),o(e,He,t),o(e,Q,t),o(e,Ze,t),_(K,e,t),o(e,Pe,t),o(e,ee,t),o(e,Ge,t),o(e,te,t),o(e,Ee,t),_(ne,e,t),o(e,Re,t),o(e,C,t),_(oe,C,null),p(C,Xe),p(C,fe),p(C,Qe),p(C,he),p(C,Ke),_(k,C,null),o(e,Ae,t),_(ae,e,t),o(e,qe,t),o(e,y,t),_(se,y,null),p(y,et),p(y,ue),p(y,tt),p(y,ge),p(y,nt),p(y,_e),p(y,ot),p(y,I),_(re,I,null),p(I,at),p(I,be),p(I,st),_(L,I,null),p(I,rt),_(H,I,null),o(e,Be,t),_(ie,e,t),o(e,Se,t),o(e,M,t),_(le,M,null),p(M,it),p(M,$e),p(M,lt),p(M,Te),p(M,dt),p(M,ve),p(M,ct),p(M,F),_(de,F,null),p(F,mt),p(F,we),p(F,pt),_(Z,F,null),p(F,ft),_(P,F,null),o(e,Ye,t),_(ce,e,t),o(e,Ve,t),o(e,ye,t),Oe=!0},p(e,[t]){const W={};t&2&&(W.$$scope={dirty:t,ctx:e}),k.$set(W);const x={};t&2&&(x.$$scope={dirty:t,ctx:e}),L.$set(x);const N={};t&2&&(N.$$scope={dirty:t,ctx:e}),H.$set(N);const D={};t&2&&(D.$$scope={dirty:t,ctx:e}),Z.$set(D);const J={};t&2&&(J.$$scope={dirty:t,ctx:e}),P.$set(J)},i(e){Oe||(b(h.$$.fragment,e),b(w.$$.fragment,e),b(S.$$.fragment,e),b(X.$$.fragment,e),b(K.$$.fragment,e),b(ne.$$.fragment,e),b(oe.$$.fragment,e),b(k.$$.fragment,e),b(ae.$$.fragment,e),b(se.$$.fragment,e),b(re.$$.fragment,e),b(L.$$.fragment,e),b(H.$$.fragment,e),b(ie.$$.fragment,e),b(le.$$.fragment,e),b(de.$$.fragment,e),b(Z.$$.fragment,e),b(P.$$.fragment,e),b(ce.$$.fragment,e),Oe=!0)},o(e){$(h.$$.fragment,e),$(w.$$.fragment,e),$(S.$$.fragment,e),$(X.$$.fragment,e),$(K.$$.fragment,e),$(ne.$$.fragment,e),$(oe.$$.fragment,e),$(k.$$.fragment,e),$(ae.$$.fragment,e),$(se.$$.fragment,e),$(re.$$.fragment,e),$(L.$$.fragment,e),$(H.$$.fragment,e),$(ie.$$.fragment,e),$(le.$$.fragment,e),$(de.$$.fragment,e),$(Z.$$.fragment,e),$(P.$$.fragment,e),$(ce.$$.fragment,e),Oe=!1},d(e){e&&(n(v),n(c),n(m),n(s),n(xe),n(G),n(De),n(E),n(je),n(R),n(Ie),n(A),n(Fe),n(z),n(We),n(q),n(Ne),n(B),n(Je),n(Ue),n(Y),n(ze),n(V),n(ke),n(O),n(Le),n(He),n(Q),n(Ze),n(Pe),n(ee),n(Ge),n(te),n(Ee),n(Re),n(C),n(Ae),n(qe),n(y),n(Be),n(Se),n(M),n(Ye),n(Ve),n(ye)),n(a),T(h,e),T(w,e),T(S,e),T(X,e),T(K,e),T(ne,e),T(oe),T(k),T(ae,e),T(se),T(re),T(L),T(H),T(ie,e),T(le),T(de),T(Z),T(P),T(ce,e)}}}const en='{"title":"Dilated Neighborhood Attention Transformer","local":"dilated-neighborhood-attention-transformer","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"DinatConfig","local":"transformers.DinatConfig","sections":[],"depth":2},{"title":"DinatModel","local":"transformers.DinatModel","sections":[],"depth":2},{"title":"DinatForImageClassification","local":"transformers.DinatForImageClassification","sections":[],"depth":2}],"depth":1}';function tn(j){return Et(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mn extends Rt{constructor(a){super(),At(this,a,tn,Kt,Pt,{})}}export{mn as component};
