import{s as vn,f as Nn,o as xn,n as U}from"../chunks/scheduler.9bc65507.js";import{S as jn,i as Cn,g as m,s as o,r as h,A as Rn,h as p,f as a,c as r,j as R,u as g,x as f,k as C,y as i,a as d,v as u,d as _,t as b,w as y}from"../chunks/index.707bf1b6.js";import{T as wt}from"../chunks/Tip.c2ecdbf4.js";import{D as Z}from"../chunks/Docstring.17db21ae.js";import{C as Ae}from"../chunks/CodeBlock.54a9f38d.js";import{E as qe}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{P as Fn}from"../chunks/PipelineTag.44585822.js";import{H as O}from"../chunks/Heading.342b1fa6.js";function Jn($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFJlc05ldENvbmZpZyUyQyUyMFJlc05ldE1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFJlc05ldCUyMHJlc25ldC01MCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBSZXNOZXRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwcmVzbmV0LTUwJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBSZXNOZXRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ResNetConfig, ResNetModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ResNet resnet-50 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ResNetConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the resnet-50 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ResNetModel(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(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function In($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Zn($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlc05ldE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBbW9kZWwlMjAlM0QlMjBSZXNOZXRNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGcmVzbmV0LTUwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZXMuc2hhcGUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ResNetModel
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ResNetModel.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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">2048</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`,wrap:!1}}),{c(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function Un($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Wn($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFJlc05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24lMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMm1pY3Jvc29mdCUyRnJlc25ldC01MCUyMiklMEFtb2RlbCUyMCUzRCUyMFJlc05ldEZvckltYWdlQ2xhc3NpZmljYXRpb24uZnJvbV9wcmV0cmFpbmVkKCUyMm1pY3Jvc29mdCUyRnJlc25ldC01MCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQXdpdGglMjB0b3JjaC5ub19ncmFkKCklM0ElMEElMjAlMjAlMjAlMjBsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpLml0ZW0oKSUwQXByaW50KG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9sYWJlbCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, ResNetForImageClassification
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ResNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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])
tiger cat`,wrap:!1}}),{c(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function kn($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Bn($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVzTmV0TW9kZWwlMEFmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmh1Z2dpbmdmYWNlJTJGY2F0cy1pbWFnZSUyMiklMEFpbWFnZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0ZXN0JTIyJTVEJTVCJTIyaW1hZ2UlMjIlNUQlNUIwJTVEJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBbW9kZWwlMjAlM0QlMjBURlJlc05ldE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZSUwQWxpc3QobGFzdF9oaWRkZW5fc3RhdGVzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFResNetModel
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFResNetModel.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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">2048</span>, <span class="hljs-number">7</span>, <span class="hljs-number">7</span>]`,wrap:!1}}),{c(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function zn($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Vn($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFRGUmVzTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRlbnNvcmZsb3clMjBhcyUyMHRmJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGcmVzbmV0LTUwJTIyKSUwQW1vZGVsJTIwJTNEJTIwVEZSZXNOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJ0ZiUyMiklMEFsb2dpdHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cykubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9sYWJlbCUyMCUzRCUyMGludCh0Zi5tYXRoLmFyZ21heChsb2dpdHMlMkMlMjBheGlzJTNELTEpKSUwQXByaW50KG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9sYWJlbCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, TFResNetForImageClassification
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = TFResNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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])
tiger cat`,wrap:!1}}),{c(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function Gn($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Xn($){let t,w="Examples:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZXNOZXRNb2RlbCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGcmVzbmV0LTUwJTIyKSUwQW1vZGVsJTIwJTNEJTIwRmxheFJlc05ldE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlcyUzRGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJucCUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbGFzdF9oaWRkZW5fc3RhdGVzJTIwJTNEJTIwb3V0cHV0cy5sYXN0X2hpZGRlbl9zdGF0ZQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxResNetModel
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxResNetModel.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-kvfsh7"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function Hn($){let t,w=`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(){t=m("p"),t.innerHTML=w},l(l){t=p(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-fincs2"&&(t.innerHTML=w)},m(l,c){d(l,t,c)},p:U,d(l){l&&a(t)}}}function Ln($){let t,w="Example:",l,c,M;return c=new Ae({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEZsYXhSZXNOZXRGb3JJbWFnZUNsYXNzaWZpY2F0aW9uJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwamF4JTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJtaWNyb3NvZnQlMkZyZXNuZXQtNTAlMjIpJTBBbW9kZWwlMjAlM0QlMjBGbGF4UmVzTmV0Rm9ySW1hZ2VDbGFzc2lmaWNhdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIybWljcm9zb2Z0JTJGcmVzbmV0LTUwJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIybnAlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRzJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9jbGFzc19pZHglMjAlM0QlMjBqYXgubnVtcHkuYXJnbWF4KGxvZ2l0cyUyQyUyMGF4aXMlM0QtMSklMEFwcmludCglMjJQcmVkaWN0ZWQlMjBjbGFzcyUzQSUyMiUyQyUyMG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9jbGFzc19pZHguaXRlbSgpJTVEKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, FlaxResNetForImageClassification
<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;microsoft/resnet-50&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = FlaxResNetForImageClassification.from_pretrained(<span class="hljs-string">&quot;microsoft/resnet-50&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(){t=m("p"),t.textContent=w,l=o(),h(c.$$.fragment)},l(s){t=p(s,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=w),l=r(s),g(c.$$.fragment,s)},m(s,T){d(s,t,T),d(s,l,T),u(c,s,T),M=!0},p:U,i(s){M||(_(c.$$.fragment,s),M=!0)},o(s){b(c.$$.fragment,s),M=!1},d(s){s&&(a(t),a(l)),y(c,s)}}}function Pn($){let t,w,l,c,M,s,T,Tt,he,Xs='The ResNet model was proposed in <a href="https://arxiv.org/abs/1512.03385" rel="nofollow">Deep Residual Learning for Image Recognition</a> by Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun. Our implementation follows the small changes made by <a href="https://catalog.ngc.nvidia.com/orgs/nvidia/resources/resnet_50_v1_5_for_pytorch" rel="nofollow">Nvidia</a>, we apply the <code>stride=2</code> for downsampling in bottleneck’s <code>3x3</code> conv and not in the first <code>1x1</code>. This is generally known as “ResNet v1.5”.',$t,ge,Hs="ResNet introduced residual connections, they allow to train networks with an unseen number of layers (up to 1000). ResNet won the 2015 ILSVRC & COCO competition, one important milestone in deep computer vision.",vt,ue,Ls="The abstract from the paper is the following:",Nt,_e,Ps=`<em>Deeper neural networks are more difficult to train. We present a residual learning framework to ease the training of networks that are substantially deeper than those used previously. We explicitly reformulate the layers as learning residual functions with reference to the layer inputs, instead of learning unreferenced functions. We provide comprehensive empirical evidence showing that these residual networks are easier to optimize, and can gain accuracy from considerably increased depth. On the ImageNet dataset we evaluate residual nets with a depth of up to 152 layers---8x deeper than VGG nets but still having lower complexity. An ensemble of these residual nets achieves 3.57% error on the ImageNet test set. This result won the 1st place on the ILSVRC 2015 classification task. We also present analysis on CIFAR-10 with 100 and 1000 layers.
The depth of representations is of central importance for many visual recognition tasks. Solely due to our extremely deep representations, we obtain a 28% relative improvement on the COCO object detection dataset. Deep residual nets are foundations of our submissions to ILSVRC &amp; COCO 2015 competitions, where we also won the 1st places on the tasks of ImageNet detection, ImageNet localization, COCO detection, and COCO segmentation.</em>`,xt,be,Qs="Tips:",jt,ye,Es='<li>One can use <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a> to prepare images for the model.</li>',Ct,we,Ys='The figure below illustrates the architecture of ResNet. Taken from the <a href="https://arxiv.org/abs/1512.03385" rel="nofollow">original paper</a>.',Rt,Me,qs,Ft,Te,As='This model was contributed by <a href="https://huggingface.co/Francesco" rel="nofollow">Francesco</a>. The TensorFlow version of this model was added by <a href="https://huggingface.co/amyeroberts" rel="nofollow">amyeroberts</a>. The original code can be found <a href="https://github.com/KaimingHe/deep-residual-networks" rel="nofollow">here</a>.',Jt,$e,It,ve,Ss="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with ResNet.",Zt,Ne,Ut,xe,Ds='<li><a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetForImageClassification">ResNetForImageClassification</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>',Wt,je,Os="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.",kt,Ce,Bt,F,Re,Ot,Se,Ks=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetModel">ResNetModel</a>. It is used to instantiate an
ResNet 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 ResNet
<a href="https://huggingface.co/microsoft/resnet-50" rel="nofollow">microsoft/resnet-50</a> architecture.`,Kt,De,en=`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.`,es,te,zt,Fe,Vt,X,Je,ts,Oe,tn=`The bare ResNet 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 matter related to general usage and
behavior.`,ss,W,Ie,ns,Ke,sn='The <a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetModel">ResNetModel</a> forward method, overrides the <code>__call__</code> special method.',as,se,os,ne,Gt,Ze,Xt,J,Ue,rs,et,nn=`ResNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,ls,tt,an=`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 matter related to general usage and
behavior.`,is,k,We,ds,st,on='The <a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetForImageClassification">ResNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',cs,ae,ms,oe,Ht,ke,Lt,H,Be,ps,nt,rn=`The bare ResNet 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">tf.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.`,fs,B,ze,hs,at,ln='The <a href="/docs/transformers/main/en/model_doc/resnet#transformers.TFResNetModel">TFResNetModel</a> forward method, overrides the <code>__call__</code> special method.',gs,re,us,le,Pt,Ve,Qt,I,Ge,_s,ot,dn=`ResNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,bs,rt,cn=`This model is a TensorFlow
<a href="https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer" rel="nofollow">tf.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.`,ys,z,Xe,ws,lt,mn='The <a href="/docs/transformers/main/en/model_doc/resnet#transformers.TFResNetForImageClassification">TFResNetForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',Ms,ie,Ts,de,Et,He,Yt,v,Le,$s,it,pn="The bare ResNet model outputting raw features without any specific head on top.",vs,dt,fn=`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)`,Ns,ct,hn=`This model is also a Flax Linen <a href="https://flax.readthedocs.io/en/latest/flax.linen.html#module" 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.`,xs,mt,gn="Finally, this model supports inherent JAX features such as:",js,pt,un='<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>',Cs,V,Pe,Rs,ft,_n="The <code>FlaxResNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",Fs,ce,Js,me,qt,Qe,At,N,Ee,Is,ht,bn=`ResNet Model with an image classification head on top (a linear layer on top of the pooled features), e.g. for
ImageNet.`,Zs,gt,yn=`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)`,Us,ut,wn=`This model is also a Flax Linen <a href="https://flax.readthedocs.io/en/latest/flax.linen.html#module" 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.`,Ws,_t,Mn="Finally, this model supports inherent JAX features such as:",ks,bt,Tn='<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>',Bs,G,Ye,zs,yt,$n="The <code>FlaxResNetPreTrainedModel</code> forward method, overrides the <code>__call__</code> special method.",Vs,pe,Gs,fe,St,Mt,Dt;return M=new O({props:{title:"ResNet",local:"resnet",headingTag:"h1"}}),T=new O({props:{title:"Overview",local:"overview",headingTag:"h2"}}),$e=new O({props:{title:"Resources",local:"resources",headingTag:"h2"}}),Ne=new Fn({props:{pipeline:"image-classification"}}),Ce=new O({props:{title:"ResNetConfig",local:"transformers.ResNetConfig",headingTag:"h2"}}),Re=new Z({props:{name:"class transformers.ResNetConfig",anchor:"transformers.ResNetConfig",parameters:[{name:"num_channels",val:" = 3"},{name:"embedding_size",val:" = 64"},{name:"hidden_sizes",val:" = [256, 512, 1024, 2048]"},{name:"depths",val:" = [3, 4, 6, 3]"},{name:"layer_type",val:" = 'bottleneck'"},{name:"hidden_act",val:" = 'relu'"},{name:"downsample_in_first_stage",val:" = False"},{name:"downsample_in_bottleneck",val:" = False"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ResNetConfig.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.ResNetConfig.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.ResNetConfig.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.ResNetConfig.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.ResNetConfig.layer_type",description:`<strong>layer_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;bottleneck&quot;</code>) &#x2014;
The layer to use, it can be either <code>&quot;basic&quot;</code> (used for smaller models, like resnet-18 or resnet-34) or
<code>&quot;bottleneck&quot;</code> (used for larger models like resnet-50 and above).`,name:"layer_type"},{anchor:"transformers.ResNetConfig.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.ResNetConfig.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"},{anchor:"transformers.ResNetConfig.downsample_in_bottleneck",description:`<strong>downsample_in_bottleneck</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the first conv 1x1 in ResNetBottleNeckLayer will downsample the inputs using a <code>stride</code> of 2.`,name:"downsample_in_bottleneck"},{anchor:"transformers.ResNetConfig.out_features",description:`<strong>out_features</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of features to output. Can be any of <code>&quot;stem&quot;</code>, <code>&quot;stage1&quot;</code>, <code>&quot;stage2&quot;</code>, etc.
(depending on how many stages the model has). If unset and <code>out_indices</code> is set, will default to the
corresponding stages. If unset and <code>out_indices</code> is unset, will default to the last stage.`,name:"out_features"},{anchor:"transformers.ResNetConfig.out_indices",description:`<strong>out_indices</strong> (<code>List[int]</code>, <em>optional</em>) &#x2014;
If used as backbone, list of indices of features to output. Can be any of 0, 1, 2, etc. (depending on how
many stages the model has). If unset and <code>out_features</code> is set, will default to the corresponding stages.
If unset and <code>out_features</code> is unset, will default to the last stage.`,name:"out_indices"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/resnet/configuration_resnet.py#L35"}}),te=new qe({props:{anchor:"transformers.ResNetConfig.example",$$slots:{default:[Jn]},$$scope:{ctx:$}}}),Fe=new O({props:{title:"ResNetModel",local:"transformers.ResNetModel",headingTag:"h2"}}),Je=new Z({props:{name:"class transformers.ResNetModel",anchor:"transformers.ResNetModel",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ResNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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/resnet/modeling_resnet.py#L321"}}),Ie=new Z({props:{name:"forward",anchor:"transformers.ResNetModel.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.ResNetModel.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/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.ResNetModel.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.ResNetModel.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/resnet/modeling_resnet.py#L331",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/resnet#transformers.ResNetConfig"
>ResNetConfig</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>
`}}),se=new wt({props:{$$slots:{default:[In]},$$scope:{ctx:$}}}),ne=new qe({props:{anchor:"transformers.ResNetModel.forward.example",$$slots:{default:[Zn]},$$scope:{ctx:$}}}),Ze=new O({props:{title:"ResNetForImageClassification",local:"transformers.ResNetForImageClassification",headingTag:"h2"}}),Ue=new Z({props:{name:"class transformers.ResNetForImageClassification",anchor:"transformers.ResNetForImageClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.ResNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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/resnet/modeling_resnet.py#L374"}}),We=new Z({props:{name:"forward",anchor:"transformers.ResNetForImageClassification.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.ResNetForImageClassification.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/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.ResNetForImageClassification.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.ResNetForImageClassification.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.ResNetForImageClassification.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/resnet/modeling_resnet.py#L387",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/resnet#transformers.ResNetConfig"
>ResNetConfig</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>
`}}),ae=new wt({props:{$$slots:{default:[Un]},$$scope:{ctx:$}}}),oe=new qe({props:{anchor:"transformers.ResNetForImageClassification.forward.example",$$slots:{default:[Wn]},$$scope:{ctx:$}}}),ke=new O({props:{title:"TFResNetModel",local:"transformers.TFResNetModel",headingTag:"h2"}}),Be=new Z({props:{name:"class transformers.TFResNetModel",anchor:"transformers.TFResNetModel",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFResNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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/resnet/modeling_tf_resnet.py#L372"}}),ze=new Z({props:{name:"call",anchor:"transformers.TFResNetModel.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.TFResNetModel.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
<a href="/docs/transformers/main/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFResNetModel.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.TFResNetModel.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/resnet/modeling_tf_resnet.py#L377",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/resnet#transformers.ResNetConfig"
>ResNetConfig</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>
`}}),re=new wt({props:{$$slots:{default:[kn]},$$scope:{ctx:$}}}),le=new qe({props:{anchor:"transformers.TFResNetModel.call.example",$$slots:{default:[Bn]},$$scope:{ctx:$}}}),Ve=new O({props:{title:"TFResNetForImageClassification",local:"transformers.TFResNetForImageClassification",headingTag:"h2"}}),Ge=new Z({props:{name:"class transformers.TFResNetForImageClassification",anchor:"transformers.TFResNetForImageClassification",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.TFResNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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/resnet/modeling_tf_resnet.py#L414"}}),Xe=new Z({props:{name:"call",anchor:"transformers.TFResNetForImageClassification.call",parameters:[{name:"pixel_values",val:": Tensor = None"},{name:"labels",val:": Tensor = None"},{name:"output_hidden_states",val:": bool = None"},{name:"return_dict",val:": bool = None"},{name:"training",val:": bool = False"}],parametersDescription:[{anchor:"transformers.TFResNetForImageClassification.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
<a href="/docs/transformers/main/en/model_doc/layoutlmv2#transformers.LayoutLMv2FeatureExtractor.__call__">ConvNextImageProcessor.<strong>call</strong>()</a> for details.`,name:"pixel_values"},{anchor:"transformers.TFResNetForImageClassification.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.TFResNetForImageClassification.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.TFResNetForImageClassification.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/resnet/modeling_tf_resnet.py#L431",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.modeling_tf_outputs.TFImageClassifierOutputWithNoAttention</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/resnet#transformers.ResNetConfig"
>ResNetConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>tf.Tensor</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>tf.Tensor</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(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 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_tf_outputs.TFImageClassifierOutputWithNoAttention</code> or <code>tuple(tf.Tensor)</code></p>
`}}),ie=new wt({props:{$$slots:{default:[zn]},$$scope:{ctx:$}}}),de=new qe({props:{anchor:"transformers.TFResNetForImageClassification.call.example",$$slots:{default:[Vn]},$$scope:{ctx:$}}}),He=new O({props:{title:"FlaxResNetModel",local:"transformers.FlaxResNetModel",headingTag:"h2"}}),Le=new Z({props:{name:"class transformers.FlaxResNetModel",anchor:"transformers.FlaxResNetModel",parameters:[{name:"config",val:": ResNetConfig"},{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.FlaxResNetModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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.FlaxResNetModel.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/resnet/modeling_flax_resnet.py#L580"}}),Pe=new Z({props:{name:"__call__",anchor:"transformers.FlaxResNetModel.__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/resnet/modeling_flax_resnet.py#L488",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPoolingAndNoAttention</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.resnet.configuration_resnet.ResNetConfig'&gt;</code>) and inputs.</p>
<ul>
<li><strong>last_hidden_state</strong> (<code>jnp.ndarray</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.</li>
<li><strong>pooler_output</strong> (<code>jnp.ndarray</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state after a pooling operation on the spatial dimensions.</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 <code>config.output_hidden_states=True</code>) — 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 layer) of shape <code>(batch_size, num_channels, height, width)</code>. Hidden-states of the
model at the output of each layer plus the optional initial embedding outputs.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.modeling_flax_outputs.FlaxBaseModelOutputWithPoolingAndNoAttention</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ce=new wt({props:{$$slots:{default:[Gn]},$$scope:{ctx:$}}}),me=new qe({props:{anchor:"transformers.FlaxResNetModel.__call__.example",$$slots:{default:[Xn]},$$scope:{ctx:$}}}),Qe=new O({props:{title:"FlaxResNetForImageClassification",local:"transformers.FlaxResNetForImageClassification",headingTag:"h2"}}),Ee=new Z({props:{name:"class transformers.FlaxResNetForImageClassification",anchor:"transformers.FlaxResNetForImageClassification",parameters:[{name:"config",val:": ResNetConfig"},{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.FlaxResNetForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/resnet#transformers.ResNetConfig">ResNetConfig</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.FlaxResNetForImageClassification.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/resnet/modeling_flax_resnet.py#L667"}}),Ye=new Z({props:{name:"__call__",anchor:"transformers.FlaxResNetForImageClassification.__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/resnet/modeling_flax_resnet.py#L488",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.resnet.configuration_resnet.ResNetConfig'&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 wt({props:{$$slots:{default:[Hn]},$$scope:{ctx:$}}}),fe=new qe({props:{anchor:"transformers.FlaxResNetForImageClassification.__call__.example",$$slots:{default:[Ln]},$$scope:{ctx:$}}}),{c(){t=m("meta"),w=o(),l=m("p"),c=o(),h(M.$$.fragment),s=o(),h(T.$$.fragment),Tt=o(),he=m("p"),he.innerHTML=Xs,$t=o(),ge=m("p"),ge.textContent=Hs,vt=o(),ue=m("p"),ue.textContent=Ls,Nt=o(),_e=m("p"),_e.innerHTML=Ps,xt=o(),be=m("p"),be.textContent=Qs,jt=o(),ye=m("ul"),ye.innerHTML=Es,Ct=o(),we=m("p"),we.innerHTML=Ys,Rt=o(),Me=m("img"),Ft=o(),Te=m("p"),Te.innerHTML=As,Jt=o(),h($e.$$.fragment),It=o(),ve=m("p"),ve.textContent=Ss,Zt=o(),h(Ne.$$.fragment),Ut=o(),xe=m("ul"),xe.innerHTML=Ds,Wt=o(),je=m("p"),je.textContent=Os,kt=o(),h(Ce.$$.fragment),Bt=o(),F=m("div"),h(Re.$$.fragment),Ot=o(),Se=m("p"),Se.innerHTML=Ks,Kt=o(),De=m("p"),De.innerHTML=en,es=o(),h(te.$$.fragment),zt=o(),h(Fe.$$.fragment),Vt=o(),X=m("div"),h(Je.$$.fragment),ts=o(),Oe=m("p"),Oe.innerHTML=tn,ss=o(),W=m("div"),h(Ie.$$.fragment),ns=o(),Ke=m("p"),Ke.innerHTML=sn,as=o(),h(se.$$.fragment),os=o(),h(ne.$$.fragment),Gt=o(),h(Ze.$$.fragment),Xt=o(),J=m("div"),h(Ue.$$.fragment),rs=o(),et=m("p"),et.textContent=nn,ls=o(),tt=m("p"),tt.innerHTML=an,is=o(),k=m("div"),h(We.$$.fragment),ds=o(),st=m("p"),st.innerHTML=on,cs=o(),h(ae.$$.fragment),ms=o(),h(oe.$$.fragment),Ht=o(),h(ke.$$.fragment),Lt=o(),H=m("div"),h(Be.$$.fragment),ps=o(),nt=m("p"),nt.innerHTML=rn,fs=o(),B=m("div"),h(ze.$$.fragment),hs=o(),at=m("p"),at.innerHTML=ln,gs=o(),h(re.$$.fragment),us=o(),h(le.$$.fragment),Pt=o(),h(Ve.$$.fragment),Qt=o(),I=m("div"),h(Ge.$$.fragment),_s=o(),ot=m("p"),ot.textContent=dn,bs=o(),rt=m("p"),rt.innerHTML=cn,ys=o(),z=m("div"),h(Xe.$$.fragment),ws=o(),lt=m("p"),lt.innerHTML=mn,Ms=o(),h(ie.$$.fragment),Ts=o(),h(de.$$.fragment),Et=o(),h(He.$$.fragment),Yt=o(),v=m("div"),h(Le.$$.fragment),$s=o(),it=m("p"),it.textContent=pn,vs=o(),dt=m("p"),dt.innerHTML=fn,Ns=o(),ct=m("p"),ct.innerHTML=hn,xs=o(),mt=m("p"),mt.textContent=gn,js=o(),pt=m("ul"),pt.innerHTML=un,Cs=o(),V=m("div"),h(Pe.$$.fragment),Rs=o(),ft=m("p"),ft.innerHTML=_n,Fs=o(),h(ce.$$.fragment),Js=o(),h(me.$$.fragment),qt=o(),h(Qe.$$.fragment),At=o(),N=m("div"),h(Ee.$$.fragment),Is=o(),ht=m("p"),ht.textContent=bn,Zs=o(),gt=m("p"),gt.innerHTML=yn,Us=o(),ut=m("p"),ut.innerHTML=wn,Ws=o(),_t=m("p"),_t.textContent=Mn,ks=o(),bt=m("ul"),bt.innerHTML=Tn,Bs=o(),G=m("div"),h(Ye.$$.fragment),zs=o(),yt=m("p"),yt.innerHTML=$n,Vs=o(),h(pe.$$.fragment),Gs=o(),h(fe.$$.fragment),St=o(),Mt=m("p"),this.h()},l(e){const n=Rn("svelte-u9bgzb",document.head);t=p(n,"META",{name:!0,content:!0}),n.forEach(a),w=r(e),l=p(e,"P",{}),R(l).forEach(a),c=r(e),g(M.$$.fragment,e),s=r(e),g(T.$$.fragment,e),Tt=r(e),he=p(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-ybpvez"&&(he.innerHTML=Xs),$t=r(e),ge=p(e,"P",{"data-svelte-h":!0}),f(ge)!=="svelte-1khrbjk"&&(ge.textContent=Hs),vt=r(e),ue=p(e,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-vfdo9a"&&(ue.textContent=Ls),Nt=r(e),_e=p(e,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-xwc7kf"&&(_e.innerHTML=Ps),xt=r(e),be=p(e,"P",{"data-svelte-h":!0}),f(be)!=="svelte-axv494"&&(be.textContent=Qs),jt=r(e),ye=p(e,"UL",{"data-svelte-h":!0}),f(ye)!=="svelte-g8ifgf"&&(ye.innerHTML=Es),Ct=r(e),we=p(e,"P",{"data-svelte-h":!0}),f(we)!=="svelte-17i7uin"&&(we.innerHTML=Ys),Rt=r(e),Me=p(e,"IMG",{width:!0,src:!0}),Ft=r(e),Te=p(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-1evl8l5"&&(Te.innerHTML=As),Jt=r(e),g($e.$$.fragment,e),It=r(e),ve=p(e,"P",{"data-svelte-h":!0}),f(ve)!=="svelte-1ageb22"&&(ve.textContent=Ss),Zt=r(e),g(Ne.$$.fragment,e),Ut=r(e),xe=p(e,"UL",{"data-svelte-h":!0}),f(xe)!=="svelte-1emh1d0"&&(xe.innerHTML=Ds),Wt=r(e),je=p(e,"P",{"data-svelte-h":!0}),f(je)!=="svelte-1xesile"&&(je.textContent=Os),kt=r(e),g(Ce.$$.fragment,e),Bt=r(e),F=p(e,"DIV",{class:!0});var L=R(F);g(Re.$$.fragment,L),Ot=r(L),Se=p(L,"P",{"data-svelte-h":!0}),f(Se)!=="svelte-yj39lo"&&(Se.innerHTML=Ks),Kt=r(L),De=p(L,"P",{"data-svelte-h":!0}),f(De)!=="svelte-o55m63"&&(De.innerHTML=en),es=r(L),g(te.$$.fragment,L),L.forEach(a),zt=r(e),g(Fe.$$.fragment,e),Vt=r(e),X=p(e,"DIV",{class:!0});var K=R(X);g(Je.$$.fragment,K),ts=r(K),Oe=p(K,"P",{"data-svelte-h":!0}),f(Oe)!=="svelte-6r8zbj"&&(Oe.innerHTML=tn),ss=r(K),W=p(K,"DIV",{class:!0});var P=R(W);g(Ie.$$.fragment,P),ns=r(P),Ke=p(P,"P",{"data-svelte-h":!0}),f(Ke)!=="svelte-1ymnyw8"&&(Ke.innerHTML=sn),as=r(P),g(se.$$.fragment,P),os=r(P),g(ne.$$.fragment,P),P.forEach(a),K.forEach(a),Gt=r(e),g(Ze.$$.fragment,e),Xt=r(e),J=p(e,"DIV",{class:!0});var Q=R(J);g(Ue.$$.fragment,Q),rs=r(Q),et=p(Q,"P",{"data-svelte-h":!0}),f(et)!=="svelte-d6857j"&&(et.textContent=nn),ls=r(Q),tt=p(Q,"P",{"data-svelte-h":!0}),f(tt)!=="svelte-1gjh92c"&&(tt.innerHTML=an),is=r(Q),k=p(Q,"DIV",{class:!0});var E=R(k);g(We.$$.fragment,E),ds=r(E),st=p(E,"P",{"data-svelte-h":!0}),f(st)!=="svelte-jwi8wa"&&(st.innerHTML=on),cs=r(E),g(ae.$$.fragment,E),ms=r(E),g(oe.$$.fragment,E),E.forEach(a),Q.forEach(a),Ht=r(e),g(ke.$$.fragment,e),Lt=r(e),H=p(e,"DIV",{class:!0});var ee=R(H);g(Be.$$.fragment,ee),ps=r(ee),nt=p(ee,"P",{"data-svelte-h":!0}),f(nt)!=="svelte-1egd8ne"&&(nt.innerHTML=rn),fs=r(ee),B=p(ee,"DIV",{class:!0});var Y=R(B);g(ze.$$.fragment,Y),hs=r(Y),at=p(Y,"P",{"data-svelte-h":!0}),f(at)!=="svelte-1qebby4"&&(at.innerHTML=ln),gs=r(Y),g(re.$$.fragment,Y),us=r(Y),g(le.$$.fragment,Y),Y.forEach(a),ee.forEach(a),Pt=r(e),g(Ve.$$.fragment,e),Qt=r(e),I=p(e,"DIV",{class:!0});var q=R(I);g(Ge.$$.fragment,q),_s=r(q),ot=p(q,"P",{"data-svelte-h":!0}),f(ot)!=="svelte-d6857j"&&(ot.textContent=dn),bs=r(q),rt=p(q,"P",{"data-svelte-h":!0}),f(rt)!=="svelte-k94fih"&&(rt.innerHTML=cn),ys=r(q),z=p(q,"DIV",{class:!0});var A=R(z);g(Xe.$$.fragment,A),ws=r(A),lt=p(A,"P",{"data-svelte-h":!0}),f(lt)!=="svelte-1gte4wq"&&(lt.innerHTML=mn),Ms=r(A),g(ie.$$.fragment,A),Ts=r(A),g(de.$$.fragment,A),A.forEach(a),q.forEach(a),Et=r(e),g(He.$$.fragment,e),Yt=r(e),v=p(e,"DIV",{class:!0});var x=R(v);g(Le.$$.fragment,x),$s=r(x),it=p(x,"P",{"data-svelte-h":!0}),f(it)!=="svelte-1eswup9"&&(it.textContent=pn),vs=r(x),dt=p(x,"P",{"data-svelte-h":!0}),f(dt)!=="svelte-3daxed"&&(dt.innerHTML=fn),Ns=r(x),ct=p(x,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-9ybkh"&&(ct.innerHTML=hn),xs=r(x),mt=p(x,"P",{"data-svelte-h":!0}),f(mt)!=="svelte-1pplc4a"&&(mt.textContent=gn),js=r(x),pt=p(x,"UL",{"data-svelte-h":!0}),f(pt)!=="svelte-1w7z84m"&&(pt.innerHTML=un),Cs=r(x),V=p(x,"DIV",{class:!0});var S=R(V);g(Pe.$$.fragment,S),Rs=r(S),ft=p(S,"P",{"data-svelte-h":!0}),f(ft)!=="svelte-1cjaw40"&&(ft.innerHTML=_n),Fs=r(S),g(ce.$$.fragment,S),Js=r(S),g(me.$$.fragment,S),S.forEach(a),x.forEach(a),qt=r(e),g(Qe.$$.fragment,e),At=r(e),N=p(e,"DIV",{class:!0});var j=R(N);g(Ee.$$.fragment,j),Is=r(j),ht=p(j,"P",{"data-svelte-h":!0}),f(ht)!=="svelte-d6857j"&&(ht.textContent=bn),Zs=r(j),gt=p(j,"P",{"data-svelte-h":!0}),f(gt)!=="svelte-3daxed"&&(gt.innerHTML=yn),Us=r(j),ut=p(j,"P",{"data-svelte-h":!0}),f(ut)!=="svelte-9ybkh"&&(ut.innerHTML=wn),Ws=r(j),_t=p(j,"P",{"data-svelte-h":!0}),f(_t)!=="svelte-1pplc4a"&&(_t.textContent=Mn),ks=r(j),bt=p(j,"UL",{"data-svelte-h":!0}),f(bt)!=="svelte-1w7z84m"&&(bt.innerHTML=Tn),Bs=r(j),G=p(j,"DIV",{class:!0});var D=R(G);g(Ye.$$.fragment,D),zs=r(D),yt=p(D,"P",{"data-svelte-h":!0}),f(yt)!=="svelte-1cjaw40"&&(yt.innerHTML=$n),Vs=r(D),g(pe.$$.fragment,D),Gs=r(D),g(fe.$$.fragment,D),D.forEach(a),j.forEach(a),St=r(e),Mt=p(e,"P",{}),R(Mt).forEach(a),this.h()},h(){C(t,"name","hf:doc:metadata"),C(t,"content",Qn),C(Me,"width","600"),Nn(Me.src,qs="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/resnet_architecture.png")||C(Me,"src",qs),C(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(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(e,n){i(document.head,t),d(e,w,n),d(e,l,n),d(e,c,n),u(M,e,n),d(e,s,n),u(T,e,n),d(e,Tt,n),d(e,he,n),d(e,$t,n),d(e,ge,n),d(e,vt,n),d(e,ue,n),d(e,Nt,n),d(e,_e,n),d(e,xt,n),d(e,be,n),d(e,jt,n),d(e,ye,n),d(e,Ct,n),d(e,we,n),d(e,Rt,n),d(e,Me,n),d(e,Ft,n),d(e,Te,n),d(e,Jt,n),u($e,e,n),d(e,It,n),d(e,ve,n),d(e,Zt,n),u(Ne,e,n),d(e,Ut,n),d(e,xe,n),d(e,Wt,n),d(e,je,n),d(e,kt,n),u(Ce,e,n),d(e,Bt,n),d(e,F,n),u(Re,F,null),i(F,Ot),i(F,Se),i(F,Kt),i(F,De),i(F,es),u(te,F,null),d(e,zt,n),u(Fe,e,n),d(e,Vt,n),d(e,X,n),u(Je,X,null),i(X,ts),i(X,Oe),i(X,ss),i(X,W),u(Ie,W,null),i(W,ns),i(W,Ke),i(W,as),u(se,W,null),i(W,os),u(ne,W,null),d(e,Gt,n),u(Ze,e,n),d(e,Xt,n),d(e,J,n),u(Ue,J,null),i(J,rs),i(J,et),i(J,ls),i(J,tt),i(J,is),i(J,k),u(We,k,null),i(k,ds),i(k,st),i(k,cs),u(ae,k,null),i(k,ms),u(oe,k,null),d(e,Ht,n),u(ke,e,n),d(e,Lt,n),d(e,H,n),u(Be,H,null),i(H,ps),i(H,nt),i(H,fs),i(H,B),u(ze,B,null),i(B,hs),i(B,at),i(B,gs),u(re,B,null),i(B,us),u(le,B,null),d(e,Pt,n),u(Ve,e,n),d(e,Qt,n),d(e,I,n),u(Ge,I,null),i(I,_s),i(I,ot),i(I,bs),i(I,rt),i(I,ys),i(I,z),u(Xe,z,null),i(z,ws),i(z,lt),i(z,Ms),u(ie,z,null),i(z,Ts),u(de,z,null),d(e,Et,n),u(He,e,n),d(e,Yt,n),d(e,v,n),u(Le,v,null),i(v,$s),i(v,it),i(v,vs),i(v,dt),i(v,Ns),i(v,ct),i(v,xs),i(v,mt),i(v,js),i(v,pt),i(v,Cs),i(v,V),u(Pe,V,null),i(V,Rs),i(V,ft),i(V,Fs),u(ce,V,null),i(V,Js),u(me,V,null),d(e,qt,n),u(Qe,e,n),d(e,At,n),d(e,N,n),u(Ee,N,null),i(N,Is),i(N,ht),i(N,Zs),i(N,gt),i(N,Us),i(N,ut),i(N,Ws),i(N,_t),i(N,ks),i(N,bt),i(N,Bs),i(N,G),u(Ye,G,null),i(G,zs),i(G,yt),i(G,Vs),u(pe,G,null),i(G,Gs),u(fe,G,null),d(e,St,n),d(e,Mt,n),Dt=!0},p(e,[n]){const L={};n&2&&(L.$$scope={dirty:n,ctx:e}),te.$set(L);const K={};n&2&&(K.$$scope={dirty:n,ctx:e}),se.$set(K);const P={};n&2&&(P.$$scope={dirty:n,ctx:e}),ne.$set(P);const Q={};n&2&&(Q.$$scope={dirty:n,ctx:e}),ae.$set(Q);const E={};n&2&&(E.$$scope={dirty:n,ctx:e}),oe.$set(E);const ee={};n&2&&(ee.$$scope={dirty:n,ctx:e}),re.$set(ee);const Y={};n&2&&(Y.$$scope={dirty:n,ctx:e}),le.$set(Y);const q={};n&2&&(q.$$scope={dirty:n,ctx:e}),ie.$set(q);const A={};n&2&&(A.$$scope={dirty:n,ctx:e}),de.$set(A);const x={};n&2&&(x.$$scope={dirty:n,ctx:e}),ce.$set(x);const S={};n&2&&(S.$$scope={dirty:n,ctx:e}),me.$set(S);const j={};n&2&&(j.$$scope={dirty:n,ctx:e}),pe.$set(j);const D={};n&2&&(D.$$scope={dirty:n,ctx:e}),fe.$set(D)},i(e){Dt||(_(M.$$.fragment,e),_(T.$$.fragment,e),_($e.$$.fragment,e),_(Ne.$$.fragment,e),_(Ce.$$.fragment,e),_(Re.$$.fragment,e),_(te.$$.fragment,e),_(Fe.$$.fragment,e),_(Je.$$.fragment,e),_(Ie.$$.fragment,e),_(se.$$.fragment,e),_(ne.$$.fragment,e),_(Ze.$$.fragment,e),_(Ue.$$.fragment,e),_(We.$$.fragment,e),_(ae.$$.fragment,e),_(oe.$$.fragment,e),_(ke.$$.fragment,e),_(Be.$$.fragment,e),_(ze.$$.fragment,e),_(re.$$.fragment,e),_(le.$$.fragment,e),_(Ve.$$.fragment,e),_(Ge.$$.fragment,e),_(Xe.$$.fragment,e),_(ie.$$.fragment,e),_(de.$$.fragment,e),_(He.$$.fragment,e),_(Le.$$.fragment,e),_(Pe.$$.fragment,e),_(ce.$$.fragment,e),_(me.$$.fragment,e),_(Qe.$$.fragment,e),_(Ee.$$.fragment,e),_(Ye.$$.fragment,e),_(pe.$$.fragment,e),_(fe.$$.fragment,e),Dt=!0)},o(e){b(M.$$.fragment,e),b(T.$$.fragment,e),b($e.$$.fragment,e),b(Ne.$$.fragment,e),b(Ce.$$.fragment,e),b(Re.$$.fragment,e),b(te.$$.fragment,e),b(Fe.$$.fragment,e),b(Je.$$.fragment,e),b(Ie.$$.fragment,e),b(se.$$.fragment,e),b(ne.$$.fragment,e),b(Ze.$$.fragment,e),b(Ue.$$.fragment,e),b(We.$$.fragment,e),b(ae.$$.fragment,e),b(oe.$$.fragment,e),b(ke.$$.fragment,e),b(Be.$$.fragment,e),b(ze.$$.fragment,e),b(re.$$.fragment,e),b(le.$$.fragment,e),b(Ve.$$.fragment,e),b(Ge.$$.fragment,e),b(Xe.$$.fragment,e),b(ie.$$.fragment,e),b(de.$$.fragment,e),b(He.$$.fragment,e),b(Le.$$.fragment,e),b(Pe.$$.fragment,e),b(ce.$$.fragment,e),b(me.$$.fragment,e),b(Qe.$$.fragment,e),b(Ee.$$.fragment,e),b(Ye.$$.fragment,e),b(pe.$$.fragment,e),b(fe.$$.fragment,e),Dt=!1},d(e){e&&(a(w),a(l),a(c),a(s),a(Tt),a(he),a($t),a(ge),a(vt),a(ue),a(Nt),a(_e),a(xt),a(be),a(jt),a(ye),a(Ct),a(we),a(Rt),a(Me),a(Ft),a(Te),a(Jt),a(It),a(ve),a(Zt),a(Ut),a(xe),a(Wt),a(je),a(kt),a(Bt),a(F),a(zt),a(Vt),a(X),a(Gt),a(Xt),a(J),a(Ht),a(Lt),a(H),a(Pt),a(Qt),a(I),a(Et),a(Yt),a(v),a(qt),a(At),a(N),a(St),a(Mt)),a(t),y(M,e),y(T,e),y($e,e),y(Ne,e),y(Ce,e),y(Re),y(te),y(Fe,e),y(Je),y(Ie),y(se),y(ne),y(Ze,e),y(Ue),y(We),y(ae),y(oe),y(ke,e),y(Be),y(ze),y(re),y(le),y(Ve,e),y(Ge),y(Xe),y(ie),y(de),y(He,e),y(Le),y(Pe),y(ce),y(me),y(Qe,e),y(Ee),y(Ye),y(pe),y(fe)}}}const Qn='{"title":"ResNet","local":"resnet","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"ResNetConfig","local":"transformers.ResNetConfig","sections":[],"depth":2},{"title":"ResNetModel","local":"transformers.ResNetModel","sections":[],"depth":2},{"title":"ResNetForImageClassification","local":"transformers.ResNetForImageClassification","sections":[],"depth":2},{"title":"TFResNetModel","local":"transformers.TFResNetModel","sections":[],"depth":2},{"title":"TFResNetForImageClassification","local":"transformers.TFResNetForImageClassification","sections":[],"depth":2},{"title":"FlaxResNetModel","local":"transformers.FlaxResNetModel","sections":[],"depth":2},{"title":"FlaxResNetForImageClassification","local":"transformers.FlaxResNetForImageClassification","sections":[],"depth":2}],"depth":1}';function En($){return xn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ta extends jn{constructor(t){super(),Cn(this,t,En,Pn,vn,{})}}export{ta as component};
