import{s as Be,o as Ve,n as be}from"../chunks/scheduler.25b97de1.js";import{S as ze,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 Le}from"../chunks/PipelineTag.5f100392.js";import{H as Ie,E as Xe}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:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFJlZ05ldE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",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>)
<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:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQW1vZGVsJTIwJTNEJTIwUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",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>)
<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,R,P,K,E,ue='The <a href="/docs/transformers/pr_31172/en/model_doc/regnet#transformers.RegNetModel">RegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ee,G,pe,I,te,L,ae="## RegNetForImageClassification[[transformers.RegNetForImageClassification]]",z,j,B,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,X,A,F,ne='The <a href="/docs/transformers/pr_31172/en/model_doc/regnet#transformers.RegNetForImageClassification">RegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',se,V,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_31172/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_31172/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_31172/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_31172/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/pr_31172/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/pr_31172/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_31172/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_31172/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>
`}}),G=new We({props:{$$slots:{default:[Ye]},$$scope:{ctx:N}}}),I=new Je({props:{anchor:"transformers.RegNetModel.forward.example",$$slots:{default:[Qe]},$$scope:{ctx:N}}}),B=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_31172/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_31172/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_31172/src/transformers/models/regnet/modeling_regnet.py#L368"}}),X=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_31172/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See
<a href="/docs/transformers/pr_31172/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/pr_31172/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_31172/src/transformers/models/regnet/modeling_regnet.py#L389",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_31172/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_31172/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_31172/en/main_classes/output#transformers.modeling_outputs.ImageClassifierOutputWithNoAttention"
>transformers.modeling_outputs.ImageClassifierOutputWithNoAttention</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),V=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(),R=m("div"),y(P.$$.fragment),K=l(),E=m("p"),E.innerHTML=ue,ee=l(),y(G.$$.fragment),pe=l(),y(I.$$.fragment),te=l(),L=m("p"),L.textContent=ae,z=l(),j=m("div"),y(B.$$.fragment),oe=l(),q=m("p"),q.textContent=re,Y=l(),H=m("p"),H.innerHTML=le,ie=l(),x=m("div"),y(X.$$.fragment),A=l(),F=m("p"),F.innerHTML=ne,se=l(),y(V.$$.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),R=f(h,"DIV",{class:!0});var J=fe(R);w(P.$$.fragment,J),K=i(J),E=f(J,"P",{"data-svelte-h":!0}),_(E)!=="svelte-f20jew"&&(E.innerHTML=ue),ee=i(J),w(G.$$.fragment,J),pe=i(J),w(I.$$.fragment,J),J.forEach(r),h.forEach(r),te=i(o),L=f(o,"P",{"data-svelte-h":!0}),_(L)!=="svelte-1aj1jle"&&(L.textContent=ae),z=i(o),j=f(o,"DIV",{class:!0});var U=fe(j);w(B.$$.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(X.$$.fragment,W),A=i(W),F=f(W,"P",{"data-svelte-h":!0}),_(F)!=="svelte-rt92xe"&&(F.innerHTML=ne),se=i(W),w(V.$$.fragment,W),me=i(W),w(k.$$.fragment,W),W.forEach(r),U.forEach(r),this.h()},h(){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"),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,R),M(P,R,null),c(R,K),c(R,E),c(R,ee),M(G,R,null),c(R,pe),M(I,R,null),p(o,te,h),p(o,L,h),p(o,z,h),p(o,j,h),M(B,j,null),c(j,oe),c(j,q),c(j,Y),c(j,H),c(j,ie),c(j,x),M(X,x,null),c(x,A),c(x,F),c(x,se),M(V,x,null),c(x,me),M(k,x,null),Q=!0},p(o,h){const J={};h&2&&(J.$$scope={dirty:h,ctx:o}),G.$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}),V.$set(W);const ce={};h&2&&(ce.$$scope={dirty:h,ctx:o}),k.$set(ce)},i(o){Q||($(d.$$.fragment,o),$(P.$$.fragment,o),$(G.$$.fragment,o),$(I.$$.fragment,o),$(B.$$.fragment,o),$(X.$$.fragment,o),$(V.$$.fragment,o),$(k.$$.fragment,o),Q=!0)},o(o){T(d.$$.fragment,o),T(P.$$.fragment,o),T(G.$$.fragment,o),T(I.$$.fragment,o),T(B.$$.fragment,o),T(X.$$.fragment,o),T(V.$$.fragment,o),T(k.$$.fragment,o),Q=!1},d(o){o&&(r(e),r(s),r(t),r(te),r(L),r(z),r(j)),v(d),v(P),v(G),v(I),v(B),v(X),v(V),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:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0TW9kZWwlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRnJlZ25ldC15LTA0MCUyMiklMEFtb2RlbCUyMCUzRCUyMFRGUmVnTmV0TW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQSUwQWxhc3RfaGlkZGVuX3N0YXRlcyUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGUlMEFsaXN0KGxhc3RfaGlkZGVuX3N0YXRlcy5zaGFwZSk=",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>)
<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:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVnTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZyZWduZXQteS0wNDAlMjIpJTBBbW9kZWwlMjAlM0QlMjBURlJlZ05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGcmVnbmV0LXktMDQwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIydGYlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBpbnQodGYubWF0aC5hcmdtYXgobG9naXRzJTJDJTIwYXhpcyUzRC0xKSklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",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>)
<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,R,P,K,E,ue='The <a href="/docs/transformers/pr_31172/en/model_doc/regnet#transformers.TFRegNetModel">TFRegNetModel</a> forward method, overrides the <code>__call__</code> special method.',ee,G,pe,I,te,L,ae="## TFRegNetForImageClassification[[transformers.TFRegNetForImageClassification]]",z,j,B,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,X,A,F,ne='The <a href="/docs/transformers/pr_31172/en/model_doc/regnet#transformers.TFRegNetForImageClassification">TFRegNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',se,V,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_31172/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_31172/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_31172/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_31172/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_31172/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_31172/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_31172/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>
`}}),G=new We({props:{$$slots:{default:[Ke]},$$scope:{ctx:N}}}),I=new Je({props:{anchor:"transformers.TFRegNetModel.call.example",$$slots:{default:[et]},$$scope:{ctx:N}}}),B=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_31172/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_31172/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_31172/src/transformers/models/regnet/modeling_tf_regnet.py#L538"}}),X=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_31172/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_31172/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_31172/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_31172/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_31172/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_31172/en/main_classes/output#transformers.modeling_tf_outputs.TFSequenceClassifierOutput"
>transformers.modeling_tf_outputs.TFSequenceClassifierOutput</a> or <code>tuple(tf.Tensor)</code></p>
`}}),V=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(),R=m("div"),y(P.$$.fragment),K=l(),E=m("p"),E.innerHTML=ue,ee=l(),y(G.$$.fragment),pe=l(),y(I.$$.fragment),te=l(),L=m("p"),L.textContent=ae,z=l(),j=m("div"),y(B.$$.fragment),oe=l(),q=m("p"),q.textContent=re,Y=l(),H=m("p"),H.innerHTML=le,ie=l(),x=m("div"),y(X.$$.fragment),A=l(),F=m("p"),F.innerHTML=ne,se=l(),y(V.$$.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),R=f(h,"DIV",{class:!0});var J=fe(R);w(P.$$.fragment,J),K=i(J),E=f(J,"P",{"data-svelte-h":!0}),_(E)!=="svelte-b8dk50"&&(E.innerHTML=ue),ee=i(J),w(G.$$.fragment,J),pe=i(J),w(I.$$.fragment,J),J.forEach(r),h.forEach(r),te=i(o),L=f(o,"P",{"data-svelte-h":!0}),_(L)!=="svelte-hrpvr6"&&(L.textContent=ae),z=i(o),j=f(o,"DIV",{class:!0});var U=fe(j);w(B.$$.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(X.$$.fragment,W),A=i(W),F=f(W,"P",{"data-svelte-h":!0}),_(F)!=="svelte-1pxuofu"&&(F.innerHTML=ne),se=i(W),w(V.$$.fragment,W),me=i(W),w(k.$$.fragment,W),W.forEach(r),U.forEach(r),this.h()},h(){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"),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,R),M(P,R,null),c(R,K),c(R,E),c(R,ee),M(G,R,null),c(R,pe),M(I,R,null),p(o,te,h),p(o,L,h),p(o,z,h),p(o,j,h),M(B,j,null),c(j,oe),c(j,q),c(j,Y),c(j,H),c(j,ie),c(j,x),M(X,x,null),c(x,A),c(x,F),c(x,se),M(V,x,null),c(x,me),M(k,x,null),Q=!0},p(o,h){const J={};h&2&&(J.$$scope={dirty:h,ctx:o}),G.$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}),V.$set(W);const ce={};h&2&&(ce.$$scope={dirty:h,ctx:o}),k.$set(ce)},i(o){Q||($(d.$$.fragment,o),$(P.$$.fragment,o),$(G.$$.fragment,o),$(I.$$.fragment,o),$(B.$$.fragment,o),$(X.$$.fragment,o),$(V.$$.fragment,o),$(k.$$.fragment,o),Q=!0)},o(o){T(d.$$.fragment,o),T(P.$$.fragment,o),T(G.$$.fragment,o),T(I.$$.fragment,o),T(B.$$.fragment,o),T(X.$$.fragment,o),T(V.$$.fragment,o),T(k.$$.fragment,o),Q=!1},d(o){o&&(r(e),r(s),r(t),r(te),r(L),r(z),r(j)),v(d),v(P),v(G),v(I),v(B),v(X),v(V),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,R,P=`This model inherits from <a href="/docs/transformers/pr_31172/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,G,pe="Finally, this model supports inherent JAX features such as:",I,te,L='<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,z,j,B,oe,q="The <code>FlaxRegNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",re,Y,H,le,ie,x,X="## FlaxRegNetForImageClassification[[transformers.FlaxRegNetForImageClassification]]",A,F,ne,se,V,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_31172/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.",Fe,a,b,D,Re;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_31172/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_31172/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_31172/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/pr_31172/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/vr_31172/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_31172/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_31172/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_31172/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_31172/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_31172/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_31172/en/main_classes/model#transformers.FlaxPreTrainedModel.to_fp16">to_fp16()</a> and
<a href="/docs/transformers/pr_31172/en/main_classes/model#transformers.FlaxPreTrainedModel.to_bf16">to_bf16()</a>.`,name:"dtype"}],source:"https://github.com/huggingface/transformers/blob/vr_31172/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_31172/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(),R=m("p"),R.innerHTML=P,K=l(),E=m("p"),E.innerHTML=ue,ee=l(),G=m("p"),G.textContent=pe,I=l(),te=m("ul"),te.innerHTML=L,ae=l(),z=m("div"),y(j.$$.fragment),B=l(),oe=m("p"),oe.innerHTML=q,re=l(),y(Y.$$.fragment),H=l(),y(le.$$.fragment),ie=l(),x=m("p"),x.textContent=X,A=l(),F=m("div"),y(ne.$$.fragment),se=l(),V=m("p"),V.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,Fe=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),R=f(Z,"P",{"data-svelte-h":!0}),_(R)!=="svelte-6h26vx"&&(R.innerHTML=P),K=i(Z),E=f(Z,"P",{"data-svelte-h":!0}),_(E)!=="svelte-10nfsf3"&&(E.innerHTML=ue),ee=i(Z),G=f(Z,"P",{"data-svelte-h":!0}),_(G)!=="svelte-1pplc4a"&&(G.textContent=pe),I=i(Z),te=f(Z,"UL",{"data-svelte-h":!0}),_(te)!=="svelte-m6h3rq"&&(te.innerHTML=L),ae=i(Z),z=f(Z,"DIV",{class:!0});var Te=fe(z);w(j.$$.fragment,Te),B=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=X),A=i(C),F=f(C,"DIV",{class:!0});var de=fe(F);w(ne.$$.fragment,de),se=i(de),V=f(de,"P",{"data-svelte-h":!0}),_(V)!=="svelte-ipsb0r"&&(V.textContent=me),k=i(de),Q=f(de,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-6h26vx"&&(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),Fe=i(ve),w(a.$$.fragment,ve),b=i(ve),w(D.$$.fragment,ve),ve.forEach(r),de.forEach(r),this.h()},h(){ge(z,"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(F,"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,R),c(t,K),c(t,E),c(t,ee),c(t,G),c(t,I),c(t,te),c(t,ae),c(t,z),M(j,z,null),c(z,B),c(z,oe),c(z,re),M(Y,z,null),c(z,H),M(le,z,null),p(C,ie,Z),p(C,x,Z),p(C,A,Z),p(C,F,Z),M(ne,F,null),c(F,se),c(F,V),c(F,k),c(F,Q),c(F,h),c(F,J),c(F,W),c(F,ce),c(F,Ze),c(F,xe),c(F,Ce),c(F,S),M(ye,S,null),c(S,Me),c(S,$e),c(S,Fe),M(a,S,null),c(S,b),M(D,S,null),Re=!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 Ge={};Z&2&&(Ge.$$scope={dirty:Z,ctx:C}),D.$set(Ge)},i(C){Re||($(d.$$.fragment,C),$(j.$$.fragment,C),$(Y.$$.fragment,C),$(le.$$.fragment,C),$(ne.$$.fragment,C),$(ye.$$.fragment,C),$(a.$$.fragment,C),$(D.$$.fragment,C),Re=!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),Re=!1},d(C){C&&(r(e),r(s),r(t),r(ie),r(x),r(A),r(F)),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,R='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,G="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>",L,ae,z=`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,B,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,X,A,F='<li><a href="/docs/transformers/pr_31172/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,V="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_31172/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_31172/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_31172/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,xe,we,Ce,S,ye,Me,$e,Ne,Fe;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 Le({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_31172/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 Xe({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=R,P=l(),K=m("p"),K.textContent=E,ue=l(),ee=m("p"),ee.textContent=G,pe=l(),I=m("p"),I.innerHTML=te,L=l(),ae=m("p"),ae.innerHTML=z,j=l(),B=m("p"),B.innerHTML=oe,q=l(),y(re.$$.fragment),Y=l(),H=m("p"),H.textContent=le,ie=l(),y(x.$$.fragment),X=l(),A=m("ul"),A.innerHTML=F,ne=l(),se=m("p"),se.textContent=V,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=R),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=G),pe=i(a),I=f(a,"P",{"data-svelte-h":!0}),_(I)!=="svelte-1judo2o"&&(I.innerHTML=te),L=i(a),ae=f(a,"P",{"data-svelte-h":!0}),_(ae)!=="svelte-vuzov4"&&(ae.innerHTML=z),j=i(a),B=f(a,"P",{"data-svelte-h":!0}),_(B)!=="svelte-1bagpig"&&(B.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),X=i(a),A=f(a,"UL",{"data-svelte-h":!0}),_(A)!=="svelte-n2eah2"&&(A.innerHTML=F),ne=i(a),se=f(a,"P",{"data-svelte-h":!0}),_(se)!=="svelte-1xesile"&&(se.textContent=V),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-1iqkpsk"&&(U.innerHTML=W),ce=i(D),je=f(D,"P",{"data-svelte-h":!0}),_(je)!=="svelte-22osb3"&&(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,L,b),p(a,ae,b),p(a,j,b),p(a,B,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,X,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),Fe=!0},p(a,[b]){const D={};b&2&&(D.$$scope={dirty:b,ctx:a}),we.$set(D);const Re={};b&2&&(Re.$$scope={dirty:b,ctx:a}),S.$set(Re)},i(a){Fe||($(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),Fe=!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),Fe=!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(L),r(ae),r(j),r(B),r(q),r(Y),r(H),r(ie),r(X),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 Ve(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tt extends ze{constructor(e){super(),He(this,e,ft,pt,Be,{})}}export{Tt as component};
