import{s as Ge,o as ze,n as be}from"../chunks/scheduler.25b97de1.js";import{S as Be,i as He,g as m,s as l,r as y,A as Pe,h as f,f as r,c as i,j as fe,u as w,x as _,k as ge,y as c,a as p,v as M,d as $,t as T,w as v}from"../chunks/index.d9030fc9.js";import{T as We}from"../chunks/Tip.baa67368.js";import{D as _e}from"../chunks/Docstring.e257edda.js";import{C as Ue}from"../chunks/CodeBlock.e6cd0d95.js";import{F as Ee,M as ke}from"../chunks/Markdown.7217f838.js";import{E as Je}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{P as Xe}from"../chunks/PipelineTag.5f100392.js";import{H as Ie,E as Le}from"../chunks/EditOnGithub.91d95064.js";function qe(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFJlZ05ldENvbmZpZyUyQyUyMFJlZ05ldE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFJlZ05ldCUyMHJlZ25ldC15LTQwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMFJlZ05ldENvbmZpZygpJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMHJlZ25ldC15LTQwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBSZWdOZXRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> RegNetConfig, RegNetModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a RegNet regnet-y-40 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = RegNetConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the regnet-y-40 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetModel(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(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function Ye(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function Qe(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiUyQyUyMHRydXN0X3JlbW90ZV9jb2RlJTNEVHJ1ZSklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFJlZ05ldE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, RegNetModel
<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;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&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">1088</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function Se(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function Ae(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyJTJDJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQW1vZGVsJTIwJTNEJTIwUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, RegNetForImageClassification
<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;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = RegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&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`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function De(N){let e,g="## RegNetModel[[transformers.RegNetModel]]",s,t,d,n,u,he=`The bare RegNet model outputting raw features 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> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matters related to general usage and
behavior.`,O,F,P,K,E,ue='The <a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetModel">RegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ee,V,pe,I,te,X,ae="## RegNetForImageClassification[[transformers.RegNetForImageClassification]]",B,j,G,oe,q,re=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Y,H,le=`This model is 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 matters related to general usage and
behavior.`,ie,x,L,A,R,ne='The <a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetForImageClassification">RegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',se,z,me,k,Q;return d=new _e({props:{name:"class transformers.RegNetModel",anchor:"transformers.RegNetModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RegNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/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/vr_30623/src/transformers/models/regnet/modeling_regnet.py#L317"}}),P=new _e({props:{name:"forward",anchor:"transformers.RegNetModel.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.RegNetModel.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/pr_30623/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/pr_30623/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.RegNetModel.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.RegNetModel.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/pr_30623/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_regnet.py#L332",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.modeling_outputs.BaseModelOutputWithPoolingAndNoAttention</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/pr_30623/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</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>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state after a pooling operation on the spatial dimensions.</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.modeling_outputs.BaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),V=new We({props:{$$slots:{default:[Ye]},$$scope:{ctx:N}}}),I=new Je({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[Qe]},$$scope:{ctx:N}}}),G=new _e({props:{name:"class transformers.RegNetForImageClassification",anchor:"transformers.RegNetForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.RegNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/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/vr_30623/src/transformers/models/regnet/modeling_regnet.py#L368"}}),L=new _e({props:{name:"forward",anchor:"transformers.RegNetForImageClassification.forward",parameters:[{name:"pixel_values",val:": Optional = None"},{name:"labels",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.RegNetForImageClassification.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/pr_30623/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/pr_30623/en/model_doc/perceiver#transformers.PerceiverFeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.RegNetForImageClassification.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.RegNetForImageClassification.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/pr_30623/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.RegNetForImageClassification.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 &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_regnet.py#L389",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30623/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/pr_30623/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30623/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),z=new We({props:{$$slots:{default:[Se]},$$scope:{ctx:N}}}),k=new Je({props:{anchor:"transformers.RegNetForImageClassification.forward.example",$$slots:{default:[Ae]},$$scope:{ctx:N}}}),{c(){e=m("p"),e.textContent=g,s=l(),t=m("div"),y(d.$$.fragment),n=l(),u=m("p"),u.innerHTML=he,O=l(),F=m("div"),y(P.$$.fragment),K=l(),E=m("p"),E.innerHTML=ue,ee=l(),y(V.$$.fragment),pe=l(),y(I.$$.fragment),te=l(),X=m("p"),X.textContent=ae,B=l(),j=m("div"),y(G.$$.fragment),oe=l(),q=m("p"),q.textContent=re,Y=l(),H=m("p"),H.innerHTML=le,ie=l(),x=m("div"),y(L.$$.fragment),A=l(),R=m("p"),R.innerHTML=ne,se=l(),y(z.$$.fragment),me=l(),y(k.$$.fragment),this.h()},l(o){e=f(o,"P",{"data-svelte-h":!0}),_(e)!=="svelte-1if6peg"&&(e.textContent=g),s=i(o),t=f(o,"DIV",{class:!0});var h=fe(t);w(d.$$.fragment,h),n=i(h),u=f(h,"P",{"data-svelte-h":!0}),_(u)!=="svelte-l9mn94"&&(u.innerHTML=he),O=i(h),F=f(h,"DIV",{class:!0});var J=fe(F);w(P.$$.fragment,J),K=i(J),E=f(J,"P",{"data-svelte-h":!0}),_(E)!=="svelte-1g4jzy2"&&(E.innerHTML=ue),ee=i(J),w(V.$$.fragment,J),pe=i(J),w(I.$$.fragment,J),J.forEach(r),h.forEach(r),te=i(o),X=f(o,"P",{"data-svelte-h":!0}),_(X)!=="svelte-1aj1jle"&&(X.textContent=ae),B=i(o),j=f(o,"DIV",{class:!0});var U=fe(j);w(G.$$.fragment,U),oe=i(U),q=f(U,"P",{"data-svelte-h":!0}),_(q)!=="svelte-ipsb0r"&&(q.textContent=re),Y=i(U),H=f(U,"P",{"data-svelte-h":!0}),_(H)!=="svelte-1h85h9v"&&(H.innerHTML=le),ie=i(U),x=f(U,"DIV",{class:!0});var W=fe(x);w(L.$$.fragment,W),A=i(W),R=f(W,"P",{"data-svelte-h":!0}),_(R)!=="svelte-1kbw8mw"&&(R.innerHTML=ne),se=i(W),w(z.$$.fragment,W),me=i(W),w(k.$$.fragment,W),W.forEach(r),U.forEach(r),this.h()},h(){ge(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,h){p(o,e,h),p(o,s,h),p(o,t,h),M(d,t,null),c(t,n),c(t,u),c(t,O),c(t,F),M(P,F,null),c(F,K),c(F,E),c(F,ee),M(V,F,null),c(F,pe),M(I,F,null),p(o,te,h),p(o,X,h),p(o,B,h),p(o,j,h),M(G,j,null),c(j,oe),c(j,q),c(j,Y),c(j,H),c(j,ie),c(j,x),M(L,x,null),c(x,A),c(x,R),c(x,se),M(z,x,null),c(x,me),M(k,x,null),Q=!0},p(o,h){const J={};h&2&&(J.$$scope={dirty:h,ctx:o}),V.$set(J);const U={};h&2&&(U.$$scope={dirty:h,ctx:o}),I.$set(U);const W={};h&2&&(W.$$scope={dirty:h,ctx:o}),z.$set(W);const ce={};h&2&&(ce.$$scope={dirty:h,ctx:o}),k.$set(ce)},i(o){Q||($(d.$$.fragment,o),$(P.$$.fragment,o),$(V.$$.fragment,o),$(I.$$.fragment,o),$(G.$$.fragment,o),$(L.$$.fragment,o),$(z.$$.fragment,o),$(k.$$.fragment,o),Q=!0)},o(o){T(d.$$.fragment,o),T(P.$$.fragment,o),T(V.$$.fragment,o),T(I.$$.fragment,o),T(G.$$.fragment,o),T(L.$$.fragment,o),T(z.$$.fragment,o),T(k.$$.fragment,o),Q=!1},d(o){o&&(r(e),r(s),r(t),r(te),r(X),r(B),r(j)),v(d),v(P),v(V),v(I),v(G),v(L),v(z),v(k)}}}function Oe(N){let e,g;return e=new ke({props:{$$slots:{default:[De]},$$scope:{ctx:N}}}),{c(){y(e.$$.fragment)},l(s){w(e.$$.fragment,s)},m(s,t){M(e,s,t),g=!0},p(s,t){const d={};t&2&&(d.$$scope={dirty:t,ctx:s}),e.$set(d)},i(s){g||($(e.$$.fragment,s),g=!0)},o(s){T(e.$$.fragment,s),g=!1},d(s){v(e,s)}}}function Ke(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function et(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0TW9kZWwlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiUyQyUyMHRydXN0X3JlbW90ZV9jb2RlJTNEVHJ1ZSklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGUmVnTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFRegNetModel
<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;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </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">1088</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function tt(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function st(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIlMkMlMjB0cnVzdF9yZW1vdGVfY29kZSUzRFRydWUpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBURlJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBpbnQodGYubWF0aC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFRegNetForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> tensorflow <span class="hljs-keyword">as</span> tf
<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;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFRegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;tf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </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 = <span class="hljs-built_in">int</span>(tf.math.argmax(logits, axis=-<span class="hljs-number">1</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(model.config.id2label[predicted_label])
tabby, tabby cat`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function nt(N){let e,g="## TFRegNetModel[[transformers.TFRegNetModel]]",s,t,d,n,u,he=`The bare RegNet model outputting raw features without any specific head on top.
This model is a Tensorflow
<a href="https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer" rel="nofollow">keras.layers.Layer</a> sub-class. Use it as a
regular Tensorflow Module and refer to the Tensorflow documentation for all matter related to general usage and
behavior.`,O,F,P,K,E,ue='The <a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.TFRegNetModel">TFRegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ee,V,pe,I,te,X,ae="## TFRegNetForImageClassification[[transformers.TFRegNetForImageClassification]]",B,j,G,oe,q,re=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Y,H,le=`This model is a Tensorflow
<a href="https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer" rel="nofollow">keras.layers.Layer</a> sub-class. Use it as a
regular Tensorflow Module and refer to the Tensorflow documentation for all matter related to general usage and
behavior.`,ie,x,L,A,R,ne='The <a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.TFRegNetForImageClassification">TFRegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',se,z,me,k,Q;return d=new _e({props:{name:"class transformers.TFRegNetModel",anchor:"transformers.TFRegNetModel",parameters:[{name:"config",val:": RegNetConfig"},{name:"*inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRegNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_tf_regnet.py#L484"}}),P=new _e({props:{name:"call",anchor:"transformers.TFRegNetModel.call",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFRegNetModel.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/pr_30623/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>ConveNextImageProcessor.__call__</code> for details.`,name:"pixel_values"},{anchor:"transformers.TFRegNetModel.call.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.TFRegNetModel.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_30623/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_tf_regnet.py#L493",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndNoAttention</code> or a tuple of <code>tf.Tensor</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/pr_30623/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>tf.Tensor</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>pooler_output</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state after a pooling operation on the spatial dimensions.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(tf.Tensor)</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>tf.Tensor</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.modeling_tf_outputs.TFBaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(tf.Tensor)</code></p>
`}}),V=new We({props:{$$slots:{default:[Ke]},$$scope:{ctx:N}}}),I=new Je({props:{anchor:"transformers.TFRegNetModel.call.example",$$slots:{default:[et]},$$scope:{ctx:N}}}),G=new _e({props:{name:"class transformers.TFRegNetForImageClassification",anchor:"transformers.TFRegNetForImageClassification",parameters:[{name:"config",val:": RegNetConfig"},{name:"*inputs",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFRegNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/en/main_classes/model#transformers.TFPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_tf_regnet.py#L538"}}),L=new _e({props:{name:"call",anchor:"transformers.TFRegNetForImageClassification.call",parameters:[{name:"pixel_values",val:": Optional = None"},{name:"labels",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFRegNetForImageClassification.call.pixel_values",description:`<strong>pixel_values</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Pixel values. Pixel values can be obtained using <a href="/docs/transformers/pr_30623/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<code>ConveNextImageProcessor.__call__</code> for details.`,name:"pixel_values"},{anchor:"transformers.TFRegNetForImageClassification.call.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.TFRegNetForImageClassification.call.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_30623/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.TFRegNetForImageClassification.call.labels",description:`<strong>labels</strong> (<code>tf.Tensor</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 &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_tf_regnet.py#L556",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30623/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or a tuple of <code>tf.Tensor</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/pr_30623/en/model_doc/regnet#transformers.RegNetConfig"
>RegNetConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>tf.Tensor</code> of shape <code>(batch_size, )</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>tf.Tensor</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(tf.Tensor)</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>tf.Tensor</code> (one for the output of the embeddings + one for the output of each layer) 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(tf.Tensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>tf.Tensor</code> (one for each layer) 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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30623/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),z=new We({props:{$$slots:{default:[tt]},$$scope:{ctx:N}}}),k=new Je({props:{anchor:"transformers.TFRegNetForImageClassification.call.example",$$slots:{default:[st]},$$scope:{ctx:N}}}),{c(){e=m("p"),e.textContent=g,s=l(),t=m("div"),y(d.$$.fragment),n=l(),u=m("p"),u.innerHTML=he,O=l(),F=m("div"),y(P.$$.fragment),K=l(),E=m("p"),E.innerHTML=ue,ee=l(),y(V.$$.fragment),pe=l(),y(I.$$.fragment),te=l(),X=m("p"),X.textContent=ae,B=l(),j=m("div"),y(G.$$.fragment),oe=l(),q=m("p"),q.textContent=re,Y=l(),H=m("p"),H.innerHTML=le,ie=l(),x=m("div"),y(L.$$.fragment),A=l(),R=m("p"),R.innerHTML=ne,se=l(),y(z.$$.fragment),me=l(),y(k.$$.fragment),this.h()},l(o){e=f(o,"P",{"data-svelte-h":!0}),_(e)!=="svelte-18u9lg0"&&(e.textContent=g),s=i(o),t=f(o,"DIV",{class:!0});var h=fe(t);w(d.$$.fragment,h),n=i(h),u=f(h,"P",{"data-svelte-h":!0}),_(u)!=="svelte-xzl4r8"&&(u.innerHTML=he),O=i(h),F=f(h,"DIV",{class:!0});var J=fe(F);w(P.$$.fragment,J),K=i(J),E=f(J,"P",{"data-svelte-h":!0}),_(E)!=="svelte-tqp0g6"&&(E.innerHTML=ue),ee=i(J),w(V.$$.fragment,J),pe=i(J),w(I.$$.fragment,J),J.forEach(r),h.forEach(r),te=i(o),X=f(o,"P",{"data-svelte-h":!0}),_(X)!=="svelte-hrpvr6"&&(X.textContent=ae),B=i(o),j=f(o,"DIV",{class:!0});var U=fe(j);w(G.$$.fragment,U),oe=i(U),q=f(U,"P",{"data-svelte-h":!0}),_(q)!=="svelte-ipsb0r"&&(q.textContent=re),Y=i(U),H=f(U,"P",{"data-svelte-h":!0}),_(H)!=="svelte-1g64psv"&&(H.innerHTML=le),ie=i(U),x=f(U,"DIV",{class:!0});var W=fe(x);w(L.$$.fragment,W),A=i(W),R=f(W,"P",{"data-svelte-h":!0}),_(R)!=="svelte-ar4vls"&&(R.innerHTML=ne),se=i(W),w(z.$$.fragment,W),me=i(W),w(k.$$.fragment,W),W.forEach(r),U.forEach(r),this.h()},h(){ge(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(o,h){p(o,e,h),p(o,s,h),p(o,t,h),M(d,t,null),c(t,n),c(t,u),c(t,O),c(t,F),M(P,F,null),c(F,K),c(F,E),c(F,ee),M(V,F,null),c(F,pe),M(I,F,null),p(o,te,h),p(o,X,h),p(o,B,h),p(o,j,h),M(G,j,null),c(j,oe),c(j,q),c(j,Y),c(j,H),c(j,ie),c(j,x),M(L,x,null),c(x,A),c(x,R),c(x,se),M(z,x,null),c(x,me),M(k,x,null),Q=!0},p(o,h){const J={};h&2&&(J.$$scope={dirty:h,ctx:o}),V.$set(J);const U={};h&2&&(U.$$scope={dirty:h,ctx:o}),I.$set(U);const W={};h&2&&(W.$$scope={dirty:h,ctx:o}),z.$set(W);const ce={};h&2&&(ce.$$scope={dirty:h,ctx:o}),k.$set(ce)},i(o){Q||($(d.$$.fragment,o),$(P.$$.fragment,o),$(V.$$.fragment,o),$(I.$$.fragment,o),$(G.$$.fragment,o),$(L.$$.fragment,o),$(z.$$.fragment,o),$(k.$$.fragment,o),Q=!0)},o(o){T(d.$$.fragment,o),T(P.$$.fragment,o),T(V.$$.fragment,o),T(I.$$.fragment,o),T(G.$$.fragment,o),T(L.$$.fragment,o),T(z.$$.fragment,o),T(k.$$.fragment,o),Q=!1},d(o){o&&(r(e),r(s),r(t),r(te),r(X),r(B),r(j)),v(d),v(P),v(V),v(I),v(G),v(L),v(z),v(k)}}}function at(N){let e,g;return e=new ke({props:{$$slots:{default:[nt]},$$scope:{ctx:N}}}),{c(){y(e.$$.fragment)},l(s){w(e.$$.fragment,s)},m(s,t){M(e,s,t),g=!0},p(s,t){const d={};t&2&&(d.$$scope={dirty:t,ctx:s}),e.$set(d)},i(s){g||($(e.$$.fragment,s),g=!0)},o(s){T(e.$$.fragment,s),g=!1},d(s){v(e,s)}}}function ot(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function rt(N){let e,g="Examples:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZWdOZXRNb2RlbCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBGbGF4UmVnTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIybnAlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGU=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxRegNetModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRegNetModel.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;np&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_states = outputs.last_hidden_state`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-kvfsh7"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function lt(N){let e,g=`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(){e=m("p"),e.innerHTML=g},l(s){e=f(s,"P",{"data-svelte-h":!0}),_(e)!=="svelte-fincs2"&&(e.innerHTML=g)},m(s,t){p(s,e,t)},p:be,d(s){s&&r(e)}}}function it(N){let e,g="Example:",s,t,d;return t=new Ue({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZWdOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwamF4JTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMEZsYXhSZWdOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMm5wJTIyKSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfY2xhc3NfaWR4JTIwJTNEJTIwamF4Lm51bXB5LmFyZ21heChsb2dpdHMlMkMlMjBheGlzJTNELTEpJTBBcHJpbnQoJTIyUHJlZGljdGVkJTIwY2xhc3MlM0ElMjIlMkMlMjBtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfY2xhc3NfaWR4Lml0ZW0oKSU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxRegNetForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> jax
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> requests

<span class="hljs-meta">&gt;&gt;&gt; </span>url = <span class="hljs-string">&quot;http://images.cocodataset.org/val2017/000000039769.jpg&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image = Image.<span class="hljs-built_in">open</span>(requests.get(url, stream=<span class="hljs-literal">True</span>).raw)

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxRegNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/regnet-y-040&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;np&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.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_class_idx = jax.numpy.argmax(logits, axis=-<span class="hljs-number">1</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;Predicted class:&quot;</span>, model.config.id2label[predicted_class_idx.item()])`,wrap:!1}}),{c(){e=m("p"),e.textContent=g,s=l(),y(t.$$.fragment)},l(n){e=f(n,"P",{"data-svelte-h":!0}),_(e)!=="svelte-11lpom8"&&(e.textContent=g),s=i(n),w(t.$$.fragment,n)},m(n,u){p(n,e,u),p(n,s,u),M(t,n,u),d=!0},p:be,i(n){d||($(t.$$.fragment,n),d=!0)},o(n){T(t.$$.fragment,n),d=!1},d(n){n&&(r(e),r(s)),v(t,n)}}}function dt(N){let e,g="## FlaxRegNetModel[[transformers.FlaxRegNetModel]]",s,t,d,n,u,he="The bare RegNet model outputting raw features without any specific head on top.",O,F,P=`This model inherits from <a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`,K,E,ue=`This model is also a
<a href="https://flax.readthedocs.io/en/latest/api_reference/flax.linen/module.html" rel="nofollow">flax.linen.Module</a> subclass. Use it as
a regular Flax linen Module and refer to the Flax documentation for all matter related to general usage and
behavior.`,ee,V,pe="Finally, this model supports inherent JAX features such as:",I,te,X='<li><a href="https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit" rel="nofollow">Just-In-Time (JIT) compilation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation" rel="nofollow">Automatic Differentiation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap" rel="nofollow">Vectorization</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap" rel="nofollow">Parallelization</a></li>',ae,B,j,G,oe,q="The <code>FlaxRegNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",re,Y,H,le,ie,x,L="## FlaxRegNetForImageClassification[[transformers.FlaxRegNetForImageClassification]]",A,R,ne,se,z,me=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,k,Q,o=`This model inherits from <a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel">FlaxPreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading, saving and converting weights from PyTorch models)`,h,J,U=`This model is also a
<a href="https://flax.readthedocs.io/en/latest/api_reference/flax.linen/module.html" rel="nofollow">flax.linen.Module</a> subclass. Use it as
a regular Flax linen Module and refer to the Flax documentation for all matter related to general usage and
behavior.`,W,ce,je="Finally, this model supports inherent JAX features such as:",Ze,xe,we='<li><a href="https://jax.readthedocs.io/en/latest/jax.html#just-in-time-compilation-jit" rel="nofollow">Just-In-Time (JIT) compilation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#automatic-differentiation" rel="nofollow">Automatic Differentiation</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#vectorization-vmap" rel="nofollow">Vectorization</a></li> <li><a href="https://jax.readthedocs.io/en/latest/jax.html#parallelization-pmap" rel="nofollow">Parallelization</a></li>',Ce,S,ye,Me,$e,Ne="The <code>FlaxRegNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",Re,a,b,D,Fe;return d=new _e({props:{name:"class transformers.FlaxRegNetModel",anchor:"transformers.FlaxRegNetModel",parameters:[{name:"config",val:": RegNetConfig"},{name:"input_shape",val:" = (1, 224, 224, 3)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRegNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxRegNetModel.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_flax_regnet.py#L686"}}),j=new _e({props:{name:"__call__",anchor:"transformers.FlaxRegNetModel.__call__",parameters:[{name:"pixel_values",val:""},{name:"params",val:": dict = None"},{name:"train",val:": bool = False"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_flax_regnet.py#L597",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_30623/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.regnet.configuration_regnet.RegNetConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>jnp.ndarray</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>jnp.ndarray</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) further processed by a
Linear layer and a Tanh activation function. The Linear layer weights are trained from the next sentence
prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(jnp.ndarray)</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>jnp.ndarray</code> (one for the output of the embeddings + one for the output of each layer) 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(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>jnp.ndarray</code> (one for each layer) 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>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_30623/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Y=new We({props:{$$slots:{default:[ot]},$$scope:{ctx:N}}}),le=new Je({props:{anchor:"transformers.FlaxRegNetModel.__call__.example",$$slots:{default:[rt]},$$scope:{ctx:N}}}),ne=new _e({props:{name:"class transformers.FlaxRegNetForImageClassification",anchor:"transformers.FlaxRegNetForImageClassification",parameters:[{name:"config",val:": RegNetConfig"},{name:"input_shape",val:" = (1, 224, 224, 3)"},{name:"seed",val:": int = 0"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"_do_init",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FlaxRegNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetConfig">RegNetConfig</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/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.FlaxRegNetForImageClassification.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified all the computation will be performed with the given <code>dtype</code>.</p>
<p><strong>Note that this only specifies the dtype of the computation and does not influence the dtype of model
parameters.</strong></p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/pr_30623/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_flax_regnet.py#L776"}}),ye=new _e({props:{name:"__call__",anchor:"transformers.FlaxRegNetForImageClassification.__call__",parameters:[{name:"pixel_values",val:""},{name:"params",val:": dict = None"},{name:"train",val:": bool = False"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/modeling_flax_regnet.py#L597",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.modeling_flax_outputs.FlaxImageClassifierOutputWithNoAttention</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 (<code>&lt;class 'transformers.models.regnet.configuration_regnet.RegNetConfig'&gt;</code>) and inputs.</p>
<ul>
<li><strong>logits</strong> (<code>jnp.ndarray</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(jnp.ndarray)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when</li>
<li><strong><code>config.output_hidden_states=True</code>):</strong>
Tuple of <code>jnp.ndarray</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:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.modeling_flax_outputs.FlaxImageClassifierOutputWithNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),a=new We({props:{$$slots:{default:[lt]},$$scope:{ctx:N}}}),D=new Je({props:{anchor:"transformers.FlaxRegNetForImageClassification.__call__.example",$$slots:{default:[it]},$$scope:{ctx:N}}}),{c(){e=m("p"),e.textContent=g,s=l(),t=m("div"),y(d.$$.fragment),n=l(),u=m("p"),u.textContent=he,O=l(),F=m("p"),F.innerHTML=P,K=l(),E=m("p"),E.innerHTML=ue,ee=l(),V=m("p"),V.textContent=pe,I=l(),te=m("ul"),te.innerHTML=X,ae=l(),B=m("div"),y(j.$$.fragment),G=l(),oe=m("p"),oe.innerHTML=q,re=l(),y(Y.$$.fragment),H=l(),y(le.$$.fragment),ie=l(),x=m("p"),x.textContent=L,A=l(),R=m("div"),y(ne.$$.fragment),se=l(),z=m("p"),z.textContent=me,k=l(),Q=m("p"),Q.innerHTML=o,h=l(),J=m("p"),J.innerHTML=U,W=l(),ce=m("p"),ce.textContent=je,Ze=l(),xe=m("ul"),xe.innerHTML=we,Ce=l(),S=m("div"),y(ye.$$.fragment),Me=l(),$e=m("p"),$e.innerHTML=Ne,Re=l(),y(a.$$.fragment),b=l(),y(D.$$.fragment),this.h()},l(C){e=f(C,"P",{"data-svelte-h":!0}),_(e)!=="svelte-6lbuv8"&&(e.textContent=g),s=i(C),t=f(C,"DIV",{class:!0});var Z=fe(t);w(d.$$.fragment,Z),n=i(Z),u=f(Z,"P",{"data-svelte-h":!0}),_(u)!=="svelte-1lrc7eh"&&(u.textContent=he),O=i(Z),F=f(Z,"P",{"data-svelte-h":!0}),_(F)!=="svelte-1audslf"&&(F.innerHTML=P),K=i(Z),E=f(Z,"P",{"data-svelte-h":!0}),_(E)!=="svelte-10nfsf3"&&(E.innerHTML=ue),ee=i(Z),V=f(Z,"P",{"data-svelte-h":!0}),_(V)!=="svelte-1pplc4a"&&(V.textContent=pe),I=i(Z),te=f(Z,"UL",{"data-svelte-h":!0}),_(te)!=="svelte-m6h3rq"&&(te.innerHTML=X),ae=i(Z),B=f(Z,"DIV",{class:!0});var Te=fe(B);w(j.$$.fragment,Te),G=i(Te),oe=f(Te,"P",{"data-svelte-h":!0}),_(oe)!=="svelte-1xwpegk"&&(oe.innerHTML=q),re=i(Te),w(Y.$$.fragment,Te),H=i(Te),w(le.$$.fragment,Te),Te.forEach(r),Z.forEach(r),ie=i(C),x=f(C,"P",{"data-svelte-h":!0}),_(x)!=="svelte-q2hx4w"&&(x.textContent=L),A=i(C),R=f(C,"DIV",{class:!0});var de=fe(R);w(ne.$$.fragment,de),se=i(de),z=f(de,"P",{"data-svelte-h":!0}),_(z)!=="svelte-ipsb0r"&&(z.textContent=me),k=i(de),Q=f(de,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-1audslf"&&(Q.innerHTML=o),h=i(de),J=f(de,"P",{"data-svelte-h":!0}),_(J)!=="svelte-10nfsf3"&&(J.innerHTML=U),W=i(de),ce=f(de,"P",{"data-svelte-h":!0}),_(ce)!=="svelte-1pplc4a"&&(ce.textContent=je),Ze=i(de),xe=f(de,"UL",{"data-svelte-h":!0}),_(xe)!=="svelte-m6h3rq"&&(xe.innerHTML=we),Ce=i(de),S=f(de,"DIV",{class:!0});var ve=fe(S);w(ye.$$.fragment,ve),Me=i(ve),$e=f(ve,"P",{"data-svelte-h":!0}),_($e)!=="svelte-1xwpegk"&&($e.innerHTML=Ne),Re=i(ve),w(a.$$.fragment,ve),b=i(ve),w(D.$$.fragment,ve),ve.forEach(r),de.forEach(r),this.h()},h(){ge(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ge(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(C,Z){p(C,e,Z),p(C,s,Z),p(C,t,Z),M(d,t,null),c(t,n),c(t,u),c(t,O),c(t,F),c(t,K),c(t,E),c(t,ee),c(t,V),c(t,I),c(t,te),c(t,ae),c(t,B),M(j,B,null),c(B,G),c(B,oe),c(B,re),M(Y,B,null),c(B,H),M(le,B,null),p(C,ie,Z),p(C,x,Z),p(C,A,Z),p(C,R,Z),M(ne,R,null),c(R,se),c(R,z),c(R,k),c(R,Q),c(R,h),c(R,J),c(R,W),c(R,ce),c(R,Ze),c(R,xe),c(R,Ce),c(R,S),M(ye,S,null),c(S,Me),c(S,$e),c(S,Re),M(a,S,null),c(S,b),M(D,S,null),Fe=!0},p(C,Z){const Te={};Z&2&&(Te.$$scope={dirty:Z,ctx:C}),Y.$set(Te);const de={};Z&2&&(de.$$scope={dirty:Z,ctx:C}),le.$set(de);const ve={};Z&2&&(ve.$$scope={dirty:Z,ctx:C}),a.$set(ve);const Ve={};Z&2&&(Ve.$$scope={dirty:Z,ctx:C}),D.$set(Ve)},i(C){Fe||($(d.$$.fragment,C),$(j.$$.fragment,C),$(Y.$$.fragment,C),$(le.$$.fragment,C),$(ne.$$.fragment,C),$(ye.$$.fragment,C),$(a.$$.fragment,C),$(D.$$.fragment,C),Fe=!0)},o(C){T(d.$$.fragment,C),T(j.$$.fragment,C),T(Y.$$.fragment,C),T(le.$$.fragment,C),T(ne.$$.fragment,C),T(ye.$$.fragment,C),T(a.$$.fragment,C),T(D.$$.fragment,C),Fe=!1},d(C){C&&(r(e),r(s),r(t),r(ie),r(x),r(A),r(R)),v(d),v(j),v(Y),v(le),v(ne),v(ye),v(a),v(D)}}}function ct(N){let e,g;return e=new ke({props:{$$slots:{default:[dt]},$$scope:{ctx:N}}}),{c(){y(e.$$.fragment)},l(s){w(e.$$.fragment,s)},m(s,t){M(e,s,t),g=!0},p(s,t){const d={};t&2&&(d.$$scope={dirty:t,ctx:s}),e.$set(d)},i(s){g||($(e.$$.fragment,s),g=!0)},o(s){T(e.$$.fragment,s),g=!1},d(s){v(e,s)}}}function pt(N){let e,g,s,t,d,n,u,he,O,F='The RegNet model was proposed in <a href="https://arxiv.org/abs/2003.13678" rel="nofollow">Designing Network Design Spaces</a> by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Dollár.',P,K,E="The authors design search spaces to perform Neural Architecture Search (NAS). They first start from a high dimensional search space and iteratively reduce the search space by empirically applying constraints based on the best-performing models sampled by the current search space.",ue,ee,V="The abstract from the paper is the following:",pe,I,te="<em>In this work, we present a new network design paradigm. Our goal is to help advance the understanding of network design and discover design principles that generalize across settings. Instead of focusing on designing individual network instances, we design network design spaces that parametrize populations of networks. The overall process is analogous to classic manual design of networks, but elevated to the design space level. Using our methodology we explore the structure aspect of network design and arrive at a low-dimensional design space consisting of simple, regular networks that we call RegNet. The core insight of the RegNet parametrization is surprisingly simple: widths and depths of good networks can be explained by a quantized linear function. We analyze the RegNet design space and arrive at interesting findings that do not match the current practice of network design. The RegNet design space provides simple and fast networks that work well across a wide range of flop regimes. Under comparable training settings and flops, the RegNet models outperform the popular EfficientNet models while being up to 5x faster on GPUs.</em>",X,ae,B=`This model was contributed by <a href="https://huggingface.co/Francesco" rel="nofollow">Francesco</a>. The TensorFlow version of the model
was contributed by <a href="https://huggingface.co/sayakpaul" rel="nofollow">sayakpaul</a> and <a href="https://huggingface.co/ariG23498" rel="nofollow">ariG23498</a>.
The original code can be found <a href="https://github.com/facebookresearch/pycls" rel="nofollow">here</a>.`,j,G,oe=`The huge 10B model from <a href="https://arxiv.org/abs/2103.01988" rel="nofollow">Self-supervised Pretraining of Visual Features in the Wild</a>,
trained on  one billion Instagram images, is available on the <a href="https://huggingface.co/facebook/regnet-y-10b-seer" rel="nofollow">hub</a>`,q,re,Y,H,le="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with RegNet.",ie,x,L,A,R='<li><a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetForImageClassification">RegNetForImageClassification</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>',ne,se,z="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.",me,k,Q,o,h,J,U,W=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_30623/en/model_doc/regnet#transformers.RegNetModel">RegNetModel</a>. It is used to instantiate a RegNet
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 RegNet
<a href="https://huggingface.co/facebook/regnet-y-040" rel="nofollow">facebook/regnet-y-040</a> architecture.`,ce,je,Ze=`Configuration objects inherit from <a href="/docs/transformers/pr_30623/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/pr_30623/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,xe,we,Ce,S,ye,Me,$e,Ne,Re;return d=new Ie({props:{title:"RegNet",local:"regnet",headingTag:"h1"}}),u=new Ie({props:{title:"Overview",local:"overview",headingTag:"h2"}}),re=new Ie({props:{title:"Resources",local:"resources",headingTag:"h2"}}),x=new Xe({props:{pipeline:"image-classification"}}),k=new Ie({props:{title:"RegNetConfig",local:"transformers.RegNetConfig",headingTag:"h2"}}),h=new _e({props:{name:"class transformers.RegNetConfig",anchor:"transformers.RegNetConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"embedding_size",val:" = 32"},{name:"hidden_sizes",val:" = [128, 192, 512, 1088]"},{name:"depths",val:" = [2, 6, 12, 2]"},{name:"groups_width",val:" = 64"},{name:"layer_type",val:" = 'y'"},{name:"hidden_act",val:" = 'relu'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.RegNetConfig.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.RegNetConfig.embedding_size",description:`<strong>embedding_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Dimensionality (hidden size) for the embedding layer.`,name:"embedding_size"},{anchor:"transformers.RegNetConfig.hidden_sizes",description:`<strong>hidden_sizes</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[256, 512, 1024, 2048]</code>) &#x2014;
Dimensionality (hidden size) at each stage.`,name:"hidden_sizes"},{anchor:"transformers.RegNetConfig.depths",description:`<strong>depths</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[3, 4, 6, 3]</code>) &#x2014;
Depth (number of layers) for each stage.`,name:"depths"},{anchor:"transformers.RegNetConfig.layer_type",description:`<strong>layer_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;y&quot;</code>) &#x2014;
The layer to use, it can be either <code>&quot;x&quot; or </code>&#x201C;y&#x201D;<code>. An </code>x<code>layer is a ResNet&apos;s BottleNeck layer with</code>reduction<code>fixed to</code>1<code>. While a </code>y<code>layer is a</code>x\` but with squeeze and excitation. Please refer to the
paper for a detailed explanation of how these layers were constructed.`,name:"layer_type"},{anchor:"transformers.RegNetConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function in each block. 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.RegNetConfig.downsample_in_first_stage",description:`<strong>downsample_in_first_stage</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the first stage will downsample the inputs using a <code>stride</code> of 2.`,name:"downsample_in_first_stage"}],source:"https://github.com/huggingface/transformers/blob/vr_30623/src/transformers/models/regnet/configuration_regnet.py#L24"}}),we=new Je({props:{anchor:"transformers.RegNetConfig.example",$$slots:{default:[qe]},$$scope:{ctx:N}}}),S=new Ee({props:{pytorch:!0,tensorflow:!0,jax:!0,$$slots:{jax:[ct],tensorflow:[at],pytorch:[Oe]},$$scope:{ctx:N}}}),Me=new Le({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/regnet.md"}}),{c(){e=m("meta"),g=l(),s=m("p"),t=l(),y(d.$$.fragment),n=l(),y(u.$$.fragment),he=l(),O=m("p"),O.innerHTML=F,P=l(),K=m("p"),K.textContent=E,ue=l(),ee=m("p"),ee.textContent=V,pe=l(),I=m("p"),I.innerHTML=te,X=l(),ae=m("p"),ae.innerHTML=B,j=l(),G=m("p"),G.innerHTML=oe,q=l(),y(re.$$.fragment),Y=l(),H=m("p"),H.textContent=le,ie=l(),y(x.$$.fragment),L=l(),A=m("ul"),A.innerHTML=R,ne=l(),se=m("p"),se.textContent=z,me=l(),y(k.$$.fragment),Q=l(),o=m("div"),y(h.$$.fragment),J=l(),U=m("p"),U.innerHTML=W,ce=l(),je=m("p"),je.innerHTML=Ze,xe=l(),y(we.$$.fragment),Ce=l(),y(S.$$.fragment),ye=l(),y(Me.$$.fragment),$e=l(),Ne=m("p"),this.h()},l(a){const b=Pe("svelte-u9bgzb",document.head);e=f(b,"META",{name:!0,content:!0}),b.forEach(r),g=i(a),s=f(a,"P",{}),fe(s).forEach(r),t=i(a),w(d.$$.fragment,a),n=i(a),w(u.$$.fragment,a),he=i(a),O=f(a,"P",{"data-svelte-h":!0}),_(O)!=="svelte-vy13p6"&&(O.innerHTML=F),P=i(a),K=f(a,"P",{"data-svelte-h":!0}),_(K)!=="svelte-1y5hyhh"&&(K.textContent=E),ue=i(a),ee=f(a,"P",{"data-svelte-h":!0}),_(ee)!=="svelte-vfdo9a"&&(ee.textContent=V),pe=i(a),I=f(a,"P",{"data-svelte-h":!0}),_(I)!=="svelte-1judo2o"&&(I.innerHTML=te),X=i(a),ae=f(a,"P",{"data-svelte-h":!0}),_(ae)!=="svelte-vuzov4"&&(ae.innerHTML=B),j=i(a),G=f(a,"P",{"data-svelte-h":!0}),_(G)!=="svelte-1bagpig"&&(G.innerHTML=oe),q=i(a),w(re.$$.fragment,a),Y=i(a),H=f(a,"P",{"data-svelte-h":!0}),_(H)!=="svelte-15k7oqe"&&(H.textContent=le),ie=i(a),w(x.$$.fragment,a),L=i(a),A=f(a,"UL",{"data-svelte-h":!0}),_(A)!=="svelte-t94yqg"&&(A.innerHTML=R),ne=i(a),se=f(a,"P",{"data-svelte-h":!0}),_(se)!=="svelte-1xesile"&&(se.textContent=z),me=i(a),w(k.$$.fragment,a),Q=i(a),o=f(a,"DIV",{class:!0});var D=fe(o);w(h.$$.fragment,D),J=i(D),U=f(D,"P",{"data-svelte-h":!0}),_(U)!=="svelte-570sba"&&(U.innerHTML=W),ce=i(D),je=f(D,"P",{"data-svelte-h":!0}),_(je)!=="svelte-1b0zjgn"&&(je.innerHTML=Ze),xe=i(D),w(we.$$.fragment,D),D.forEach(r),Ce=i(a),w(S.$$.fragment,a),ye=i(a),w(Me.$$.fragment,a),$e=i(a),Ne=f(a,"P",{}),fe(Ne).forEach(r),this.h()},h(){ge(e,"name","hf:doc:metadata"),ge(e,"content",mt),ge(o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(a,b){c(document.head,e),p(a,g,b),p(a,s,b),p(a,t,b),M(d,a,b),p(a,n,b),M(u,a,b),p(a,he,b),p(a,O,b),p(a,P,b),p(a,K,b),p(a,ue,b),p(a,ee,b),p(a,pe,b),p(a,I,b),p(a,X,b),p(a,ae,b),p(a,j,b),p(a,G,b),p(a,q,b),M(re,a,b),p(a,Y,b),p(a,H,b),p(a,ie,b),M(x,a,b),p(a,L,b),p(a,A,b),p(a,ne,b),p(a,se,b),p(a,me,b),M(k,a,b),p(a,Q,b),p(a,o,b),M(h,o,null),c(o,J),c(o,U),c(o,ce),c(o,je),c(o,xe),M(we,o,null),p(a,Ce,b),M(S,a,b),p(a,ye,b),M(Me,a,b),p(a,$e,b),p(a,Ne,b),Re=!0},p(a,[b]){const D={};b&2&&(D.$$scope={dirty:b,ctx:a}),we.$set(D);const Fe={};b&2&&(Fe.$$scope={dirty:b,ctx:a}),S.$set(Fe)},i(a){Re||($(d.$$.fragment,a),$(u.$$.fragment,a),$(re.$$.fragment,a),$(x.$$.fragment,a),$(k.$$.fragment,a),$(h.$$.fragment,a),$(we.$$.fragment,a),$(S.$$.fragment,a),$(Me.$$.fragment,a),Re=!0)},o(a){T(d.$$.fragment,a),T(u.$$.fragment,a),T(re.$$.fragment,a),T(x.$$.fragment,a),T(k.$$.fragment,a),T(h.$$.fragment,a),T(we.$$.fragment,a),T(S.$$.fragment,a),T(Me.$$.fragment,a),Re=!1},d(a){a&&(r(g),r(s),r(t),r(n),r(he),r(O),r(P),r(K),r(ue),r(ee),r(pe),r(I),r(X),r(ae),r(j),r(G),r(q),r(Y),r(H),r(ie),r(L),r(A),r(ne),r(se),r(me),r(Q),r(o),r(Ce),r(ye),r($e),r(Ne)),r(e),v(d,a),v(u,a),v(re,a),v(x,a),v(k,a),v(h),v(we),v(S,a),v(Me,a)}}}const mt='{"title":"RegNet","local":"regnet","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"RegNetConfig","local":"transformers.RegNetConfig","sections":[],"depth":2}],"depth":1}';function ft(N){return ze(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tt extends Be{constructor(e){super(),He(this,e,ft,pt,Ge,{})}}export{Tt as component};
