import{s as vr,f as br,o as yr,n as uo}from"../chunks/scheduler.9bc65507.js";import{S as wr,i as Pr,g as t,s as l,u,A as Tr,h as r,f as o,c as i,j as p,v as _,y as h,k as d,o as n,a,w as v,d as b,t as y,x as w}from"../chunks/index.78c82d43.js";import{T as _r}from"../chunks/Tip.87d55b76.js";import{D as B}from"../chunks/Docstring.f3d04bd2.js";import{C as xt}from"../chunks/CodeBlock.48618ec2.js";import{I as ne}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Ct}from"../chunks/ExampleCodeBlock.872b014d.js";import{P as $r}from"../chunks/PipelineTag.75b0f707.js";function Fr(x){let m,T="Example:",f,g,P;return g=new xt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBvb2xGb3JtZXJDb25maWclMkMlMjBQb29sRm9ybWVyTW9kZWwlMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwUG9vbEZvcm1lciUyMHNhaWwlMkZwb29sZm9ybWVyX3MxMiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBQb29sRm9ybWVyQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMHNhaWwlMkZwb29sZm9ybWVyX3MxMiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwUG9vbEZvcm1lck1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PoolFormerConfig, PoolFormerModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a PoolFormer sail/poolformer_s12 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = PoolFormerConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the sail/poolformer_s12 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PoolFormerModel(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`}}),{c(){m=t("p"),m.textContent=T,f=l(),u(g.$$.fragment)},l(c){m=r(c,"P",{"data-svelte-h":!0}),h(m)!=="svelte-11lpom8"&&(m.textContent=T),f=i(c),_(g.$$.fragment,c)},m(c,$){a(c,m,$),a(c,f,$),v(g,c,$),P=!0},p:uo,i(c){P||(b(g.$$.fragment,c),P=!0)},o(c){y(g.$$.fragment,c),P=!1},d(c){c&&(o(m),o(f)),w(g,c)}}}function Cr(x){let m,T=`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(){m=t("p"),m.innerHTML=T},l(f){m=r(f,"P",{"data-svelte-h":!0}),h(m)!=="svelte-fincs2"&&(m.innerHTML=T)},m(f,g){a(f,m,g)},p:uo,d(f){f&&o(m)}}}function xr(x){let m,T="Example:",f,g,P;return g=new xt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFBvb2xGb3JtZXJNb2RlbCUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyc2FpbCUyRnBvb2xmb3JtZXJfczEyJTIyKSUwQW1vZGVsJTIwJTNEJTIwUG9vbEZvcm1lck1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJzYWlsJTJGcG9vbGZvcm1lcl9zMTIlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, PoolFormerModel
<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>)
<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;sail/poolformer_s12&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PoolFormerModel.from_pretrained(<span class="hljs-string">&quot;sail/poolformer_s12&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>    outputs = model(**inputs)

<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(last_hidden_states.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">512</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`}}),{c(){m=t("p"),m.textContent=T,f=l(),u(g.$$.fragment)},l(c){m=r(c,"P",{"data-svelte-h":!0}),h(m)!=="svelte-11lpom8"&&(m.textContent=T),f=i(c),_(g.$$.fragment,c)},m(c,$){a(c,m,$),a(c,f,$),v(g,c,$),P=!0},p:uo,i(c){P||(b(g.$$.fragment,c),P=!0)},o(c){y(g.$$.fragment,c),P=!1},d(c){c&&(o(m),o(f)),w(g,c)}}}function Mr(x){let m,T=`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(){m=t("p"),m.innerHTML=T},l(f){m=r(f,"P",{"data-svelte-h":!0}),h(m)!=="svelte-fincs2"&&(m.innerHTML=T)},m(f,g){a(f,m,g)},p:uo,d(f){f&&o(m)}}}function Ir(x){let m,T="Example:",f,g,P;return g=new xt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFBvb2xGb3JtZXJGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJzYWlsJTJGcG9vbGZvcm1lcl9zMTIlMjIpJTBBbW9kZWwlMjAlM0QlMjBQb29sRm9ybWVyRm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyc2FpbCUyRnBvb2xmb3JtZXJfczEyJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMGxvZ2l0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKS5sb2dpdHMlMEElMEElMjMlMjBtb2RlbCUyMHByZWRpY3RzJTIwb25lJTIwb2YlMjB0aGUlMjAxMDAwJTIwSW1hZ2VOZXQlMjBjbGFzc2VzJTBBcHJlZGljdGVkX2xhYmVsJTIwJTNEJTIwbG9naXRzLmFyZ21heCgtMSkuaXRlbSgpJTBBcHJpbnQobW9kZWwuY29uZmlnLmlkMmxhYmVsJTVCcHJlZGljdGVkX2xhYmVsJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, PoolFormerForImageClassification
<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>)
<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;sail/poolformer_s12&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PoolFormerForImageClassification.from_pretrained(<span class="hljs-string">&quot;sail/poolformer_s12&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])
tabby, tabby cat`}}),{c(){m=t("p"),m.textContent=T,f=l(),u(g.$$.fragment)},l(c){m=r(c,"P",{"data-svelte-h":!0}),h(m)!=="svelte-11lpom8"&&(m.textContent=T),f=i(c),_(g.$$.fragment,c)},m(c,$){a(c,m,$),a(c,f,$),v(g,c,$),P=!0},p:uo,i(c){P||(b(g.$$.fragment,c),P=!0)},o(c){y(g.$$.fragment,c),P=!1},d(c){c&&(o(m),o(f)),w(g,c)}}}function zr(x){let m,T,f,g,P,c,$,ae,Ko,Ze,Mt="PoolFormer",_o,k,H,so,le,et,Re,It="Overview",vo,ie,zt='The PoolFormer model was proposed in <a href="https://arxiv.org/abs/2111.11418" rel="nofollow">MetaFormer is Actually What You Need for Vision</a>  by Sea AI Labs. Instead of designing complicated token mixer to achieve SOTA performance, the target of this work is to demonstrate the competence of transformer models largely stem from the general architecture MetaFormer.',bo,ce,Jt="The abstract from the paper is the following:",yo,me,kt="<em>Transformers have shown great potential in computer vision tasks. A common belief is their attention-based token mixer module contributes most to their competence. However, recent works show the attention-based module in transformers can be replaced by spatial MLPs and the resulted models still perform quite well. Based on this observation, we hypothesize that the general architecture of the transformers, instead of the specific token mixer module, is more essential to the model’s performance. To verify this, we deliberately replace the attention module in transformers with an embarrassingly simple spatial pooling operator to conduct only the most basic token mixing. Surprisingly, we observe that the derived model, termed as PoolFormer, achieves competitive performance on multiple computer vision tasks. For example, on ImageNet-1K, PoolFormer achieves 82.1% top-1 accuracy, surpassing well-tuned vision transformer/MLP-like baselines DeiT-B/ResMLP-B24 by 0.3%/1.1% accuracy with 35%/52% fewer parameters and 48%/60% fewer MACs. The effectiveness of PoolFormer verifies our hypothesis and urges us to initiate the concept of “MetaFormer”, a general architecture abstracted from transformers without specifying the token mixer. Based on the extensive experiments, we argue that MetaFormer is the key player in achieving superior results for recent transformer and MLP-like models on vision tasks. This work calls for more future research dedicated to improving MetaFormer instead of focusing on the token mixer modules. Additionally, our proposed PoolFormer could serve as a starting baseline for future MetaFormer architecture design.</em>",wo,de,jt='The figure below illustrates the architecture of PoolFormer. Taken from the <a href="https://arxiv.org/abs/2111.11418" rel="nofollow">original paper</a>.',Po,pe,Nt,To,he,Ut="Tips:",$o,fe,Et='<li>PoolFormer has a hierarchical architecture, where instead of Attention, a simple Average Pooling layer is present. All checkpoints of the model can be found on the <a href="https://huggingface.co/models?other=poolformer" rel="nofollow">hub</a>.</li> <li>One can use <a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerImageProcessor">PoolFormerImageProcessor</a> to prepare images for the model.</li> <li>As most models, PoolFormer comes in different sizes, the details of which can be found in the table below.</li>',Fo,ge,Wt='<thead><tr><th align="center"><strong>Model variant</strong></th> <th><strong>Depths</strong></th> <th><strong>Hidden sizes</strong></th> <th align="center"><strong>Params (M)</strong></th> <th align="center"><strong>ImageNet-1k Top 1</strong></th></tr></thead> <tbody><tr><td align="center">s12</td> <td>[2, 2, 6, 2]</td> <td>[64, 128, 320, 512]</td> <td align="center">12</td> <td align="center">77.2</td></tr> <tr><td align="center">s24</td> <td>[4, 4, 12, 4]</td> <td>[64, 128, 320, 512]</td> <td align="center">21</td> <td align="center">80.3</td></tr> <tr><td align="center">s36</td> <td>[6, 6, 18, 6]</td> <td>[64, 128, 320, 512]</td> <td align="center">31</td> <td align="center">81.4</td></tr> <tr><td align="center">m36</td> <td>[6, 6, 18, 6]</td> <td>[96, 192, 384, 768]</td> <td align="center">56</td> <td align="center">82.1</td></tr> <tr><td align="center">m48</td> <td>[8, 8, 24, 8]</td> <td>[96, 192, 384, 768]</td> <td align="center">73</td> <td align="center">82.5</td></tr></tbody>',Co,ue,Zt='This model was contributed by <a href="https://huggingface.co/heytanay" rel="nofollow">heytanay</a>. The original code can be found <a href="https://github.com/sail-sg/poolformer" rel="nofollow">here</a>.',xo,j,L,no,_e,ot,Be,Rt="Resources",Mo,ve,Bt="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with PoolFormer.",Io,be,zo,ye,Ht='<li><a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerForImageClassification">PoolFormerForImageClassification</a> is supported by this <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification" rel="nofollow">example script</a> and <a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb" rel="nofollow">notebook</a>.</li> <li>See also: <a href="../tasks/image_classification">Image classification task guide</a></li>',Jo,we,Lt="If you’re interested in submitting a resource to be included here, please feel free to open a Pull Request and we’ll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource.",ko,N,G,ao,Pe,tt,He,Gt="PoolFormerConfig",jo,F,Te,rt,Le,At=`This is the configuration class to store the configuration of <a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerModel">PoolFormerModel</a>. It is used to instantiate a
PoolFormer 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 PoolFormer
<a href="https://huggingface.co/sail/poolformer_s12" rel="nofollow">sail/poolformer_s12</a> architecture.`,st,Ge,St=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,nt,A,No,U,S,lo,$e,at,Ae,Vt="PoolFormerFeatureExtractor",Uo,E,Fe,lt,V,Ce,it,Se,qt="Preprocess an image or a batch of images.",Eo,W,q,io,xe,ct,Ve,Xt="PoolFormerImageProcessor",Wo,z,Me,mt,qe,Dt="Constructs a PoolFormer image processor.",dt,X,Ie,pt,Xe,Yt="Preprocess an image or batch of images.",Zo,Z,D,co,ze,ht,De,Qt="PoolFormerModel",Ro,J,Je,ft,Ye,Ot=`The bare PoolFormer Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,gt,M,ke,ut,Qe,Kt='The <a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerModel">PoolFormerModel</a> forward method, overrides the <code>__call__</code> special method.',_t,Y,vt,Q,Bo,R,O,mo,je,bt,Oe,er="PoolFormerForImageClassification",Ho,C,Ne,yt,Ke,or="PoolFormer Model transformer with an image classification head on top",wt,eo,tr=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Pt,I,Ue,Tt,oo,rr='The <a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerForImageClassification">PoolFormerForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',$t,K,Ft,ee,Lo,po,Go;return ae=new ne({}),le=new ne({}),_e=new ne({}),be=new $r({props:{pipeline:"image-classification"}}),Pe=new ne({}),Te=new B({props:{name:"class transformers.PoolFormerConfig",anchor:"transformers.PoolFormerConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"patch_size",val:" = 16"},{name:"stride",val:" = 16"},{name:"pool_size",val:" = 3"},{name:"mlp_ratio",val:" = 4.0"},{name:"depths",val:" = [2, 2, 6, 2]"},{name:"hidden_sizes",val:" = [64, 128, 320, 512]"},{name:"patch_sizes",val:" = [7, 3, 3, 3]"},{name:"strides",val:" = [4, 2, 2, 2]"},{name:"padding",val:" = [2, 1, 1, 1]"},{name:"num_encoder_blocks",val:" = 4"},{name:"drop_path_rate",val:" = 0.0"},{name:"hidden_act",val:" = 'gelu'"},{name:"use_layer_scale",val:" = True"},{name:"layer_scale_init_value",val:" = 1e-05"},{name:"initializer_range",val:" = 0.02"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PoolFormerConfig.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The number of channels in the input image.`,name:"num_channels"},{anchor:"transformers.PoolFormerConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
The size of the input patch.`,name:"patch_size"},{anchor:"transformers.PoolFormerConfig.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
The stride of the input patch.`,name:"stride"},{anchor:"transformers.PoolFormerConfig.pool_size",description:`<strong>pool_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The size of the pooling window.`,name:"pool_size"},{anchor:"transformers.PoolFormerConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#x2014;
The ratio of the number of channels in the output of the MLP to the number of channels in the input.`,name:"mlp_ratio"},{anchor:"transformers.PoolFormerConfig.depths",description:`<strong>depths</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[2, 2, 6, 2]</code>) &#x2014;
The depth of each encoder block.`,name:"depths"},{anchor:"transformers.PoolFormerConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[64, 128, 320, 512]</code>) &#x2014;
The hidden sizes of each encoder block.`,name:"hidden_sizes"},{anchor:"transformers.PoolFormerConfig.patch_sizes",description:`<strong>patch_sizes</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[7, 3, 3, 3]</code>) &#x2014;
The size of the input patch for each encoder block.`,name:"patch_sizes"},{anchor:"transformers.PoolFormerConfig.strides",description:`<strong>strides</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[4, 2, 2, 2]</code>) &#x2014;
The stride of the input patch for each encoder block.`,name:"strides"},{anchor:"transformers.PoolFormerConfig.padding",description:`<strong>padding</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[2, 1, 1, 1]</code>) &#x2014;
The padding of the input patch for each encoder block.`,name:"padding"},{anchor:"transformers.PoolFormerConfig.num_encoder_blocks",description:`<strong>num_encoder_blocks</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
The number of encoder blocks.`,name:"num_encoder_blocks"},{anchor:"transformers.PoolFormerConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout rate for the dropout layers.`,name:"drop_path_rate"},{anchor:"transformers.PoolFormerConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The activation function for the hidden layers.`,name:"hidden_act"},{anchor:"transformers.PoolFormerConfig.use_layer_scale",description:`<strong>use_layer_scale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use layer scale.`,name:"use_layer_scale"},{anchor:"transformers.PoolFormerConfig.layer_scale_init_value",description:`<strong>layer_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-5) &#x2014;
The initial value for the layer scale.`,name:"layer_scale_init_value"},{anchor:"transformers.PoolFormerConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The initializer range for the weights.`,name:"initializer_range"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/configuration_poolformer.py#L34"}}),A=new Ct({props:{anchor:"transformers.PoolFormerConfig.example",$$slots:{default:[Fr]},$$scope:{ctx:x}}}),$e=new ne({}),Fe=new B({props:{name:"class transformers.PoolFormerFeatureExtractor",anchor:"transformers.PoolFormerFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/feature_extraction_poolformer.py#L26"}}),Ce=new B({props:{name:"__call__",anchor:"transformers.PoolFormerFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_processing_utils.py#L544"}}),xe=new ne({}),Me=new B({props:{name:"class transformers.PoolFormerImageProcessor",anchor:"transformers.PoolFormerImageProcessor",parameters:[{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"crop_pct",val:": int = 0.9"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"do_center_crop",val:": bool = True"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_rescale",val:": bool = True"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PoolFormerImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image&#x2019;s (height, width) dimensions to the specified <code>size</code>. Can be overridden by
<code>do_resize</code> in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.PoolFormerImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;shortest_edge&quot; -- 224}</code>):
Size of the image after resizing. Can be overridden by <code>size</code> in the <code>preprocess</code> method. If crop_pct is
unset:</p>
<ul>
<li>size is <code>{&quot;height&quot;: h, &quot;width&quot;: w}</code>: the image is resized to <code>(h, w)</code>.</li>
<li>size is <code>{&quot;shortest_edge&quot;: s}</code>: the shortest edge of the image is resized to s whilst maintaining the
aspect ratio.</li>
</ul>
<p>If crop_pct is set:</p>
<ul>
<li>size is <code>{&quot;height&quot;: h, &quot;width&quot;: w}</code>: the image is resized to <code>(int(floor(h/crop_pct)), int(floor(w/crop_pct)))</code></li>
<li>size is <code>{&quot;height&quot;: c, &quot;width&quot;: c}</code>: the shortest edge of the image is resized to <code>int(floor(c/crop_pct)</code>
whilst maintaining the aspect ratio.</li>
<li>size is <code>{&quot;shortest_edge&quot;: c}</code>: the shortest edge of the image is resized to <code>int(floor(c/crop_pct)</code>
whilst maintaining the aspect ratio.</li>
</ul>`,name:"size"},{anchor:"transformers.PoolFormerImageProcessor.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.9</code>) &#x2014;
Percentage of the image to crop from the center. Can be overridden by <code>crop_pct</code> in the <code>preprocess</code>
method.`,name:"crop_pct"},{anchor:"transformers.PoolFormerImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BICUBIC</code>) &#x2014;
Resampling filter to use if resizing the image. Can be overridden by <code>resample</code> in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.PoolFormerImageProcessor.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to center crop the image. If the input size is smaller than <code>crop_size</code> along any edge, the image
is padded with 0&#x2019;s and then center cropped. Can be overridden by <code>do_center_crop</code> in the <code>preprocess</code>
method.`,name:"do_center_crop"},{anchor:"transformers.PoolFormerImageProcessor.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>{&quot;height&quot; -- 224, &quot;width&quot;: 224}</code>):
Size of the image after applying center crop. Only has an effect if <code>do_center_crop</code> is set to <code>True</code>. Can
be overridden by the <code>crop_size</code> parameter in the <code>preprocess</code> method.`,name:"crop_size"},{anchor:"transformers.PoolFormerImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by the <code>do_rescale</code>
parameter in the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.PoolFormerImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Scale factor to use if rescaling the image. Can be overridden by the <code>rescale_factor</code> parameter in the
<code>preprocess</code> method.`,name:"rescale_factor"},{anchor:"transformers.PoolFormerImageProcessor.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Controls whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the
<code>preprocess</code> method.`,name:"do_normalize"},{anchor:"transformers.PoolFormerImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_MEAN</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.PoolFormerImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_STD</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/image_processing_poolformer.py#L49"}}),Ie=new B({props:{name:"preprocess",anchor:"transformers.PoolFormerImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"do_resize",val:": bool = None"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"crop_pct",val:": int = None"},{name:"resample",val:": Resampling = None"},{name:"do_center_crop",val:": bool = None"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_rescale",val:": bool = None"},{name:"rescale_factor",val:": float = None"},{name:"do_normalize",val:": bool = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": ChannelDimension = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PoolFormerImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
passing in images with pixel values between 0 and 1, set <code>do_rescale=False</code>.`,name:"images"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the image after applying resize.`,name:"size"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.crop_pct",description:`<strong>crop_pct</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.crop_pct</code>) &#x2014;
Percentage of the image to crop. Only has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"crop_pct"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
Resampling filter to use if resizing the image. This can be one of the enum <code>PILImageResampling</code>, Only
has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_center_crop</code>) &#x2014;
Whether to center crop the image.`,name:"do_center_crop"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.crop_size</code>) &#x2014;
Size of the image after applying center crop.`,name:"crop_size"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image values between [0 - 1].`,name:"do_rescale"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean.`,name:"image_mean"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation.`,name:"image_std"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
</ul>`,name:"data_format"},{anchor:"transformers.PoolFormerImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/image_processing_poolformer.py#L211"}}),ze=new ne({}),Je=new B({props:{name:"class transformers.PoolFormerModel",anchor:"transformers.PoolFormerModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PoolFormerModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerConfig">PoolFormerConfig</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/v4.33.3/en/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/v4.33.3/src/transformers/models/poolformer/modeling_poolformer.py#L313"}}),ke=new B({props:{name:"forward",anchor:"transformers.PoolFormerModel.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PoolFormerModel.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">PoolFormerImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/modeling_poolformer.py#L326",returnDescription:`
<p>A <code>transformers.modeling_outputs.BaseModelOutputWithNoAttention</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/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerConfig"
>PoolFormerConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) — Sequence of hidden-states at the output of the last layer of the model.</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, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, num_channels, height, width)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
</ul>
`,returnType:`
<p><code>transformers.modeling_outputs.BaseModelOutputWithNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Y=new _r({props:{$$slots:{default:[Cr]},$$scope:{ctx:x}}}),Q=new Ct({props:{anchor:"transformers.PoolFormerModel.forward.example",$$slots:{default:[xr]},$$scope:{ctx:x}}}),je=new ne({}),Ne=new B({props:{name:"class transformers.PoolFormerForImageClassification",anchor:"transformers.PoolFormerForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PoolFormerForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerConfig">PoolFormerConfig</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/v4.33.3/en/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/v4.33.3/src/transformers/models/poolformer/modeling_poolformer.py#L380"}}),Ue=new B({props:{name:"forward",anchor:"transformers.PoolFormerForImageClassification.forward",parameters:[{name:"pixel_values",val:": typing.Optional[torch.FloatTensor] = None"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PoolFormerForImageClassification.forward.pixel_values",description:`<strong>pixel_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/v4.33.3/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/v4.33.3/en/model_doc/mobilevit#transformers.MobileViTFeatureExtractor.__call__">PoolFormerImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.PoolFormerForImageClassification.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"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/poolformer/modeling_poolformer.py#L396",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</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 (<a
  href="/docs/transformers/v4.33.3/en/model_doc/poolformer#transformers.PoolFormerConfig"
>PoolFormerConfig</a>) and inputs.</p>
<ul>
<li><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.</li>
<li><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).</li>
<li><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, if the model has an embedding layer, +
one for the output of each stage) of shape <code>(batch_size, num_channels, height, width)</code>. Hidden-states (also
called feature maps) of the model at the output of each stage.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),K=new _r({props:{$$slots:{default:[Mr]},$$scope:{ctx:x}}}),ee=new Ct({props:{anchor:"transformers.PoolFormerForImageClassification.forward.example",$$slots:{default:[Ir]},$$scope:{ctx:x}}}),{c(){m=t("meta"),T=l(),f=t("p"),g=l(),P=t("h1"),c=t("a"),$=t("span"),u(ae.$$.fragment),Ko=l(),Ze=t("span"),Ze.textContent=Mt,_o=l(),k=t("h2"),H=t("a"),so=t("span"),u(le.$$.fragment),et=l(),Re=t("span"),Re.textContent=It,vo=l(),ie=t("p"),ie.innerHTML=zt,bo=l(),ce=t("p"),ce.textContent=Jt,yo=l(),me=t("p"),me.innerHTML=kt,wo=l(),de=t("p"),de.innerHTML=jt,Po=l(),pe=t("img"),To=l(),he=t("p"),he.textContent=Ut,$o=l(),fe=t("ul"),fe.innerHTML=Et,Fo=l(),ge=t("table"),ge.innerHTML=Wt,Co=l(),ue=t("p"),ue.innerHTML=Zt,xo=l(),j=t("h2"),L=t("a"),no=t("span"),u(_e.$$.fragment),ot=l(),Be=t("span"),Be.textContent=Rt,Mo=l(),ve=t("p"),ve.textContent=Bt,Io=l(),u(be.$$.fragment),zo=l(),ye=t("ul"),ye.innerHTML=Ht,Jo=l(),we=t("p"),we.textContent=Lt,ko=l(),N=t("h2"),G=t("a"),ao=t("span"),u(Pe.$$.fragment),tt=l(),He=t("span"),He.textContent=Gt,jo=l(),F=t("div"),u(Te.$$.fragment),rt=l(),Le=t("p"),Le.innerHTML=At,st=l(),Ge=t("p"),Ge.innerHTML=St,nt=l(),u(A.$$.fragment),No=l(),U=t("h2"),S=t("a"),lo=t("span"),u($e.$$.fragment),at=l(),Ae=t("span"),Ae.textContent=Vt,Uo=l(),E=t("div"),u(Fe.$$.fragment),lt=l(),V=t("div"),u(Ce.$$.fragment),it=l(),Se=t("p"),Se.textContent=qt,Eo=l(),W=t("h2"),q=t("a"),io=t("span"),u(xe.$$.fragment),ct=l(),Ve=t("span"),Ve.textContent=Xt,Wo=l(),z=t("div"),u(Me.$$.fragment),mt=l(),qe=t("p"),qe.textContent=Dt,dt=l(),X=t("div"),u(Ie.$$.fragment),pt=l(),Xe=t("p"),Xe.textContent=Yt,Zo=l(),Z=t("h2"),D=t("a"),co=t("span"),u(ze.$$.fragment),ht=l(),De=t("span"),De.textContent=Qt,Ro=l(),J=t("div"),u(Je.$$.fragment),ft=l(),Ye=t("p"),Ye.innerHTML=Ot,gt=l(),M=t("div"),u(ke.$$.fragment),ut=l(),Qe=t("p"),Qe.innerHTML=Kt,_t=l(),u(Y.$$.fragment),vt=l(),u(Q.$$.fragment),Bo=l(),R=t("h2"),O=t("a"),mo=t("span"),u(je.$$.fragment),bt=l(),Oe=t("span"),Oe.textContent=er,Ho=l(),C=t("div"),u(Ne.$$.fragment),yt=l(),Ke=t("p"),Ke.textContent=or,wt=l(),eo=t("p"),eo.innerHTML=tr,Pt=l(),I=t("div"),u(Ue.$$.fragment),Tt=l(),oo=t("p"),oo.innerHTML=rr,$t=l(),u(K.$$.fragment),Ft=l(),u(ee.$$.fragment),Lo=l(),po=t("p"),this.h()},l(e){const s=Tr("svelte-1phssyn",document.head);m=r(s,"META",{name:!0,content:!0}),s.forEach(o),T=i(e),f=r(e,"P",{}),p(f).forEach(o),g=i(e),P=r(e,"H1",{class:!0});var Ee=p(P);c=r(Ee,"A",{id:!0,class:!0,href:!0});var ho=p(c);$=r(ho,"SPAN",{});var fo=p($);_(ae.$$.fragment,fo),fo.forEach(o),ho.forEach(o),Ko=i(Ee),Ze=r(Ee,"SPAN",{"data-svelte-h":!0}),h(Ze)!=="svelte-xplu14"&&(Ze.textContent=Mt),Ee.forEach(o),_o=i(e),k=r(e,"H2",{class:!0});var We=p(k);H=r(We,"A",{id:!0,class:!0,href:!0});var go=p(H);so=r(go,"SPAN",{});var sr=p(so);_(le.$$.fragment,sr),sr.forEach(o),go.forEach(o),et=i(We),Re=r(We,"SPAN",{"data-svelte-h":!0}),h(Re)!=="svelte-1jsw1pg"&&(Re.textContent=It),We.forEach(o),vo=i(e),ie=r(e,"P",{"data-svelte-h":!0}),h(ie)!=="svelte-uoy3hb"&&(ie.innerHTML=zt),bo=i(e),ce=r(e,"P",{"data-svelte-h":!0}),h(ce)!=="svelte-vfdo9a"&&(ce.textContent=Jt),yo=i(e),me=r(e,"P",{"data-svelte-h":!0}),h(me)!=="svelte-11momc2"&&(me.innerHTML=kt),wo=i(e),de=r(e,"P",{"data-svelte-h":!0}),h(de)!=="svelte-dr24j9"&&(de.innerHTML=jt),Po=i(e),pe=r(e,"IMG",{width:!0,src:!0}),To=i(e),he=r(e,"P",{"data-svelte-h":!0}),h(he)!=="svelte-axv494"&&(he.textContent=Ut),$o=i(e),fe=r(e,"UL",{"data-svelte-h":!0}),h(fe)!=="svelte-wcz2us"&&(fe.innerHTML=Et),Fo=i(e),ge=r(e,"TABLE",{"data-svelte-h":!0}),h(ge)!=="svelte-ohzfem"&&(ge.innerHTML=Wt),Co=i(e),ue=r(e,"P",{"data-svelte-h":!0}),h(ue)!=="svelte-1vh5cee"&&(ue.innerHTML=Zt),xo=i(e),j=r(e,"H2",{class:!0});var Ao=p(j);L=r(Ao,"A",{id:!0,class:!0,href:!0});var nr=p(L);no=r(nr,"SPAN",{});var ar=p(no);_(_e.$$.fragment,ar),ar.forEach(o),nr.forEach(o),ot=i(Ao),Be=r(Ao,"SPAN",{"data-svelte-h":!0}),h(Be)!=="svelte-w4zzv6"&&(Be.textContent=Rt),Ao.forEach(o),Mo=i(e),ve=r(e,"P",{"data-svelte-h":!0}),h(ve)!=="svelte-1somjfw"&&(ve.textContent=Bt),Io=i(e),_(be.$$.fragment,e),zo=i(e),ye=r(e,"UL",{"data-svelte-h":!0}),h(ye)!=="svelte-uqf5dc"&&(ye.innerHTML=Ht),Jo=i(e),we=r(e,"P",{"data-svelte-h":!0}),h(we)!=="svelte-1xesile"&&(we.textContent=Lt),ko=i(e),N=r(e,"H2",{class:!0});var So=p(N);G=r(So,"A",{id:!0,class:!0,href:!0});var lr=p(G);ao=r(lr,"SPAN",{});var ir=p(ao);_(Pe.$$.fragment,ir),ir.forEach(o),lr.forEach(o),tt=i(So),He=r(So,"SPAN",{"data-svelte-h":!0}),h(He)!=="svelte-8ub9d2"&&(He.textContent=Gt),So.forEach(o),jo=i(e),F=r(e,"DIV",{class:!0});var oe=p(F);_(Te.$$.fragment,oe),rt=i(oe),Le=r(oe,"P",{"data-svelte-h":!0}),h(Le)!=="svelte-1xgclnl"&&(Le.innerHTML=At),st=i(oe),Ge=r(oe,"P",{"data-svelte-h":!0}),h(Ge)!=="svelte-cfh5wl"&&(Ge.innerHTML=St),nt=i(oe),_(A.$$.fragment,oe),oe.forEach(o),No=i(e),U=r(e,"H2",{class:!0});var Vo=p(U);S=r(Vo,"A",{id:!0,class:!0,href:!0});var cr=p(S);lo=r(cr,"SPAN",{});var mr=p(lo);_($e.$$.fragment,mr),mr.forEach(o),cr.forEach(o),at=i(Vo),Ae=r(Vo,"SPAN",{"data-svelte-h":!0}),h(Ae)!=="svelte-st2acq"&&(Ae.textContent=Vt),Vo.forEach(o),Uo=i(e),E=r(e,"DIV",{class:!0});var qo=p(E);_(Fe.$$.fragment,qo),lt=i(qo),V=r(qo,"DIV",{class:!0});var Xo=p(V);_(Ce.$$.fragment,Xo),it=i(Xo),Se=r(Xo,"P",{"data-svelte-h":!0}),h(Se)!=="svelte-khengj"&&(Se.textContent=qt),Xo.forEach(o),qo.forEach(o),Eo=i(e),W=r(e,"H2",{class:!0});var Do=p(W);q=r(Do,"A",{id:!0,class:!0,href:!0});var dr=p(q);io=r(dr,"SPAN",{});var pr=p(io);_(xe.$$.fragment,pr),pr.forEach(o),dr.forEach(o),ct=i(Do),Ve=r(Do,"SPAN",{"data-svelte-h":!0}),h(Ve)!=="svelte-1k0thbp"&&(Ve.textContent=Xt),Do.forEach(o),Wo=i(e),z=r(e,"DIV",{class:!0});var to=p(z);_(Me.$$.fragment,to),mt=i(to),qe=r(to,"P",{"data-svelte-h":!0}),h(qe)!=="svelte-dhy8rj"&&(qe.textContent=Dt),dt=i(to),X=r(to,"DIV",{class:!0});var Yo=p(X);_(Ie.$$.fragment,Yo),pt=i(Yo),Xe=r(Yo,"P",{"data-svelte-h":!0}),h(Xe)!=="svelte-1x3yxsa"&&(Xe.textContent=Yt),Yo.forEach(o),to.forEach(o),Zo=i(e),Z=r(e,"H2",{class:!0});var Qo=p(Z);D=r(Qo,"A",{id:!0,class:!0,href:!0});var hr=p(D);co=r(hr,"SPAN",{});var fr=p(co);_(ze.$$.fragment,fr),fr.forEach(o),hr.forEach(o),ht=i(Qo),De=r(Qo,"SPAN",{"data-svelte-h":!0}),h(De)!=="svelte-bd594z"&&(De.textContent=Qt),Qo.forEach(o),Ro=i(e),J=r(e,"DIV",{class:!0});var ro=p(J);_(Je.$$.fragment,ro),ft=i(ro),Ye=r(ro,"P",{"data-svelte-h":!0}),h(Ye)!=="svelte-1bdtzc7"&&(Ye.innerHTML=Ot),gt=i(ro),M=r(ro,"DIV",{class:!0});var te=p(M);_(ke.$$.fragment,te),ut=i(te),Qe=r(te,"P",{"data-svelte-h":!0}),h(Qe)!=="svelte-ohfs2y"&&(Qe.innerHTML=Kt),_t=i(te),_(Y.$$.fragment,te),vt=i(te),_(Q.$$.fragment,te),te.forEach(o),ro.forEach(o),Bo=i(e),R=r(e,"H2",{class:!0});var Oo=p(R);O=r(Oo,"A",{id:!0,class:!0,href:!0});var gr=p(O);mo=r(gr,"SPAN",{});var ur=p(mo);_(je.$$.fragment,ur),ur.forEach(o),gr.forEach(o),bt=i(Oo),Oe=r(Oo,"SPAN",{"data-svelte-h":!0}),h(Oe)!=="svelte-1j2tkrs"&&(Oe.textContent=er),Oo.forEach(o),Ho=i(e),C=r(e,"DIV",{class:!0});var re=p(C);_(Ne.$$.fragment,re),yt=i(re),Ke=r(re,"P",{"data-svelte-h":!0}),h(Ke)!=="svelte-7k9kh1"&&(Ke.textContent=or),wt=i(re),eo=r(re,"P",{"data-svelte-h":!0}),h(eo)!=="svelte-68lg8f"&&(eo.innerHTML=tr),Pt=i(re),I=r(re,"DIV",{class:!0});var se=p(I);_(Ue.$$.fragment,se),Tt=i(se),oo=r(se,"P",{"data-svelte-h":!0}),h(oo)!=="svelte-1djpqu0"&&(oo.innerHTML=rr),$t=i(se),_(K.$$.fragment,se),Ft=i(se),_(ee.$$.fragment,se),se.forEach(o),re.forEach(o),Lo=i(e),po=r(e,"P",{}),p(po).forEach(o),this.h()},h(){d(m,"name","hf:doc:metadata"),d(m,"content",JSON.stringify(Jr)),d(c,"id","poolformer"),d(c,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(c,"href","#poolformer"),d(P,"class","relative group"),d(H,"id","overview"),d(H,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(H,"href","#overview"),d(k,"class","relative group"),d(pe,"width","600"),br(pe.src,Nt="https://user-images.githubusercontent.com/15921929/142746124-1ab7635d-2536-4a0e-ad43-b4fe2c5a525d.png")||d(pe,"src",Nt),d(L,"id","resources"),d(L,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(L,"href","#resources"),d(j,"class","relative group"),d(G,"id","transformers.PoolFormerConfig"),d(G,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(G,"href","#transformers.PoolFormerConfig"),d(N,"class","relative group"),d(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(S,"id","transformers.PoolFormerFeatureExtractor"),d(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(S,"href","#transformers.PoolFormerFeatureExtractor"),d(U,"class","relative group"),d(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(q,"id","transformers.PoolFormerImageProcessor"),d(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(q,"href","#transformers.PoolFormerImageProcessor"),d(W,"class","relative group"),d(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(D,"id","transformers.PoolFormerModel"),d(D,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(D,"href","#transformers.PoolFormerModel"),d(Z,"class","relative group"),d(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(O,"id","transformers.PoolFormerForImageClassification"),d(O,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(O,"href","#transformers.PoolFormerForImageClassification"),d(R,"class","relative group"),d(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(C,"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,s){n(document.head,m),a(e,T,s),a(e,f,s),a(e,g,s),a(e,P,s),n(P,c),n(c,$),v(ae,$,null),n(P,Ko),n(P,Ze),a(e,_o,s),a(e,k,s),n(k,H),n(H,so),v(le,so,null),n(k,et),n(k,Re),a(e,vo,s),a(e,ie,s),a(e,bo,s),a(e,ce,s),a(e,yo,s),a(e,me,s),a(e,wo,s),a(e,de,s),a(e,Po,s),a(e,pe,s),a(e,To,s),a(e,he,s),a(e,$o,s),a(e,fe,s),a(e,Fo,s),a(e,ge,s),a(e,Co,s),a(e,ue,s),a(e,xo,s),a(e,j,s),n(j,L),n(L,no),v(_e,no,null),n(j,ot),n(j,Be),a(e,Mo,s),a(e,ve,s),a(e,Io,s),v(be,e,s),a(e,zo,s),a(e,ye,s),a(e,Jo,s),a(e,we,s),a(e,ko,s),a(e,N,s),n(N,G),n(G,ao),v(Pe,ao,null),n(N,tt),n(N,He),a(e,jo,s),a(e,F,s),v(Te,F,null),n(F,rt),n(F,Le),n(F,st),n(F,Ge),n(F,nt),v(A,F,null),a(e,No,s),a(e,U,s),n(U,S),n(S,lo),v($e,lo,null),n(U,at),n(U,Ae),a(e,Uo,s),a(e,E,s),v(Fe,E,null),n(E,lt),n(E,V),v(Ce,V,null),n(V,it),n(V,Se),a(e,Eo,s),a(e,W,s),n(W,q),n(q,io),v(xe,io,null),n(W,ct),n(W,Ve),a(e,Wo,s),a(e,z,s),v(Me,z,null),n(z,mt),n(z,qe),n(z,dt),n(z,X),v(Ie,X,null),n(X,pt),n(X,Xe),a(e,Zo,s),a(e,Z,s),n(Z,D),n(D,co),v(ze,co,null),n(Z,ht),n(Z,De),a(e,Ro,s),a(e,J,s),v(Je,J,null),n(J,ft),n(J,Ye),n(J,gt),n(J,M),v(ke,M,null),n(M,ut),n(M,Qe),n(M,_t),v(Y,M,null),n(M,vt),v(Q,M,null),a(e,Bo,s),a(e,R,s),n(R,O),n(O,mo),v(je,mo,null),n(R,bt),n(R,Oe),a(e,Ho,s),a(e,C,s),v(Ne,C,null),n(C,yt),n(C,Ke),n(C,wt),n(C,eo),n(C,Pt),n(C,I),v(Ue,I,null),n(I,Tt),n(I,oo),n(I,$t),v(K,I,null),n(I,Ft),v(ee,I,null),a(e,Lo,s),a(e,po,s),Go=!0},p(e,[s]){const Ee={};s&2&&(Ee.$$scope={dirty:s,ctx:e}),A.$set(Ee);const ho={};s&2&&(ho.$$scope={dirty:s,ctx:e}),Y.$set(ho);const fo={};s&2&&(fo.$$scope={dirty:s,ctx:e}),Q.$set(fo);const We={};s&2&&(We.$$scope={dirty:s,ctx:e}),K.$set(We);const go={};s&2&&(go.$$scope={dirty:s,ctx:e}),ee.$set(go)},i(e){Go||(b(ae.$$.fragment,e),b(le.$$.fragment,e),b(_e.$$.fragment,e),b(be.$$.fragment,e),b(Pe.$$.fragment,e),b(Te.$$.fragment,e),b(A.$$.fragment,e),b($e.$$.fragment,e),b(Fe.$$.fragment,e),b(Ce.$$.fragment,e),b(xe.$$.fragment,e),b(Me.$$.fragment,e),b(Ie.$$.fragment,e),b(ze.$$.fragment,e),b(Je.$$.fragment,e),b(ke.$$.fragment,e),b(Y.$$.fragment,e),b(Q.$$.fragment,e),b(je.$$.fragment,e),b(Ne.$$.fragment,e),b(Ue.$$.fragment,e),b(K.$$.fragment,e),b(ee.$$.fragment,e),Go=!0)},o(e){y(ae.$$.fragment,e),y(le.$$.fragment,e),y(_e.$$.fragment,e),y(be.$$.fragment,e),y(Pe.$$.fragment,e),y(Te.$$.fragment,e),y(A.$$.fragment,e),y($e.$$.fragment,e),y(Fe.$$.fragment,e),y(Ce.$$.fragment,e),y(xe.$$.fragment,e),y(Me.$$.fragment,e),y(Ie.$$.fragment,e),y(ze.$$.fragment,e),y(Je.$$.fragment,e),y(ke.$$.fragment,e),y(Y.$$.fragment,e),y(Q.$$.fragment,e),y(je.$$.fragment,e),y(Ne.$$.fragment,e),y(Ue.$$.fragment,e),y(K.$$.fragment,e),y(ee.$$.fragment,e),Go=!1},d(e){e&&(o(T),o(f),o(g),o(P),o(_o),o(k),o(vo),o(ie),o(bo),o(ce),o(yo),o(me),o(wo),o(de),o(Po),o(pe),o(To),o(he),o($o),o(fe),o(Fo),o(ge),o(Co),o(ue),o(xo),o(j),o(Mo),o(ve),o(Io),o(zo),o(ye),o(Jo),o(we),o(ko),o(N),o(jo),o(F),o(No),o(U),o(Uo),o(E),o(Eo),o(W),o(Wo),o(z),o(Zo),o(Z),o(Ro),o(J),o(Bo),o(R),o(Ho),o(C),o(Lo),o(po)),o(m),w(ae),w(le),w(_e),w(be,e),w(Pe),w(Te),w(A),w($e),w(Fe),w(Ce),w(xe),w(Me),w(Ie),w(ze),w(Je),w(ke),w(Y),w(Q),w(je),w(Ne),w(Ue),w(K),w(ee)}}}const Jr={local:"poolformer",sections:[{local:"overview",title:"Overview"},{local:"resources",title:"Resources"},{local:"transformers.PoolFormerConfig",title:"PoolFormerConfig"},{local:"transformers.PoolFormerFeatureExtractor",title:"PoolFormerFeatureExtractor"},{local:"transformers.PoolFormerImageProcessor",title:"PoolFormerImageProcessor"},{local:"transformers.PoolFormerModel",title:"PoolFormerModel"},{local:"transformers.PoolFormerForImageClassification",title:"PoolFormerForImageClassification"}],title:"PoolFormer"};function kr(x){return yr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Hr extends wr{constructor(m){super(),Pr(this,m,kr,zr,vr,{})}}export{Hr as component};
