import{s as ke,o as Ge,n as he}from"../chunks/scheduler.25b97de1.js";import{S as Ve,i as ze,g,s as l,r as b,A as Be,h as f,f as r,c as i,j as le,u as y,x,k as ie,y as d,a as p,v as $,d as w,t as M,w as T}from"../chunks/index.d9030fc9.js";import{T as Je}from"../chunks/Tip.baa67368.js";import{D as fe}from"../chunks/Docstring.ffac8efa.js";import{C as Re}from"../chunks/CodeBlock.e6cd0d95.js";import{F as He,M as We}from"../chunks/Markdown.7217f838.js";import{E as Fe}from"../chunks/ExampleCodeBlock.22dfe688.js";import{P as Pe}from"../chunks/PipelineTag.5f100392.js";import{H as ve,E as Ee}from"../chunks/EditOnGithub.91d95064.js";function Xe(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function Le(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function Ye(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function Qe(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function qe(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function Se(F){let e,c,t,a,m,s,j=`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.`,se,C,Y,ne,V,be='The <a href="/docs/transformers/main/en/model_doc/regnet#transformers.RegNetModel">RegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ae,W,me,H,E,Q,K,v,P,oe,z,ye=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,re,k,de=`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.`,X,Z,B,D,R,q='The <a href="/docs/transformers/main/en/model_doc/regnet#transformers.RegNetForImageClassification">RegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',ce,G,ee,L,S;return e=new ve({props:{title:"RegNetModel",local:"transformers.RegNetModel",headingTag:"h2"}}),a=new fe({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/main/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/main/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/main/src/transformers/models/regnet/modeling_regnet.py#L325"}}),Y=new fe({props:{name:"forward",anchor:"transformers.RegNetModel.forward",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/main/en/model_doc/imagegpt#transformers.ImageGPTFeatureExtractor.__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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/regnet/modeling_regnet.py#L340",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/main/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>
`}}),W=new Je({props:{$$slots:{default:[Le]},$$scope:{ctx:F}}}),H=new Fe({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[Ye]},$$scope:{ctx:F}}}),Q=new ve({props:{title:"RegNetForImageClassification",local:"transformers.RegNetForImageClassification",headingTag:"h2"}}),P=new fe({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/main/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/main/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/main/src/transformers/models/regnet/modeling_regnet.py#L376"}}),B=new fe({props:{name:"forward",anchor:"transformers.RegNetForImageClassification.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.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/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/main/en/model_doc/imagegpt#transformers.ImageGPTFeatureExtractor.__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/main/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/main/src/transformers/models/regnet/modeling_regnet.py#L397",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/main/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/main/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/main/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),G=new Je({props:{$$slots:{default:[Qe]},$$scope:{ctx:F}}}),L=new Fe({props:{anchor:"transformers.RegNetForImageClassification.forward.example",$$slots:{default:[qe]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment),c=l(),t=g("div"),b(a.$$.fragment),m=l(),s=g("p"),s.innerHTML=j,se=l(),C=g("div"),b(Y.$$.fragment),ne=l(),V=g("p"),V.innerHTML=be,ae=l(),b(W.$$.fragment),me=l(),b(H.$$.fragment),E=l(),b(Q.$$.fragment),K=l(),v=g("div"),b(P.$$.fragment),oe=l(),z=g("p"),z.textContent=ye,re=l(),k=g("p"),k.innerHTML=de,X=l(),Z=g("div"),b(B.$$.fragment),D=l(),R=g("p"),R.innerHTML=q,ce=l(),b(G.$$.fragment),ee=l(),b(L.$$.fragment),this.h()},l(o){y(e.$$.fragment,o),c=i(o),t=f(o,"DIV",{class:!0});var u=le(t);y(a.$$.fragment,u),m=i(u),s=f(u,"P",{"data-svelte-h":!0}),x(s)!=="svelte-8ru9mu"&&(s.innerHTML=j),se=i(u),C=f(u,"DIV",{class:!0});var N=le(C);y(Y.$$.fragment,N),ne=i(N),V=f(N,"P",{"data-svelte-h":!0}),x(V)!=="svelte-7oyxd8"&&(V.innerHTML=be),ae=i(N),y(W.$$.fragment,N),me=i(N),y(H.$$.fragment,N),N.forEach(r),u.forEach(r),E=i(o),y(Q.$$.fragment,o),K=i(o),v=f(o,"DIV",{class:!0});var J=le(v);y(P.$$.fragment,J),oe=i(J),z=f(J,"P",{"data-svelte-h":!0}),x(z)!=="svelte-ipsb0r"&&(z.textContent=ye),re=i(J),k=f(J,"P",{"data-svelte-h":!0}),x(k)!=="svelte-1in5o75"&&(k.innerHTML=de),X=i(J),Z=f(J,"DIV",{class:!0});var I=le(Z);y(B.$$.fragment,I),D=i(I),R=f(I,"P",{"data-svelte-h":!0}),x(R)!=="svelte-idxxuu"&&(R.innerHTML=q),ce=i(I),y(G.$$.fragment,I),ee=i(I),y(L.$$.fragment,I),I.forEach(r),J.forEach(r),this.h()},h(){ie(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(v,"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,u){$(e,o,u),p(o,c,u),p(o,t,u),$(a,t,null),d(t,m),d(t,s),d(t,se),d(t,C),$(Y,C,null),d(C,ne),d(C,V),d(C,ae),$(W,C,null),d(C,me),$(H,C,null),p(o,E,u),$(Q,o,u),p(o,K,u),p(o,v,u),$(P,v,null),d(v,oe),d(v,z),d(v,re),d(v,k),d(v,X),d(v,Z),$(B,Z,null),d(Z,D),d(Z,R),d(Z,ce),$(G,Z,null),d(Z,ee),$(L,Z,null),S=!0},p(o,u){const N={};u&2&&(N.$$scope={dirty:u,ctx:o}),W.$set(N);const J={};u&2&&(J.$$scope={dirty:u,ctx:o}),H.$set(J);const I={};u&2&&(I.$$scope={dirty:u,ctx:o}),G.$set(I);const O={};u&2&&(O.$$scope={dirty:u,ctx:o}),L.$set(O)},i(o){S||(w(e.$$.fragment,o),w(a.$$.fragment,o),w(Y.$$.fragment,o),w(W.$$.fragment,o),w(H.$$.fragment,o),w(Q.$$.fragment,o),w(P.$$.fragment,o),w(B.$$.fragment,o),w(G.$$.fragment,o),w(L.$$.fragment,o),S=!0)},o(o){M(e.$$.fragment,o),M(a.$$.fragment,o),M(Y.$$.fragment,o),M(W.$$.fragment,o),M(H.$$.fragment,o),M(Q.$$.fragment,o),M(P.$$.fragment,o),M(B.$$.fragment,o),M(G.$$.fragment,o),M(L.$$.fragment,o),S=!1},d(o){o&&(r(c),r(t),r(E),r(K),r(v)),T(e,o),T(a),T(Y),T(W),T(H),T(Q,o),T(P),T(B),T(G),T(L)}}}function Ae(F){let e,c;return e=new We({props:{$$slots:{default:[Se]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,a){$(e,t,a),c=!0},p(t,a){const m={};a&2&&(m.$$scope={dirty:a,ctx:t}),e.$set(m)},i(t){c||(w(e.$$.fragment,t),c=!0)},o(t){M(e.$$.fragment,t),c=!1},d(t){T(e,t)}}}function De(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function Oe(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function Ke(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function et(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function tt(F){let e,c,t,a,m,s,j=`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.`,se,C,Y,ne,V,be='The <a href="/docs/transformers/main/en/model_doc/regnet#transformers.TFRegNetModel">TFRegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ae,W,me,H,E,Q,K,v,P,oe,z,ye=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,re,k,de=`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.`,X,Z,B,D,R,q='The <a href="/docs/transformers/main/en/model_doc/regnet#transformers.TFRegNetForImageClassification">TFRegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',ce,G,ee,L,S;return e=new ve({props:{title:"TFRegNetModel",local:"transformers.TFRegNetModel",headingTag:"h2"}}),a=new fe({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/main/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/main/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/main/src/transformers/models/regnet/modeling_tf_regnet.py#L484"}}),Y=new fe({props:{name:"call",anchor:"transformers.TFRegNetModel.call",parameters:[{name:"pixel_values",val:": Tensor"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/main/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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/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/main/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>
`}}),W=new Je({props:{$$slots:{default:[De]},$$scope:{ctx:F}}}),H=new Fe({props:{anchor:"transformers.TFRegNetModel.call.example",$$slots:{default:[Oe]},$$scope:{ctx:F}}}),Q=new ve({props:{title:"TFRegNetForImageClassification",local:"transformers.TFRegNetForImageClassification",headingTag:"h2"}}),P=new fe({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/main/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/main/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/main/src/transformers/models/regnet/modeling_tf_regnet.py#L538"}}),B=new fe({props:{name:"call",anchor:"transformers.TFRegNetForImageClassification.call",parameters:[{name:"pixel_values",val:": typing.Optional[tensorflow.python.framework.tensor.Tensor] = None"},{name:"labels",val:": typing.Optional[tensorflow.python.framework.tensor.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/main/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/main/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/main/src/transformers/models/regnet/modeling_tf_regnet.py#L556",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/main/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/main/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/main/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),G=new Je({props:{$$slots:{default:[Ke]},$$scope:{ctx:F}}}),L=new Fe({props:{anchor:"transformers.TFRegNetForImageClassification.call.example",$$slots:{default:[et]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment),c=l(),t=g("div"),b(a.$$.fragment),m=l(),s=g("p"),s.innerHTML=j,se=l(),C=g("div"),b(Y.$$.fragment),ne=l(),V=g("p"),V.innerHTML=be,ae=l(),b(W.$$.fragment),me=l(),b(H.$$.fragment),E=l(),b(Q.$$.fragment),K=l(),v=g("div"),b(P.$$.fragment),oe=l(),z=g("p"),z.textContent=ye,re=l(),k=g("p"),k.innerHTML=de,X=l(),Z=g("div"),b(B.$$.fragment),D=l(),R=g("p"),R.innerHTML=q,ce=l(),b(G.$$.fragment),ee=l(),b(L.$$.fragment),this.h()},l(o){y(e.$$.fragment,o),c=i(o),t=f(o,"DIV",{class:!0});var u=le(t);y(a.$$.fragment,u),m=i(u),s=f(u,"P",{"data-svelte-h":!0}),x(s)!=="svelte-xzl4r8"&&(s.innerHTML=j),se=i(u),C=f(u,"DIV",{class:!0});var N=le(C);y(Y.$$.fragment,N),ne=i(N),V=f(N,"P",{"data-svelte-h":!0}),x(V)!=="svelte-1imc2ag"&&(V.innerHTML=be),ae=i(N),y(W.$$.fragment,N),me=i(N),y(H.$$.fragment,N),N.forEach(r),u.forEach(r),E=i(o),y(Q.$$.fragment,o),K=i(o),v=f(o,"DIV",{class:!0});var J=le(v);y(P.$$.fragment,J),oe=i(J),z=f(J,"P",{"data-svelte-h":!0}),x(z)!=="svelte-ipsb0r"&&(z.textContent=ye),re=i(J),k=f(J,"P",{"data-svelte-h":!0}),x(k)!=="svelte-1g64psv"&&(k.innerHTML=de),X=i(J),Z=f(J,"DIV",{class:!0});var I=le(Z);y(B.$$.fragment,I),D=i(I),R=f(I,"P",{"data-svelte-h":!0}),x(R)!=="svelte-dozala"&&(R.innerHTML=q),ce=i(I),y(G.$$.fragment,I),ee=i(I),y(L.$$.fragment,I),I.forEach(r),J.forEach(r),this.h()},h(){ie(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(v,"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,u){$(e,o,u),p(o,c,u),p(o,t,u),$(a,t,null),d(t,m),d(t,s),d(t,se),d(t,C),$(Y,C,null),d(C,ne),d(C,V),d(C,ae),$(W,C,null),d(C,me),$(H,C,null),p(o,E,u),$(Q,o,u),p(o,K,u),p(o,v,u),$(P,v,null),d(v,oe),d(v,z),d(v,re),d(v,k),d(v,X),d(v,Z),$(B,Z,null),d(Z,D),d(Z,R),d(Z,ce),$(G,Z,null),d(Z,ee),$(L,Z,null),S=!0},p(o,u){const N={};u&2&&(N.$$scope={dirty:u,ctx:o}),W.$set(N);const J={};u&2&&(J.$$scope={dirty:u,ctx:o}),H.$set(J);const I={};u&2&&(I.$$scope={dirty:u,ctx:o}),G.$set(I);const O={};u&2&&(O.$$scope={dirty:u,ctx:o}),L.$set(O)},i(o){S||(w(e.$$.fragment,o),w(a.$$.fragment,o),w(Y.$$.fragment,o),w(W.$$.fragment,o),w(H.$$.fragment,o),w(Q.$$.fragment,o),w(P.$$.fragment,o),w(B.$$.fragment,o),w(G.$$.fragment,o),w(L.$$.fragment,o),S=!0)},o(o){M(e.$$.fragment,o),M(a.$$.fragment,o),M(Y.$$.fragment,o),M(W.$$.fragment,o),M(H.$$.fragment,o),M(Q.$$.fragment,o),M(P.$$.fragment,o),M(B.$$.fragment,o),M(G.$$.fragment,o),M(L.$$.fragment,o),S=!1},d(o){o&&(r(c),r(t),r(E),r(K),r(v)),T(e,o),T(a),T(Y),T(W),T(H),T(Q,o),T(P),T(B),T(G),T(L)}}}function st(F){let e,c;return e=new We({props:{$$slots:{default:[tt]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,a){$(e,t,a),c=!0},p(t,a){const m={};a&2&&(m.$$scope={dirty:a,ctx:t}),e.$set(m)},i(t){c||(w(e.$$.fragment,t),c=!0)},o(t){M(e.$$.fragment,t),c=!1},d(t){T(e,t)}}}function nt(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function at(F){let e,c="Examples:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-kvfsh7"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function ot(F){let e,c=`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=g("p"),e.innerHTML=c},l(t){e=f(t,"P",{"data-svelte-h":!0}),x(e)!=="svelte-fincs2"&&(e.innerHTML=c)},m(t,a){p(t,e,a)},p:he,d(t){t&&r(e)}}}function rt(F){let e,c="Example:",t,a,m;return a=new Re({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=g("p"),e.textContent=c,t=l(),b(a.$$.fragment)},l(s){e=f(s,"P",{"data-svelte-h":!0}),x(e)!=="svelte-11lpom8"&&(e.textContent=c),t=i(s),y(a.$$.fragment,s)},m(s,j){p(s,e,j),p(s,t,j),$(a,s,j),m=!0},p:he,i(s){m||(w(a.$$.fragment,s),m=!0)},o(s){M(a.$$.fragment,s),m=!1},d(s){s&&(r(e),r(t)),T(a,s)}}}function lt(F){let e,c,t,a,m,s,j="The bare RegNet model outputting raw features without any specific head on top.",se,C,Y=`This model inherits from <a href="/docs/transformers/main/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)`,ne,V,be=`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.`,ae,W,me="Finally, this model supports inherent JAX features such as:",H,E,Q='<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>',K,v,P,oe,z,ye="The <code>FlaxRegNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",re,k,de,X,Z,B,D,R,q,ce,G,ee=`RegNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,L,S,o=`This model inherits from <a href="/docs/transformers/main/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)`,u,N,J=`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.`,I,O,Ue="Finally, this model supports inherent JAX features such as:",Ne,ge,Ze='<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,A,ue,_e,$e,Te="The <code>FlaxRegNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",xe,pe,je,n,_;return e=new ve({props:{title:"FlaxRegNetModel",local:"transformers.FlaxRegNetModel",headingTag:"h2"}}),a=new fe({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/main/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/main/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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/regnet/modeling_flax_regnet.py#L686"}}),P=new fe({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:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/regnet/modeling_flax_regnet.py#L597",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/main/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/main/en/main_classes/output#transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling"
>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),k=new Je({props:{$$slots:{default:[nt]},$$scope:{ctx:F}}}),X=new Fe({props:{anchor:"transformers.FlaxRegNetModel.__call__.example",$$slots:{default:[at]},$$scope:{ctx:F}}}),B=new ve({props:{title:"FlaxRegNetForImageClassification",local:"transformers.FlaxRegNetForImageClassification",headingTag:"h2"}}),q=new fe({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/main/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/main/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/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/main/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/regnet/modeling_flax_regnet.py#L776"}}),ue=new fe({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:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/transformers/blob/main/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>
`}}),pe=new Je({props:{$$slots:{default:[ot]},$$scope:{ctx:F}}}),n=new Fe({props:{anchor:"transformers.FlaxRegNetForImageClassification.__call__.example",$$slots:{default:[rt]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment),c=l(),t=g("div"),b(a.$$.fragment),m=l(),s=g("p"),s.textContent=j,se=l(),C=g("p"),C.innerHTML=Y,ne=l(),V=g("p"),V.innerHTML=be,ae=l(),W=g("p"),W.textContent=me,H=l(),E=g("ul"),E.innerHTML=Q,K=l(),v=g("div"),b(P.$$.fragment),oe=l(),z=g("p"),z.innerHTML=ye,re=l(),b(k.$$.fragment),de=l(),b(X.$$.fragment),Z=l(),b(B.$$.fragment),D=l(),R=g("div"),b(q.$$.fragment),ce=l(),G=g("p"),G.textContent=ee,L=l(),S=g("p"),S.innerHTML=o,u=l(),N=g("p"),N.innerHTML=J,I=l(),O=g("p"),O.textContent=Ue,Ne=l(),ge=g("ul"),ge.innerHTML=Ze,Ce=l(),A=g("div"),b(ue.$$.fragment),_e=l(),$e=g("p"),$e.innerHTML=Te,xe=l(),b(pe.$$.fragment),je=l(),b(n.$$.fragment),this.h()},l(h){y(e.$$.fragment,h),c=i(h),t=f(h,"DIV",{class:!0});var U=le(t);y(a.$$.fragment,U),m=i(U),s=f(U,"P",{"data-svelte-h":!0}),x(s)!=="svelte-1lrc7eh"&&(s.textContent=j),se=i(U),C=f(U,"P",{"data-svelte-h":!0}),x(C)!=="svelte-3daxed"&&(C.innerHTML=Y),ne=i(U),V=f(U,"P",{"data-svelte-h":!0}),x(V)!=="svelte-10nfsf3"&&(V.innerHTML=be),ae=i(U),W=f(U,"P",{"data-svelte-h":!0}),x(W)!=="svelte-1pplc4a"&&(W.textContent=me),H=i(U),E=f(U,"UL",{"data-svelte-h":!0}),x(E)!=="svelte-1w7z84m"&&(E.innerHTML=Q),K=i(U),v=f(U,"DIV",{class:!0});var we=le(v);y(P.$$.fragment,we),oe=i(we),z=f(we,"P",{"data-svelte-h":!0}),x(z)!=="svelte-1xwpegk"&&(z.innerHTML=ye),re=i(we),y(k.$$.fragment,we),de=i(we),y(X.$$.fragment,we),we.forEach(r),U.forEach(r),Z=i(h),y(B.$$.fragment,h),D=i(h),R=f(h,"DIV",{class:!0});var te=le(R);y(q.$$.fragment,te),ce=i(te),G=f(te,"P",{"data-svelte-h":!0}),x(G)!=="svelte-ipsb0r"&&(G.textContent=ee),L=i(te),S=f(te,"P",{"data-svelte-h":!0}),x(S)!=="svelte-3daxed"&&(S.innerHTML=o),u=i(te),N=f(te,"P",{"data-svelte-h":!0}),x(N)!=="svelte-10nfsf3"&&(N.innerHTML=J),I=i(te),O=f(te,"P",{"data-svelte-h":!0}),x(O)!=="svelte-1pplc4a"&&(O.textContent=Ue),Ne=i(te),ge=f(te,"UL",{"data-svelte-h":!0}),x(ge)!=="svelte-1w7z84m"&&(ge.innerHTML=Ze),Ce=i(te),A=f(te,"DIV",{class:!0});var Me=le(A);y(ue.$$.fragment,Me),_e=i(Me),$e=f(Me,"P",{"data-svelte-h":!0}),x($e)!=="svelte-1xwpegk"&&($e.innerHTML=Te),xe=i(Me),y(pe.$$.fragment,Me),je=i(Me),y(n.$$.fragment,Me),Me.forEach(r),te.forEach(r),this.h()},h(){ie(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),ie(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(h,U){$(e,h,U),p(h,c,U),p(h,t,U),$(a,t,null),d(t,m),d(t,s),d(t,se),d(t,C),d(t,ne),d(t,V),d(t,ae),d(t,W),d(t,H),d(t,E),d(t,K),d(t,v),$(P,v,null),d(v,oe),d(v,z),d(v,re),$(k,v,null),d(v,de),$(X,v,null),p(h,Z,U),$(B,h,U),p(h,D,U),p(h,R,U),$(q,R,null),d(R,ce),d(R,G),d(R,L),d(R,S),d(R,u),d(R,N),d(R,I),d(R,O),d(R,Ne),d(R,ge),d(R,Ce),d(R,A),$(ue,A,null),d(A,_e),d(A,$e),d(A,xe),$(pe,A,null),d(A,je),$(n,A,null),_=!0},p(h,U){const we={};U&2&&(we.$$scope={dirty:U,ctx:h}),k.$set(we);const te={};U&2&&(te.$$scope={dirty:U,ctx:h}),X.$set(te);const Me={};U&2&&(Me.$$scope={dirty:U,ctx:h}),pe.$set(Me);const Ie={};U&2&&(Ie.$$scope={dirty:U,ctx:h}),n.$set(Ie)},i(h){_||(w(e.$$.fragment,h),w(a.$$.fragment,h),w(P.$$.fragment,h),w(k.$$.fragment,h),w(X.$$.fragment,h),w(B.$$.fragment,h),w(q.$$.fragment,h),w(ue.$$.fragment,h),w(pe.$$.fragment,h),w(n.$$.fragment,h),_=!0)},o(h){M(e.$$.fragment,h),M(a.$$.fragment,h),M(P.$$.fragment,h),M(k.$$.fragment,h),M(X.$$.fragment,h),M(B.$$.fragment,h),M(q.$$.fragment,h),M(ue.$$.fragment,h),M(pe.$$.fragment,h),M(n.$$.fragment,h),_=!1},d(h){h&&(r(c),r(t),r(Z),r(D),r(R)),T(e,h),T(a),T(P),T(k),T(X),T(B,h),T(q),T(ue),T(pe),T(n)}}}function it(F){let e,c;return e=new We({props:{$$slots:{default:[lt]},$$scope:{ctx:F}}}),{c(){b(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,a){$(e,t,a),c=!0},p(t,a){const m={};a&2&&(m.$$scope={dirty:a,ctx:t}),e.$set(m)},i(t){c||(w(e.$$.fragment,t),c=!0)},o(t){M(e.$$.fragment,t),c=!1},d(t){T(e,t)}}}function dt(F){let e,c,t,a,m,s,j,se,C,Y='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.',ne,V,be="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.",ae,W,me="The abstract from the paper is the following:",H,E,Q="<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>",K,v,P=`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>.`,oe,z,ye=`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>`,re,k,de,X,Z="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with RegNet.",B,D,R,q,ce='<li><a href="/docs/transformers/main/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>',G,ee,L="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.",S,o,u,N,J,I,O,Ue=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/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.`,Ne,ge,Ze=`Configuration objects inherit from <a href="/docs/transformers/main/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/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ce,A,ue,_e,$e,Te,xe,pe,je;return m=new ve({props:{title:"RegNet",local:"regnet",headingTag:"h1"}}),j=new ve({props:{title:"Overview",local:"overview",headingTag:"h2"}}),k=new ve({props:{title:"Resources",local:"resources",headingTag:"h2"}}),D=new Pe({props:{pipeline:"image-classification"}}),o=new ve({props:{title:"RegNetConfig",local:"transformers.RegNetConfig",headingTag:"h2"}}),J=new fe({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/main/src/transformers/models/regnet/configuration_regnet.py#L24"}}),A=new Fe({props:{anchor:"transformers.RegNetConfig.example",$$slots:{default:[Xe]},$$scope:{ctx:F}}}),_e=new He({props:{pytorch:!0,tensorflow:!0,jax:!0,$$slots:{jax:[it],tensorflow:[st],pytorch:[Ae]},$$scope:{ctx:F}}}),Te=new Ee({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/regnet.md"}}),{c(){e=g("meta"),c=l(),t=g("p"),a=l(),b(m.$$.fragment),s=l(),b(j.$$.fragment),se=l(),C=g("p"),C.innerHTML=Y,ne=l(),V=g("p"),V.textContent=be,ae=l(),W=g("p"),W.textContent=me,H=l(),E=g("p"),E.innerHTML=Q,K=l(),v=g("p"),v.innerHTML=P,oe=l(),z=g("p"),z.innerHTML=ye,re=l(),b(k.$$.fragment),de=l(),X=g("p"),X.textContent=Z,B=l(),b(D.$$.fragment),R=l(),q=g("ul"),q.innerHTML=ce,G=l(),ee=g("p"),ee.textContent=L,S=l(),b(o.$$.fragment),u=l(),N=g("div"),b(J.$$.fragment),I=l(),O=g("p"),O.innerHTML=Ue,Ne=l(),ge=g("p"),ge.innerHTML=Ze,Ce=l(),b(A.$$.fragment),ue=l(),b(_e.$$.fragment),$e=l(),b(Te.$$.fragment),xe=l(),pe=g("p"),this.h()},l(n){const _=Be("svelte-u9bgzb",document.head);e=f(_,"META",{name:!0,content:!0}),_.forEach(r),c=i(n),t=f(n,"P",{}),le(t).forEach(r),a=i(n),y(m.$$.fragment,n),s=i(n),y(j.$$.fragment,n),se=i(n),C=f(n,"P",{"data-svelte-h":!0}),x(C)!=="svelte-vy13p6"&&(C.innerHTML=Y),ne=i(n),V=f(n,"P",{"data-svelte-h":!0}),x(V)!=="svelte-1y5hyhh"&&(V.textContent=be),ae=i(n),W=f(n,"P",{"data-svelte-h":!0}),x(W)!=="svelte-vfdo9a"&&(W.textContent=me),H=i(n),E=f(n,"P",{"data-svelte-h":!0}),x(E)!=="svelte-1judo2o"&&(E.innerHTML=Q),K=i(n),v=f(n,"P",{"data-svelte-h":!0}),x(v)!=="svelte-vuzov4"&&(v.innerHTML=P),oe=i(n),z=f(n,"P",{"data-svelte-h":!0}),x(z)!=="svelte-1bagpig"&&(z.innerHTML=ye),re=i(n),y(k.$$.fragment,n),de=i(n),X=f(n,"P",{"data-svelte-h":!0}),x(X)!=="svelte-15k7oqe"&&(X.textContent=Z),B=i(n),y(D.$$.fragment,n),R=i(n),q=f(n,"UL",{"data-svelte-h":!0}),x(q)!=="svelte-19u4l08"&&(q.innerHTML=ce),G=i(n),ee=f(n,"P",{"data-svelte-h":!0}),x(ee)!=="svelte-1xesile"&&(ee.textContent=L),S=i(n),y(o.$$.fragment,n),u=i(n),N=f(n,"DIV",{class:!0});var h=le(N);y(J.$$.fragment,h),I=i(h),O=f(h,"P",{"data-svelte-h":!0}),x(O)!=="svelte-1qp6bqk"&&(O.innerHTML=Ue),Ne=i(h),ge=f(h,"P",{"data-svelte-h":!0}),x(ge)!=="svelte-o55m63"&&(ge.innerHTML=Ze),Ce=i(h),y(A.$$.fragment,h),h.forEach(r),ue=i(n),y(_e.$$.fragment,n),$e=i(n),y(Te.$$.fragment,n),xe=i(n),pe=f(n,"P",{}),le(pe).forEach(r),this.h()},h(){ie(e,"name","hf:doc:metadata"),ie(e,"content",ct),ie(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(n,_){d(document.head,e),p(n,c,_),p(n,t,_),p(n,a,_),$(m,n,_),p(n,s,_),$(j,n,_),p(n,se,_),p(n,C,_),p(n,ne,_),p(n,V,_),p(n,ae,_),p(n,W,_),p(n,H,_),p(n,E,_),p(n,K,_),p(n,v,_),p(n,oe,_),p(n,z,_),p(n,re,_),$(k,n,_),p(n,de,_),p(n,X,_),p(n,B,_),$(D,n,_),p(n,R,_),p(n,q,_),p(n,G,_),p(n,ee,_),p(n,S,_),$(o,n,_),p(n,u,_),p(n,N,_),$(J,N,null),d(N,I),d(N,O),d(N,Ne),d(N,ge),d(N,Ce),$(A,N,null),p(n,ue,_),$(_e,n,_),p(n,$e,_),$(Te,n,_),p(n,xe,_),p(n,pe,_),je=!0},p(n,[_]){const h={};_&2&&(h.$$scope={dirty:_,ctx:n}),A.$set(h);const U={};_&2&&(U.$$scope={dirty:_,ctx:n}),_e.$set(U)},i(n){je||(w(m.$$.fragment,n),w(j.$$.fragment,n),w(k.$$.fragment,n),w(D.$$.fragment,n),w(o.$$.fragment,n),w(J.$$.fragment,n),w(A.$$.fragment,n),w(_e.$$.fragment,n),w(Te.$$.fragment,n),je=!0)},o(n){M(m.$$.fragment,n),M(j.$$.fragment,n),M(k.$$.fragment,n),M(D.$$.fragment,n),M(o.$$.fragment,n),M(J.$$.fragment,n),M(A.$$.fragment,n),M(_e.$$.fragment,n),M(Te.$$.fragment,n),je=!1},d(n){n&&(r(c),r(t),r(a),r(s),r(se),r(C),r(ne),r(V),r(ae),r(W),r(H),r(E),r(K),r(v),r(oe),r(z),r(re),r(de),r(X),r(B),r(R),r(q),r(G),r(ee),r(S),r(u),r(N),r(ue),r($e),r(xe),r(pe)),r(e),T(m,n),T(j,n),T(k,n),T(D,n),T(o,n),T(J),T(A),T(_e,n),T(Te,n)}}}const ct='{"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},{"title":"RegNetModel","local":"transformers.RegNetModel","sections":[],"depth":2},{"title":"RegNetForImageClassification","local":"transformers.RegNetForImageClassification","sections":[],"depth":2},{"title":"TFRegNetModel","local":"transformers.TFRegNetModel","sections":[],"depth":2},{"title":"TFRegNetForImageClassification","local":"transformers.TFRegNetForImageClassification","sections":[],"depth":2},{"title":"FlaxRegNetModel","local":"transformers.FlaxRegNetModel","sections":[],"depth":2},{"title":"FlaxRegNetForImageClassification","local":"transformers.FlaxRegNetForImageClassification","sections":[],"depth":2}],"depth":1}';function pt(F){return Ge(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wt extends Ve{constructor(e){super(),ze(this,e,pt,dt,ke,{})}}export{wt as component};
