import{s as Qt,f as Vt,o as St,n as B}from"../chunks/scheduler.25b97de1.js";import{S as Yt,i as At,g as c,s as i,r as f,A as Ot,h as m,f as a,c as l,j as G,u,x as T,k as U,y as p,a as r,v as g,d as _,t as b,w as y}from"../chunks/index.d9030fc9.js";import{T as Ue}from"../chunks/Tip.baa67368.js";import{D as ye}from"../chunks/Docstring.ffac8efa.js";import{C as ot}from"../chunks/CodeBlock.e6cd0d95.js";import{E as tt}from"../chunks/ExampleCodeBlock.22dfe688.js";import{P as Dt}from"../chunks/PipelineTag.5f100392.js";import{H as we,E as Kt}from"../chunks/EditOnGithub.91d95064.js";function eo(v){let t,h="Example:",s,d,w;return d=new ot({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhpZXJhQ29uZmlnJTJDJTIwSGllcmFNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBIaWVyYSUyMGhpZXJhLWJhc2UtcGF0Y2gxNi0yMjQlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwSGllcmFDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwaGllcmEtYmFzZS1wYXRjaDE2LTIyNCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwSGllcmFNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HieraConfig, HieraModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Hiera hiera-base-patch16-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = HieraConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the hiera-base-patch16-224 style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = HieraModel(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=c("p"),t.textContent=h,s=i(),f(d.$$.fragment)},l(n){t=m(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=h),s=l(n),u(d.$$.fragment,n)},m(n,$){r(n,t,$),r(n,s,$),g(d,n,$),w=!0},p:B,i(n){w||(_(d.$$.fragment,n),w=!0)},o(n){b(d.$$.fragment,n),w=!1},d(n){n&&(a(t),a(s)),y(d,n)}}}function to(v){let t,h=`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=c("p"),t.innerHTML=h},l(s){t=m(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fincs2"&&(t.innerHTML=h)},m(s,d){r(s,t,d)},p:B,d(s){s&&a(t)}}}function oo(v){let t,h="Example:",s,d,w;return d=new ot({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEhpZXJhTW9kZWwlMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBkYXRhc2V0cyUyMGltcG9ydCUyMGxvYWRfZGF0YXNldCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaHVnZ2luZ2ZhY2UlMkZjYXRzLWltYWdlJTIyJTJDJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlKSUwQWltYWdlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRlc3QlMjIlNUQlNUIlMjJpbWFnZSUyMiU1RCU1QjAlNUQlMEElMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBBdXRvSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmZhY2Vib29rJTJGaGllcmEtdGlueS0yMjQtaGYlMjIpJTBBbW9kZWwlMjAlM0QlMjBIaWVyYU1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRmhpZXJhLXRpbnktMjI0LWhmJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEElMEFsYXN0X2hpZGRlbl9zdGF0ZXMlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRlJTBBbGlzdChsYXN0X2hpZGRlbl9zdGF0ZXMuc2hhcGUp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, HieraModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/hiera-tiny-224-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = HieraModel.from_pretrained(<span class="hljs-string">&quot;facebook/hiera-tiny-224-hf&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">49</span>, <span class="hljs-number">768</span>]`,wrap:!1}}),{c(){t=c("p"),t.textContent=h,s=i(),f(d.$$.fragment)},l(n){t=m(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=h),s=l(n),u(d.$$.fragment,n)},m(n,$){r(n,t,$),r(n,s,$),g(d,n,$),w=!0},p:B,i(n){w||(_(d.$$.fragment,n),w=!0)},o(n){b(d.$$.fragment,n),w=!1},d(n){n&&(a(t),a(s)),y(d,n)}}}function no(v){let t,h=`Note that we provide a script to pre-train this model on custom data in our <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-pretraining" rel="nofollow">examples
directory</a>.`;return{c(){t=c("p"),t.innerHTML=h},l(s){t=m(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-7i3y9o"&&(t.innerHTML=h)},m(s,d){r(s,t,d)},p:B,d(s){s&&a(t)}}}function ao(v){let t,h=`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=c("p"),t.innerHTML=h},l(s){t=m(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fincs2"&&(t.innerHTML=h)},m(s,d){r(s,t,d)},p:B,d(s){s&&a(t)}}}function so(v){let t,h="Examples:",s,d,w;return d=new ot({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEhpZXJhRm9yUHJlVHJhaW5pbmclMEFpbXBvcnQlMjB0b3JjaCUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZoaWVyYS10aW55LTIyNC1tYWUtaGYlMjIpJTBBbW9kZWwlMjAlM0QlMjBIaWVyYUZvclByZVRyYWluaW5nLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRmhpZXJhLXRpbnktMjI0LW1hZS1oZiUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQWxvc3MlMjAlM0QlMjBvdXRwdXRzLmxvc3MlMEFwcmludChsaXN0KGxvZ2l0cy5zaGFwZSkp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, HieraForPreTraining
<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> 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/hiera-tiny-224-mae-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = HieraForPreTraining.from_pretrained(<span class="hljs-string">&quot;facebook/hiera-tiny-224-mae-hf&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = image_processor(images=image, return_tensors=<span class="hljs-string">&quot;pt&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>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(<span class="hljs-built_in">list</span>(logits.shape))
[<span class="hljs-number">1</span>, <span class="hljs-number">196</span>, <span class="hljs-number">768</span>]`,wrap:!1}}),{c(){t=c("p"),t.textContent=h,s=i(),f(d.$$.fragment)},l(n){t=m(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-kvfsh7"&&(t.textContent=h),s=l(n),u(d.$$.fragment,n)},m(n,$){r(n,t,$),r(n,s,$),g(d,n,$),w=!0},p:B,i(n){w||(_(d.$$.fragment,n),w=!0)},o(n){b(d.$$.fragment,n),w=!1},d(n){n&&(a(t),a(s)),y(d,n)}}}function ro(v){let t,h=`Note that it’s possible to fine-tune Hiera on higher resolution images than the ones it has been trained on, by
setting <code>interpolate_pos_encoding</code> to <code>True</code> in the forward of the model. This will interpolate the pre-trained
position embeddings to the higher resolution.`;return{c(){t=c("p"),t.innerHTML=h},l(s){t=m(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-15d8aix"&&(t.innerHTML=h)},m(s,d){r(s,t,d)},p:B,d(s){s&&a(t)}}}function io(v){let t,h=`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=c("p"),t.innerHTML=h},l(s){t=m(s,"P",{"data-svelte-h":!0}),T(t)!=="svelte-fincs2"&&(t.innerHTML=h)},m(s,d){r(s,t,d)},p:B,d(s){s&&a(t)}}}function lo(v){let t,h="Example:",s,d,w;return d=new ot({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMEhpZXJhRm9ySW1hZ2VDbGFzc2lmaWNhdGlvbiUwQWltcG9ydCUyMHRvcmNoJTBBZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBJTBBZGF0YXNldCUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJodWdnaW5nZmFjZSUyRmNhdHMtaW1hZ2UlMjIlMkMlMjB0cnVzdF9yZW1vdGVfY29kZSUzRFRydWUpJTBBaW1hZ2UlMjAlM0QlMjBkYXRhc2V0JTVCJTIydGVzdCUyMiU1RCU1QiUyMmltYWdlJTIyJTVEJTVCMCU1RCUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZmFjZWJvb2slMkZoaWVyYS10aW55LTIyNC1pbjFrLWhmJTIyKSUwQW1vZGVsJTIwJTNEJTIwSGllcmFGb3JJbWFnZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJmYWNlYm9vayUyRmhpZXJhLXRpbnktMjI0LWluMWstaGYlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwaW1hZ2VfcHJvY2Vzc29yKGltYWdlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEF3aXRoJTIwdG9yY2gubm9fZ3JhZCgpJTNBJTBBJTIwJTIwJTIwJTIwbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cyUwQSUwQSUyMyUyMG1vZGVsJTIwcHJlZGljdHMlMjBvbmUlMjBvZiUyMHRoZSUyMDEwMDAlMjBJbWFnZU5ldCUyMGNsYXNzZXMlMEFwcmVkaWN0ZWRfbGFiZWwlMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludChtb2RlbC5jb25maWcuaWQybGFiZWwlNUJwcmVkaWN0ZWRfbGFiZWwlNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, HieraForImageClassification
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;huggingface/cats-image&quot;</span>, trust_remote_code=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = dataset[<span class="hljs-string">&quot;test&quot;</span>][<span class="hljs-string">&quot;image&quot;</span>][<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;facebook/hiera-tiny-224-in1k-hf&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = HieraForImageClassification.from_pretrained(<span class="hljs-string">&quot;facebook/hiera-tiny-224-in1k-hf&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(){t=c("p"),t.textContent=h,s=i(),f(d.$$.fragment)},l(n){t=m(n,"P",{"data-svelte-h":!0}),T(t)!=="svelte-11lpom8"&&(t.textContent=h),s=l(n),u(d.$$.fragment,n)},m(n,$){r(n,t,$),r(n,s,$),g(d,n,$),w=!0},p:B,i(n){w||(_(d.$$.fragment,n),w=!0)},o(n){b(d.$$.fragment,n),w=!1},d(n){n&&(a(t),a(s)),y(d,n)}}}function co(v){let t,h,s,d,w,n,$,We,O,Ht='Hiera was proposed in <a href="https://arxiv.org/abs/2306.00989" rel="nofollow">Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistles</a> by Chaitanya Ryali, Yuan-Ting Hu, Daniel Bolya, Chen Wei, Haoqi Fan, Po-Yao Huang, Vaibhav Aggarwal, Arkabandhu Chowdhury, Omid Poursaeed, Judy Hoffman, Jitendra Malik, Yanghao Li, Christoph Feichtenhofer',Ie,D,xt="The paper introduces “Hiera,” a hierarchical Vision Transformer that simplifies the architecture of modern hierarchical vision transformers by removing unnecessary components without compromising on accuracy or efficiency. Unlike traditional transformers that add complex vision-specific components to improve supervised classification performance, Hiera demonstrates that such additions, often termed “bells-and-whistles,” are not essential for high accuracy. By leveraging a strong visual pretext task (MAE) for pretraining, Hiera retains simplicity and achieves superior accuracy and speed both in inference and training across various image and video recognition tasks. The approach suggests that spatial biases required for vision tasks can be effectively learned through proper pretraining, eliminating the need for added architectural complexity.",Ze,K,Ct="The abstract from the paper is the following:",ze,ee,jt='<em>Modern hierarchical vision transformers have added several vision-specific components in the pursuit of supervised classification performance. While these components lead to effective accuracies and attractive FLOP counts, the added complexity actually makes these transformers slower than their vanilla ViT counterparts. In this paper, we argue that this additional bulk is unnecessary. By pretraining with a strong visual pretext task (MAE), we can strip out all the bells-and-whistles from a state-of-the-art multi-stage vision transformer without losing accuracy. In the process, we create Hiera, an extremely simple hierarchical vision transformer that is more accurate than previous models while being significantly faster both at inference and during training. We evaluate Hiera on a variety of tasks for image and video recognition. Our code and models are available at <a href="https://github.com/facebookresearch/hiera" rel="nofollow">https://github.com/facebookresearch/hiera</a>.</em>',Pe,q,Ft,Ne,te,kt='Hiera architecture. Taken from the <a href="https://arxiv.org/abs/2306.00989">original paper.</a>',Ge,oe,Jt='This model was a joint contribution by <a href="https://huggingface.co/EduardoPacheco" rel="nofollow">EduardoPacheco</a> and <a href="https://huggingface.co/namangarg110" rel="nofollow">namangarg110</a>. The original code can be found [here] (<a href="https://github.com/facebookresearch/hiera" rel="nofollow">https://github.com/facebookresearch/hiera</a>).',Be,ne,qe,ae,Ut="A list of official Hugging Face and community (indicated by 🌎) resources to help you get started with Hiera. 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.",Re,se,Ee,re,Wt='<li><a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraForImageClassification">HieraForImageClassification</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>',Xe,ie,Le,x,le,nt,Te,It=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraModel">HieraModel</a>. It is used to instantiate a Hiera
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 Hiera
<a href="https://huggingface.co/facebook/hiera-base-224" rel="nofollow">facebook/hiera-base-224</a> architecture.`,at,$e,Zt=`Configuration objects inherit from <a href="/docs/transformers/pr_22105/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_22105/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,st,R,Qe,de,Ve,W,ce,rt,ve,zt=`The bare Hiera Model transformer outputting raw hidden-states without any specific head on top.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass. Use it
as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,it,F,me,lt,Me,Pt='The <a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraModel">HieraModel</a> forward method, overrides the <code>__call__</code> special method.',dt,E,ct,X,Se,pe,Ye,M,he,mt,He,Nt="The Hiera Model transformer with the decoder on top for self-supervised pre-training.",pt,L,ht,xe,Gt=`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.`,ft,k,fe,ut,Ce,Bt='The <a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraForPreTraining">HieraForPreTraining</a> forward method, overrides the <code>__call__</code> special method.',gt,Q,_t,V,Ae,ue,Oe,H,ge,bt,je,qt=`Hiera Model transformer with an image classification head on top (a linear layer on top of the final hidden state with
average pooling) e.g. for ImageNet.`,yt,S,wt,Fe,Rt=`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.`,Tt,J,_e,$t,ke,Et='The <a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraForImageClassification">HieraForImageClassification</a> forward method, overrides the <code>__call__</code> special method.',vt,Y,Mt,A,De,be,Ke,Je,et;return w=new we({props:{title:"Hiera",local:"hiera",headingTag:"h1"}}),$=new we({props:{title:"Overview",local:"overview",headingTag:"h2"}}),ne=new we({props:{title:"Resources",local:"resources",headingTag:"h2"}}),se=new Dt({props:{pipeline:"image-classification"}}),ie=new we({props:{title:"HieraConfig",local:"transformers.HieraConfig",headingTag:"h2"}}),le=new ye({props:{name:"class transformers.HieraConfig",anchor:"transformers.HieraConfig",parameters:[{name:"embed_dim",val:" = 96"},{name:"image_size",val:" = [224, 224]"},{name:"patch_size",val:" = [7, 7]"},{name:"patch_stride",val:" = [4, 4]"},{name:"patch_padding",val:" = [3, 3]"},{name:"mlp_ratio",val:" = 4.0"},{name:"depths",val:" = [2, 3, 16, 3]"},{name:"num_heads",val:" = [1, 2, 4, 8]"},{name:"embed_dim_multiplier",val:" = 2.0"},{name:"num_query_pool",val:" = 3"},{name:"query_stride",val:" = [2, 2]"},{name:"masked_unit_size",val:" = [8, 8]"},{name:"masked_unit_attention",val:" = [True, True, False, False]"},{name:"drop_path_rate",val:" = 0.0"},{name:"num_channels",val:" = 3"},{name:"hidden_act",val:" = 'gelu'"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_init",val:" = 1.0"},{name:"layer_norm_eps",val:" = 1e-06"},{name:"decoder_hidden_size",val:" = None"},{name:"decoder_depth",val:" = None"},{name:"decoder_num_heads",val:" = None"},{name:"normalize_pixel_loss",val:" = True"},{name:"mask_ratio",val:" = 0.6"},{name:"out_features",val:" = None"},{name:"out_indices",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.HieraConfig.embed_dim",description:`<strong>embed_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 96) &#x2014;
Dimensionality of patch embedding.`,name:"embed_dim"},{anchor:"transformers.HieraConfig.image_size",description:`<strong>image_size</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[224, 224]</code>) &#x2014;
The size (resolution) of input in the format (height, width) for images
and (frames, height, width) for videos.`,name:"image_size"},{anchor:"transformers.HieraConfig.patch_size",description:`<strong>patch_size</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[7, 7]</code>) &#x2014;
The size (resolution) of each patch.`,name:"patch_size"},{anchor:"transformers.HieraConfig.patch_stride",description:`<strong>patch_stride</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[4, 4]</code>) &#x2014;
The stride of the patch.`,name:"patch_stride"},{anchor:"transformers.HieraConfig.patch_padding",description:`<strong>patch_padding</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[3, 3]</code>) &#x2014;
The padding of the patch.`,name:"patch_padding"},{anchor:"transformers.HieraConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#x2014;
The ratio of mlp hidden dim to embedding dim.`,name:"mlp_ratio"},{anchor:"transformers.HieraConfig.depths",description:`<strong>depths</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[2, 3, 16, 3]</code>) &#x2014;
Depth of each layer in the Transformer encoder.`,name:"depths"},{anchor:"transformers.HieraConfig.num_heads",description:`<strong>num_heads</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[1, 2, 4, 8]</code>) &#x2014;
Number of attention heads in each layer of the Transformer encoder.`,name:"num_heads"},{anchor:"transformers.HieraConfig.embed_dim_multiplier",description:`<strong>embed_dim_multiplier</strong> (<code>float</code>, <em>optional</em>, defaults to 2.0) &#x2014;
The multiplier to the dimensionality of patch embedding in each layer of the Transformer encoder.`,name:"embed_dim_multiplier"},{anchor:"transformers.HieraConfig.num_query_pool",description:`<strong>num_query_pool</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
The number of query pool stages.`,name:"num_query_pool"},{anchor:"transformers.HieraConfig.query_stride",description:`<strong>query_stride</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[2, 2]</code>) &#x2014;
The stride of the query pool.`,name:"query_stride"},{anchor:"transformers.HieraConfig.masked_unit_size",description:`<strong>masked_unit_size</strong> (<code>list(int)</code>, <em>optional</em>, defaults to <code>[8, 8]</code>) &#x2014;
The size of the masked unit.`,name:"masked_unit_size"},{anchor:"transformers.HieraConfig.masked_unit_attention",description:`<strong>masked_unit_attention</strong> (<code>list(bool)</code>, <em>optional</em>, defaults to <code>[True, True, False, False]</code>) &#x2014;
Whether to use masked unit attention in each layer of the Transformer encoder.`,name:"masked_unit_attention"},{anchor:"transformers.HieraConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The drop path rate.`,name:"drop_path_rate"},{anchor:"transformers.HieraConfig.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.HieraConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder. 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.HieraConfig.initializer_range",description:`<strong>initializer_range</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated_normal_initializer for initializing all weight matrices and
the zero_initializer for initializing all bias vectors.`,name:"initializer_range"},{anchor:"transformers.HieraConfig.layer_norm_init",description:`<strong>layer_norm_init</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
The initial weight value for layer normalization layers.`,name:"layer_norm_init"},{anchor:"transformers.HieraConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-06) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.HieraConfig.decoder_hidden_size",description:`<strong>decoder_hidden_size</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Dimensionality of decoder embeddings for MAE pretraining.`,name:"decoder_hidden_size"},{anchor:"transformers.HieraConfig.decoder_depth",description:`<strong>decoder_depth</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Depth of the decoder for MAE pretraining.`,name:"decoder_depth"},{anchor:"transformers.HieraConfig.decoder_num_heads",description:`<strong>decoder_num_heads</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of attention heads in each layer of the decoder for MAE pretraining.`,name:"decoder_num_heads"},{anchor:"transformers.HieraConfig.normalize_pixel_loss",description:`<strong>normalize_pixel_loss</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to normalize the pixel loss by the number of pixels.`,name:"normalize_pixel_loss"},{anchor:"transformers.HieraConfig.mask_ratio",description:`<strong>mask_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.6) &#x2014;
The ratio of masked tokens in the input.`,name:"mask_ratio"},{anchor:"transformers.HieraConfig.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. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_features"},{anchor:"transformers.HieraConfig.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. Must be in the
same order as defined in the <code>stage_names</code> attribute.`,name:"out_indices"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/hiera/configuration_hiera.py#L25"}}),R=new tt({props:{anchor:"transformers.HieraConfig.example",$$slots:{default:[eo]},$$scope:{ctx:v}}}),de=new we({props:{title:"HieraModel",local:"transformers.HieraModel",headingTag:"h2"}}),ce=new ye({props:{name:"class transformers.HieraModel",anchor:"transformers.HieraModel",parameters:[{name:"config",val:": HieraConfig"},{name:"add_pooling_layer",val:": bool = True"},{name:"is_mae",val:": bool = False"}],parametersDescription:[{anchor:"transformers.HieraModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraConfig">HieraConfig</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_22105/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.HieraModel.add_pooling_layer",description:`<strong>add_pooling_layer</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to apply pooling layer.`,name:"add_pooling_layer"},{anchor:"transformers.HieraModel.is_mae",description:`<strong>is_mae</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to run the model on MAE mode.`,name:"is_mae"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/hiera/modeling_hiera.py#L923"}}),me=new ye({props:{name:"forward",anchor:"transformers.HieraModel.forward",parameters:[{name:"pixel_values",val:": Optional = None"},{name:"noise",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"interpolate_pos_encoding",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.HieraModel.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_22105/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/pr_22105/en/model_doc/imagegpt#transformers.ImageGPTFeatureExtractor.__call__">BitImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.HieraModel.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.HieraModel.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.HieraModel.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.HieraModel.forward.interpolate_pos_encoding",description:`<strong>interpolate_pos_encoding</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to interpolate the pre-trained position encodings.`,name:"interpolate_pos_encoding"},{anchor:"transformers.HieraModel.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_22105/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.HieraModel.forward.noise",description:`<strong>noise</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_mask_units)</code>, <em>optional</em>) which is &#x2014;
mainly used for testing purposes to control randomness and maintain the reproducibility
when is_mae is set to True.`,name:"noise"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/hiera/modeling_hiera.py#L959",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.hiera.modeling_hiera.HieraModelOutput</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_22105/en/model_doc/hiera#transformers.HieraConfig"
>HieraConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</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>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>, <em>optional</em>, returned when <code>add_pooling_layer=True</code> is passed) — Average pooling of the last layer hidden-state.</p>
</li>
<li>
<p><strong>bool_masked_pos</strong> (<code>torch.BoolTensor</code> of shape <code>(batch_size, sequence_length)</code>) — Tensor indicating which patches are masked (0) and which are not (1).</p>
</li>
<li>
<p><strong>ids_restore</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) — Tensor containing the original index of the (shuffled) masked patches.</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 + one for the output of each stage) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. These are the unrolled hidden states of the model.</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(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each stage) 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>
<li>
<p><strong>reshaped_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 + one for the output of each stage) of
shape <code>(batch_size, height, width, hidden_size)</code>. These are the reshaped and re-rolled hidden states of the model.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs reshaped to
include the spatial dimensions.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.hiera.modeling_hiera.HieraModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),E=new Ue({props:{$$slots:{default:[to]},$$scope:{ctx:v}}}),X=new tt({props:{anchor:"transformers.HieraModel.forward.example",$$slots:{default:[oo]},$$scope:{ctx:v}}}),pe=new we({props:{title:"HieraForPreTraining",local:"transformers.HieraForPreTraining",headingTag:"h2"}}),he=new ye({props:{name:"class transformers.HieraForPreTraining",anchor:"transformers.HieraForPreTraining",parameters:[{name:"config",val:": HieraConfig"}],parametersDescription:[{anchor:"transformers.HieraForPreTraining.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraConfig">HieraConfig</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_22105/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_22105/src/transformers/models/hiera/modeling_hiera.py#L1211"}}),L=new Ue({props:{$$slots:{default:[no]},$$scope:{ctx:v}}}),fe=new ye({props:{name:"forward",anchor:"transformers.HieraForPreTraining.forward",parameters:[{name:"pixel_values",val:": Optional = None"},{name:"noise",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"interpolate_pos_encoding",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.HieraForPreTraining.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_22105/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/pr_22105/en/model_doc/imagegpt#transformers.ImageGPTFeatureExtractor.__call__">BitImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.HieraForPreTraining.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.HieraForPreTraining.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.HieraForPreTraining.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.HieraForPreTraining.forward.interpolate_pos_encoding",description:`<strong>interpolate_pos_encoding</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to interpolate the pre-trained position encodings.`,name:"interpolate_pos_encoding"},{anchor:"transformers.HieraForPreTraining.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_22105/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.HieraForPreTraining.forward.noise",description:`<strong>noise</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_mask_units)</code>, <em>optional</em>) which is &#x2014;
mainly used for testing purposes to control randomness and maintain the reproducibility
when is_mae is set to True.`,name:"noise"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/hiera/modeling_hiera.py#L1264",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.hiera.modeling_hiera.HieraForPreTrainingOutput</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_22105/en/model_doc/hiera#transformers.HieraConfig"
>HieraConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>) — Pixel reconstruction loss.</li>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, patch_size ** 2 * num_channels)</code>) — Pixel reconstruction logits.</li>
<li><strong>bool_masked_pos</strong> (<code>torch.BoolTensor</code> of shape <code>(batch_size, sequence_length)</code>) — Tensor indicating which patches are masked (0) and which are not (1).</li>
<li><strong>ids_restore</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) — Tensor containing the original index of the (shuffled) masked patches.</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 + one for the output of each layer) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. Hidden-states of the model at the output of each layer
plus the initial embedding outputs.</li>
<li><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights after the attention softmax, used to compute the weighted average in
the self-attention heads.</li>
<li><strong>reshaped_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 + one for the output of each layer) of
shape <code>(batch_size, height, width, hidden_size)</code>. Hidden-states of the model at the output of each layer
plus the initial embedding outputs reshaped to include the spatial dimensions.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.hiera.modeling_hiera.HieraForPreTrainingOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Q=new Ue({props:{$$slots:{default:[ao]},$$scope:{ctx:v}}}),V=new tt({props:{anchor:"transformers.HieraForPreTraining.forward.example",$$slots:{default:[so]},$$scope:{ctx:v}}}),ue=new we({props:{title:"HieraForImageClassification",local:"transformers.HieraForImageClassification",headingTag:"h2"}}),ge=new ye({props:{name:"class transformers.HieraForImageClassification",anchor:"transformers.HieraForImageClassification",parameters:[{name:"config",val:": HieraConfig"}],parametersDescription:[{anchor:"transformers.HieraForImageClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_22105/en/model_doc/hiera#transformers.HieraConfig">HieraConfig</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_22105/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_22105/src/transformers/models/hiera/modeling_hiera.py#L1359"}}),S=new Ue({props:{$$slots:{default:[ro]},$$scope:{ctx:v}}}),_e=new ye({props:{name:"forward",anchor:"transformers.HieraForImageClassification.forward",parameters:[{name:"pixel_values",val:""},{name:"head_mask",val:": Optional = None"},{name:"labels",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"interpolate_pos_encoding",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.HieraForImageClassification.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_22105/en/model_doc/auto#transformers.AutoImageProcessor">AutoImageProcessor</a>. See <a href="/docs/transformers/pr_22105/en/model_doc/imagegpt#transformers.ImageGPTFeatureExtractor.__call__">BitImageProcessor.<strong>call</strong>()</a>
for details.`,name:"pixel_values"},{anchor:"transformers.HieraForImageClassification.forward.head_mask",description:`<strong>head_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(num_heads,)</code> or <code>(num_layers, num_heads)</code>, <em>optional</em>) &#x2014;
Mask to nullify selected heads of the self-attention modules. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 indicates the head is <strong>not masked</strong>,</li>
<li>0 indicates the head is <strong>masked</strong>.</li>
</ul>`,name:"head_mask"},{anchor:"transformers.HieraForImageClassification.forward.output_attentions",description:`<strong>output_attentions</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the attentions tensors of all attention layers. See <code>attentions</code> under returned
tensors for more detail.`,name:"output_attentions"},{anchor:"transformers.HieraForImageClassification.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.HieraForImageClassification.forward.interpolate_pos_encoding",description:`<strong>interpolate_pos_encoding</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to interpolate the pre-trained position encodings.`,name:"interpolate_pos_encoding"},{anchor:"transformers.HieraForImageClassification.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_22105/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.HieraForImageClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the image classification/regression loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>. If <code>config.num_labels == 1</code> a regression loss is computed (Mean-Square loss), If
<code>config.num_labels &gt; 1</code> a classification loss is computed (Cross-Entropy).`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/models/hiera/modeling_hiera.py#L1389",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.hiera.modeling_hiera.HieraForImageClassificationOutput</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_22105/en/model_doc/hiera#transformers.HieraConfig"
>HieraConfig</a>) and inputs.</p>
<ul>
<li>
<p><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <code>optional</code>) — Loss value for the training task.</p>
</li>
<li>
<p><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_labels)</code>) — Prediction scores of the classification head (logits of the output layer).</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <code>optional</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, sequence_length, hidden_size)</code>. These are the unrolled hidden states of the model.</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(torch.FloatTensor)</code>, <code>optional</code>) — Tuple of <code>torch.FloatTensor</code> (one for each stage) 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>
<li>
<p><strong>reshaped_hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <code>optional</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings + one for the output of each stage) of
shape <code>(batch_size, height, width, hidden_size)</code>. These are the reshaped and re-rolled hidden states of the model.</p>
<p>Hidden-states of the model at the output of each layer plus the initial embedding outputs reshaped to
include the spatial dimensions.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.hiera.modeling_hiera.HieraForImageClassificationOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Y=new Ue({props:{$$slots:{default:[io]},$$scope:{ctx:v}}}),A=new tt({props:{anchor:"transformers.HieraForImageClassification.forward.example",$$slots:{default:[lo]},$$scope:{ctx:v}}}),be=new Kt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/hiera.md"}}),{c(){t=c("meta"),h=i(),s=c("p"),d=i(),f(w.$$.fragment),n=i(),f($.$$.fragment),We=i(),O=c("p"),O.innerHTML=Ht,Ie=i(),D=c("p"),D.textContent=xt,Ze=i(),K=c("p"),K.textContent=Ct,ze=i(),ee=c("p"),ee.innerHTML=jt,Pe=i(),q=c("img"),Ne=i(),te=c("small"),te.innerHTML=kt,Ge=i(),oe=c("p"),oe.innerHTML=Jt,Be=i(),f(ne.$$.fragment),qe=i(),ae=c("p"),ae.textContent=Ut,Re=i(),f(se.$$.fragment),Ee=i(),re=c("ul"),re.innerHTML=Wt,Xe=i(),f(ie.$$.fragment),Le=i(),x=c("div"),f(le.$$.fragment),nt=i(),Te=c("p"),Te.innerHTML=It,at=i(),$e=c("p"),$e.innerHTML=Zt,st=i(),f(R.$$.fragment),Qe=i(),f(de.$$.fragment),Ve=i(),W=c("div"),f(ce.$$.fragment),rt=i(),ve=c("p"),ve.innerHTML=zt,it=i(),F=c("div"),f(me.$$.fragment),lt=i(),Me=c("p"),Me.innerHTML=Pt,dt=i(),f(E.$$.fragment),ct=i(),f(X.$$.fragment),Se=i(),f(pe.$$.fragment),Ye=i(),M=c("div"),f(he.$$.fragment),mt=i(),He=c("p"),He.textContent=Nt,pt=i(),f(L.$$.fragment),ht=i(),xe=c("p"),xe.innerHTML=Gt,ft=i(),k=c("div"),f(fe.$$.fragment),ut=i(),Ce=c("p"),Ce.innerHTML=Bt,gt=i(),f(Q.$$.fragment),_t=i(),f(V.$$.fragment),Ae=i(),f(ue.$$.fragment),Oe=i(),H=c("div"),f(ge.$$.fragment),bt=i(),je=c("p"),je.textContent=qt,yt=i(),f(S.$$.fragment),wt=i(),Fe=c("p"),Fe.innerHTML=Rt,Tt=i(),J=c("div"),f(_e.$$.fragment),$t=i(),ke=c("p"),ke.innerHTML=Et,vt=i(),f(Y.$$.fragment),Mt=i(),f(A.$$.fragment),De=i(),f(be.$$.fragment),Ke=i(),Je=c("p"),this.h()},l(e){const o=Ot("svelte-u9bgzb",document.head);t=m(o,"META",{name:!0,content:!0}),o.forEach(a),h=l(e),s=m(e,"P",{}),G(s).forEach(a),d=l(e),u(w.$$.fragment,e),n=l(e),u($.$$.fragment,e),We=l(e),O=m(e,"P",{"data-svelte-h":!0}),T(O)!=="svelte-1hwvwes"&&(O.innerHTML=Ht),Ie=l(e),D=m(e,"P",{"data-svelte-h":!0}),T(D)!=="svelte-13w2zfe"&&(D.textContent=xt),Ze=l(e),K=m(e,"P",{"data-svelte-h":!0}),T(K)!=="svelte-vfdo9a"&&(K.textContent=Ct),ze=l(e),ee=m(e,"P",{"data-svelte-h":!0}),T(ee)!=="svelte-1m8exf9"&&(ee.innerHTML=jt),Pe=l(e),q=m(e,"IMG",{src:!0,alt:!0,width:!0}),Ne=l(e),te=m(e,"SMALL",{"data-svelte-h":!0}),T(te)!=="svelte-1cs5p0g"&&(te.innerHTML=kt),Ge=l(e),oe=m(e,"P",{"data-svelte-h":!0}),T(oe)!=="svelte-mrs97l"&&(oe.innerHTML=Jt),Be=l(e),u(ne.$$.fragment,e),qe=l(e),ae=m(e,"P",{"data-svelte-h":!0}),T(ae)!=="svelte-ahx11c"&&(ae.textContent=Ut),Re=l(e),u(se.$$.fragment,e),Ee=l(e),re=m(e,"UL",{"data-svelte-h":!0}),T(re)!=="svelte-19v515c"&&(re.innerHTML=Wt),Xe=l(e),u(ie.$$.fragment,e),Le=l(e),x=m(e,"DIV",{class:!0});var I=G(x);u(le.$$.fragment,I),nt=l(I),Te=m(I,"P",{"data-svelte-h":!0}),T(Te)!=="svelte-1nqk6vs"&&(Te.innerHTML=It),at=l(I),$e=m(I,"P",{"data-svelte-h":!0}),T($e)!=="svelte-1pjt8ff"&&($e.innerHTML=Zt),st=l(I),u(R.$$.fragment,I),I.forEach(a),Qe=l(e),u(de.$$.fragment,e),Ve=l(e),W=m(e,"DIV",{class:!0});var N=G(W);u(ce.$$.fragment,N),rt=l(N),ve=m(N,"P",{"data-svelte-h":!0}),T(ve)!=="svelte-ewoc30"&&(ve.innerHTML=zt),it=l(N),F=m(N,"DIV",{class:!0});var Z=G(F);u(me.$$.fragment,Z),lt=l(Z),Me=m(Z,"P",{"data-svelte-h":!0}),T(Me)!=="svelte-1dbmb94"&&(Me.innerHTML=Pt),dt=l(Z),u(E.$$.fragment,Z),ct=l(Z),u(X.$$.fragment,Z),Z.forEach(a),N.forEach(a),Se=l(e),u(pe.$$.fragment,e),Ye=l(e),M=m(e,"DIV",{class:!0});var C=G(M);u(he.$$.fragment,C),mt=l(C),He=m(C,"P",{"data-svelte-h":!0}),T(He)!=="svelte-dq7c69"&&(He.textContent=Nt),pt=l(C),u(L.$$.fragment,C),ht=l(C),xe=m(C,"P",{"data-svelte-h":!0}),T(xe)!=="svelte-1gjh92c"&&(xe.innerHTML=Gt),ft=l(C),k=m(C,"DIV",{class:!0});var z=G(k);u(fe.$$.fragment,z),ut=l(z),Ce=m(z,"P",{"data-svelte-h":!0}),T(Ce)!=="svelte-gljlk"&&(Ce.innerHTML=Bt),gt=l(z),u(Q.$$.fragment,z),_t=l(z),u(V.$$.fragment,z),z.forEach(a),C.forEach(a),Ae=l(e),u(ue.$$.fragment,e),Oe=l(e),H=m(e,"DIV",{class:!0});var j=G(H);u(ge.$$.fragment,j),bt=l(j),je=m(j,"P",{"data-svelte-h":!0}),T(je)!=="svelte-1pc0sj6"&&(je.textContent=qt),yt=l(j),u(S.$$.fragment,j),wt=l(j),Fe=m(j,"P",{"data-svelte-h":!0}),T(Fe)!=="svelte-1gjh92c"&&(Fe.innerHTML=Rt),Tt=l(j),J=m(j,"DIV",{class:!0});var P=G(J);u(_e.$$.fragment,P),$t=l(P),ke=m(P,"P",{"data-svelte-h":!0}),T(ke)!=="svelte-13d2xx0"&&(ke.innerHTML=Et),vt=l(P),u(Y.$$.fragment,P),Mt=l(P),u(A.$$.fragment,P),P.forEach(a),j.forEach(a),De=l(e),u(be.$$.fragment,e),Ke=l(e),Je=m(e,"P",{}),G(Je).forEach(a),this.h()},h(){U(t,"name","hf:doc:metadata"),U(t,"content",mo),Vt(q.src,Ft="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/hiera_overview.png")||U(q,"src",Ft),U(q,"alt","drawing"),U(q,"width","600"),U(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(H,"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,o){p(document.head,t),r(e,h,o),r(e,s,o),r(e,d,o),g(w,e,o),r(e,n,o),g($,e,o),r(e,We,o),r(e,O,o),r(e,Ie,o),r(e,D,o),r(e,Ze,o),r(e,K,o),r(e,ze,o),r(e,ee,o),r(e,Pe,o),r(e,q,o),r(e,Ne,o),r(e,te,o),r(e,Ge,o),r(e,oe,o),r(e,Be,o),g(ne,e,o),r(e,qe,o),r(e,ae,o),r(e,Re,o),g(se,e,o),r(e,Ee,o),r(e,re,o),r(e,Xe,o),g(ie,e,o),r(e,Le,o),r(e,x,o),g(le,x,null),p(x,nt),p(x,Te),p(x,at),p(x,$e),p(x,st),g(R,x,null),r(e,Qe,o),g(de,e,o),r(e,Ve,o),r(e,W,o),g(ce,W,null),p(W,rt),p(W,ve),p(W,it),p(W,F),g(me,F,null),p(F,lt),p(F,Me),p(F,dt),g(E,F,null),p(F,ct),g(X,F,null),r(e,Se,o),g(pe,e,o),r(e,Ye,o),r(e,M,o),g(he,M,null),p(M,mt),p(M,He),p(M,pt),g(L,M,null),p(M,ht),p(M,xe),p(M,ft),p(M,k),g(fe,k,null),p(k,ut),p(k,Ce),p(k,gt),g(Q,k,null),p(k,_t),g(V,k,null),r(e,Ae,o),g(ue,e,o),r(e,Oe,o),r(e,H,o),g(ge,H,null),p(H,bt),p(H,je),p(H,yt),g(S,H,null),p(H,wt),p(H,Fe),p(H,Tt),p(H,J),g(_e,J,null),p(J,$t),p(J,ke),p(J,vt),g(Y,J,null),p(J,Mt),g(A,J,null),r(e,De,o),g(be,e,o),r(e,Ke,o),r(e,Je,o),et=!0},p(e,[o]){const I={};o&2&&(I.$$scope={dirty:o,ctx:e}),R.$set(I);const N={};o&2&&(N.$$scope={dirty:o,ctx:e}),E.$set(N);const Z={};o&2&&(Z.$$scope={dirty:o,ctx:e}),X.$set(Z);const C={};o&2&&(C.$$scope={dirty:o,ctx:e}),L.$set(C);const z={};o&2&&(z.$$scope={dirty:o,ctx:e}),Q.$set(z);const j={};o&2&&(j.$$scope={dirty:o,ctx:e}),V.$set(j);const P={};o&2&&(P.$$scope={dirty:o,ctx:e}),S.$set(P);const Xt={};o&2&&(Xt.$$scope={dirty:o,ctx:e}),Y.$set(Xt);const Lt={};o&2&&(Lt.$$scope={dirty:o,ctx:e}),A.$set(Lt)},i(e){et||(_(w.$$.fragment,e),_($.$$.fragment,e),_(ne.$$.fragment,e),_(se.$$.fragment,e),_(ie.$$.fragment,e),_(le.$$.fragment,e),_(R.$$.fragment,e),_(de.$$.fragment,e),_(ce.$$.fragment,e),_(me.$$.fragment,e),_(E.$$.fragment,e),_(X.$$.fragment,e),_(pe.$$.fragment,e),_(he.$$.fragment,e),_(L.$$.fragment,e),_(fe.$$.fragment,e),_(Q.$$.fragment,e),_(V.$$.fragment,e),_(ue.$$.fragment,e),_(ge.$$.fragment,e),_(S.$$.fragment,e),_(_e.$$.fragment,e),_(Y.$$.fragment,e),_(A.$$.fragment,e),_(be.$$.fragment,e),et=!0)},o(e){b(w.$$.fragment,e),b($.$$.fragment,e),b(ne.$$.fragment,e),b(se.$$.fragment,e),b(ie.$$.fragment,e),b(le.$$.fragment,e),b(R.$$.fragment,e),b(de.$$.fragment,e),b(ce.$$.fragment,e),b(me.$$.fragment,e),b(E.$$.fragment,e),b(X.$$.fragment,e),b(pe.$$.fragment,e),b(he.$$.fragment,e),b(L.$$.fragment,e),b(fe.$$.fragment,e),b(Q.$$.fragment,e),b(V.$$.fragment,e),b(ue.$$.fragment,e),b(ge.$$.fragment,e),b(S.$$.fragment,e),b(_e.$$.fragment,e),b(Y.$$.fragment,e),b(A.$$.fragment,e),b(be.$$.fragment,e),et=!1},d(e){e&&(a(h),a(s),a(d),a(n),a(We),a(O),a(Ie),a(D),a(Ze),a(K),a(ze),a(ee),a(Pe),a(q),a(Ne),a(te),a(Ge),a(oe),a(Be),a(qe),a(ae),a(Re),a(Ee),a(re),a(Xe),a(Le),a(x),a(Qe),a(Ve),a(W),a(Se),a(Ye),a(M),a(Ae),a(Oe),a(H),a(De),a(Ke),a(Je)),a(t),y(w,e),y($,e),y(ne,e),y(se,e),y(ie,e),y(le),y(R),y(de,e),y(ce),y(me),y(E),y(X),y(pe,e),y(he),y(L),y(fe),y(Q),y(V),y(ue,e),y(ge),y(S),y(_e),y(Y),y(A),y(be,e)}}}const mo='{"title":"Hiera","local":"hiera","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"HieraConfig","local":"transformers.HieraConfig","sections":[],"depth":2},{"title":"HieraModel","local":"transformers.HieraModel","sections":[],"depth":2},{"title":"HieraForPreTraining","local":"transformers.HieraForPreTraining","sections":[],"depth":2},{"title":"HieraForImageClassification","local":"transformers.HieraForImageClassification","sections":[],"depth":2}],"depth":1}';function po(v){return St(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class To extends Yt{constructor(t){super(),At(this,t,po,co,Qt,{})}}export{To as component};
