import{s as mu,f as hu,o as uu,n as I}from"../chunks/scheduler.9bc65507.js";import{S as gu,i as fu,g as r,s,u,A as vu,h as n,f as t,c as a,j as m,v as g,y as h,k as c,o,a as l,w as f,d as v,t as _,x as y}from"../chunks/index.78c82d43.js";import{T as no}from"../chunks/Tip.87d55b76.js";import{D as P}from"../chunks/Docstring.f3d04bd2.js";import{C as Oe}from"../chunks/CodeBlock.48618ec2.js";import{I as k}from"../chunks/IconCopyLink.bedaa44d.js";import{E as Se}from"../chunks/ExampleCodeBlock.872b014d.js";function _u(C){let d,w="Example:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBlcmNlaXZlck1vZGVsJTJDJTIwUGVyY2VpdmVyQ29uZmlnJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMFBlcmNlaXZlciUyMGRlZXBtaW5kJTJGbGFuZ3VhZ2UtcGVyY2VpdmVyJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMFBlcmNlaXZlckNvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwZnJvbSUyMHRoZSUyMGRlZXBtaW5kJTJGbGFuZ3VhZ2UtcGVyY2VpdmVyJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBQZXJjZWl2ZXJNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PerceiverModel, PerceiverConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a Perceiver deepmind/language-perceiver style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = PerceiverConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model from the deepmind/language-perceiver style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverModel(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`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-11lpom8"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function yu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function bu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:" ",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PerceiverConfig, PerceiverTokenizer, PerceiverImageProcessor, PerceiverModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers.models.perceiver.modeling_perceiver <span class="hljs-keyword">import</span> (
<span class="hljs-meta">... </span>    PerceiverTextPreprocessor,
<span class="hljs-meta">... </span>    PerceiverImagePreprocessor,
<span class="hljs-meta">... </span>    PerceiverClassificationDecoder,
<span class="hljs-meta">... </span>)
<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">import</span> requests
<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-comment"># EXAMPLE 1: using the Perceiver to classify texts</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># - we define a TextPreprocessor, which can be used to embed tokens</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># - we define a ClassificationDecoder, which can be used to decode the</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># final hidden states of the latents to classification logits</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># using trainable position embeddings</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = PerceiverConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span>preprocessor = PerceiverTextPreprocessor(config)
<span class="hljs-meta">&gt;&gt;&gt; </span>decoder = PerceiverClassificationDecoder(
<span class="hljs-meta">... </span>    config,
<span class="hljs-meta">... </span>    num_channels=config.d_latents,
<span class="hljs-meta">... </span>    trainable_position_encoding_kwargs=<span class="hljs-built_in">dict</span>(num_channels=config.d_latents, index_dims=<span class="hljs-number">1</span>),
<span class="hljs-meta">... </span>    use_query_residual=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverModel(config, input_preprocessor=preprocessor, decoder=decoder)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># you can then do a forward pass as follows:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = PerceiverTokenizer()
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;hello world&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<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=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># to train, one can train the model using standard cross-entropy:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>criterion = torch.nn.CrossEntropyLoss()

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor([<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = criterion(logits, labels)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># EXAMPLE 2: using the Perceiver to classify images</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># - we define an ImagePreprocessor, which can be used to embed images</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config = PerceiverConfig(image_size=<span class="hljs-number">224</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>preprocessor = PerceiverImagePreprocessor(
<span class="hljs-meta">... </span>    config,
<span class="hljs-meta">... </span>    prep_type=<span class="hljs-string">&quot;conv1x1&quot;</span>,
<span class="hljs-meta">... </span>    spatial_downsample=<span class="hljs-number">1</span>,
<span class="hljs-meta">... </span>    out_channels=<span class="hljs-number">256</span>,
<span class="hljs-meta">... </span>    position_encoding_type=<span class="hljs-string">&quot;trainable&quot;</span>,
<span class="hljs-meta">... </span>    concat_or_add_pos=<span class="hljs-string">&quot;concat&quot;</span>,
<span class="hljs-meta">... </span>    project_pos_dim=<span class="hljs-number">256</span>,
<span class="hljs-meta">... </span>    trainable_position_encoding_kwargs=<span class="hljs-built_in">dict</span>(
<span class="hljs-meta">... </span>        num_channels=<span class="hljs-number">256</span>,
<span class="hljs-meta">... </span>        index_dims=config.image_size**<span class="hljs-number">2</span>,
<span class="hljs-meta">... </span>    ),
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverModel(
<span class="hljs-meta">... </span>    config,
<span class="hljs-meta">... </span>    input_preprocessor=preprocessor,
<span class="hljs-meta">... </span>    decoder=PerceiverClassificationDecoder(
<span class="hljs-meta">... </span>        config,
<span class="hljs-meta">... </span>        num_channels=config.d_latents,
<span class="hljs-meta">... </span>        trainable_position_encoding_kwargs=<span class="hljs-built_in">dict</span>(num_channels=config.d_latents, index_dims=<span class="hljs-number">1</span>),
<span class="hljs-meta">... </span>        use_query_residual=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>    ),
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># you can then do a forward pass as follows:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image_processor = PerceiverImageProcessor()
<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>inputs = image_processor(image, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).pixel_values

<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=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># to train, one can train the model using standard cross-entropy:</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>criterion = torch.nn.CrossEntropyLoss()

<span class="hljs-meta">&gt;&gt;&gt; </span>labels = torch.tensor([<span class="hljs-number">1</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = criterion(logits, labels)`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function Mu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function wu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBQZXJjZWl2ZXJGb3JNYXNrZWRMTSUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyZGVlcG1pbmQlMkZsYW5ndWFnZS1wZXJjZWl2ZXIlMjIpJTBBbW9kZWwlMjAlM0QlMjBQZXJjZWl2ZXJGb3JNYXNrZWRMTS5mcm9tX3ByZXRyYWluZWQoJTIyZGVlcG1pbmQlMkZsYW5ndWFnZS1wZXJjZWl2ZXIlMjIpJTBBJTBBJTIzJTIwdHJhaW5pbmclMEF0ZXh0JTIwJTNEJTIwJTIyVGhpcyUyMGlzJTIwYW4lMjBpbmNvbXBsZXRlJTIwc2VudGVuY2UlMjB3aGVyZSUyMHNvbWUlMjB3b3JkcyUyMGFyZSUyMG1pc3NpbmcuJTIyJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKHRleHQlMkMlMjBwYWRkaW5nJTNEJTIybWF4X2xlbmd0aCUyMiUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTIzJTIwbWFzayUyMCUyMiUyMG1pc3NpbmcuJTIyJTBBaW5wdXRzJTVCJTIyaW5wdXRfaWRzJTIyJTVEJTVCMCUyQyUyMDUyJTNBNjElNUQlMjAlM0QlMjB0b2tlbml6ZXIubWFza190b2tlbl9pZCUwQWxhYmVscyUyMCUzRCUyMHRva2VuaXplcih0ZXh0JTJDJTIwcGFkZGluZyUzRCUyMm1heF9sZW5ndGglMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKS5pbnB1dF9pZHMlMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMlMkMlMjBsYWJlbHMlM0RsYWJlbHMpJTBBbG9zcyUyMCUzRCUyMG91dHB1dHMubG9zcyUwQXJvdW5kKGxvc3MuaXRlbSgpJTJDJTIwMiklMEElMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQWxpc3QobG9naXRzLnNoYXBlKSUwQSUwQSUyMyUyMGluZmVyZW5jZSUwQXRleHQlMjAlM0QlMjAlMjJUaGlzJTIwaXMlMjBhbiUyMGluY29tcGxldGUlMjBzZW50ZW5jZSUyMHdoZXJlJTIwc29tZSUyMHdvcmRzJTIwYXJlJTIwbWlzc2luZy4lMjIlMEFlbmNvZGluZyUyMCUzRCUyMHRva2VuaXplcih0ZXh0JTJDJTIwcGFkZGluZyUzRCUyMm1heF9sZW5ndGglMjIlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQSUyMyUyMG1hc2slMjBieXRlcyUyMGNvcnJlc3BvbmRpbmclMjB0byUyMCUyMiUyMG1pc3NpbmcuJTIyLiUyME5vdGUlMjB0aGF0JTIwdGhlJTIwbW9kZWwlMjBwZXJmb3JtcyUyMG11Y2glMjBiZXR0ZXIlMjBpZiUyMHRoZSUyMG1hc2tlZCUyMHNwYW4lMjBzdGFydHMlMjB3aXRoJTIwYSUyMHNwYWNlLiUwQWVuY29kaW5nJTVCJTIyaW5wdXRfaWRzJTIyJTVEJTVCMCUyQyUyMDUyJTNBNjElNUQlMjAlM0QlMjB0b2tlbml6ZXIubWFza190b2tlbl9pZCUwQSUwQSUyMyUyMGZvcndhcmQlMjBwYXNzJTBBd2l0aCUyMHRvcmNoLm5vX2dyYWQoKSUzQSUwQSUyMCUyMCUyMCUyMG91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmVuY29kaW5nKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRzJTBBbGlzdChsb2dpdHMuc2hhcGUpJTBBJTBBbWFza2VkX3Rva2Vuc19wcmVkaWN0aW9ucyUyMCUzRCUyMGxvZ2l0cyU1QjAlMkMlMjA1MiUzQTYxJTVELmFyZ21heChkaW0lM0QtMSkudG9saXN0KCklMEF0b2tlbml6ZXIuZGVjb2RlKG1hc2tlZF90b2tlbnNfcHJlZGljdGlvbnMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, PerceiverForMaskedLM
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;deepmind/language-perceiver&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForMaskedLM.from_pretrained(<span class="hljs-string">&quot;deepmind/language-perceiver&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># training</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;This is an incomplete sentence where some words are missing.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, padding=<span class="hljs-string">&quot;max_length&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask &quot; missing.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs[<span class="hljs-string">&quot;input_ids&quot;</span>][<span class="hljs-number">0</span>, <span class="hljs-number">52</span>:<span class="hljs-number">61</span>] = tokenizer.mask_token_id
<span class="hljs-meta">&gt;&gt;&gt; </span>labels = tokenizer(text, padding=<span class="hljs-string">&quot;max_length&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs, labels=labels)
<span class="hljs-meta">&gt;&gt;&gt; </span>loss = outputs.loss
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">round</span>(loss.item(), <span class="hljs-number">2</span>)
<span class="hljs-number">19.87</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2048</span>, <span class="hljs-number">262</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;This is an incomplete sentence where some words are missing.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>encoding = tokenizer(text, padding=<span class="hljs-string">&quot;max_length&quot;</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># mask bytes corresponding to &quot; missing.&quot;. Note that the model performs much better if the masked span starts with a space.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>encoding[<span class="hljs-string">&quot;input_ids&quot;</span>][<span class="hljs-number">0</span>, <span class="hljs-number">52</span>:<span class="hljs-number">61</span>] = tokenizer.mask_token_id

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># forward pass</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(**encoding)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2048</span>, <span class="hljs-number">262</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>masked_tokens_predictions = logits[<span class="hljs-number">0</span>, <span class="hljs-number">52</span>:<span class="hljs-number">61</span>].argmax(dim=-<span class="hljs-number">1</span>).tolist()
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer.decode(masked_tokens_predictions)
<span class="hljs-string">&#x27; missing.&#x27;</span>`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function Tu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function Pu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBQZXJjZWl2ZXJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uJTBBJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIyZGVlcG1pbmQlMkZsYW5ndWFnZS1wZXJjZWl2ZXIlMjIpJTBBbW9kZWwlMjAlM0QlMjBQZXJjZWl2ZXJGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRmxhbmd1YWdlLXBlcmNlaXZlciUyMiklMEElMEF0ZXh0JTIwJTNEJTIwJTIyaGVsbG8lMjB3b3JsZCUyMiUwQWlucHV0cyUyMCUzRCUyMHRva2VuaXplcih0ZXh0JTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMikuaW5wdXRfaWRzJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKGlucHV0cyUzRGlucHV0cyklMEFsb2dpdHMlMjAlM0QlMjBvdXRwdXRzLmxvZ2l0cyUwQWxpc3QobG9naXRzLnNoYXBlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, PerceiverForSequenceClassification

<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;deepmind/language-perceiver&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForSequenceClassification.from_pretrained(<span class="hljs-string">&quot;deepmind/language-perceiver&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&quot;hello world&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer(text, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>).input_ids
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">2</span>]`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function xu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function Cu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFBlcmNlaXZlckZvckltYWdlQ2xhc3NpZmljYXRpb25MZWFybmVkJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRnZpc2lvbi1wZXJjZWl2ZXItbGVhcm5lZCUyMiklMEFtb2RlbCUyMCUzRCUyMFBlcmNlaXZlckZvckltYWdlQ2xhc3NpZmljYXRpb25MZWFybmVkLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRnZpc2lvbi1wZXJjZWl2ZXItbGVhcm5lZCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKS5waXhlbF92YWx1ZXMlMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoaW5wdXRzJTNEaW5wdXRzKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRzJTBBbGlzdChsb2dpdHMuc2hhcGUpJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9jbGFzc19pZHglMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludCglMjJQcmVkaWN0ZWQlMjBjbGFzcyUzQSUyMiUyQyUyMG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9jbGFzc19pZHglNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, PerceiverForImageClassificationLearned
<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;deepmind/vision-perceiver-learned&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForImageClassificationLearned.from_pretrained(<span class="hljs-string">&quot;deepmind/vision-perceiver-learned&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>).pixel_values
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">1000</span>]

<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 = logits.argmax(-<span class="hljs-number">1</span>).item()
<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])
Predicted <span class="hljs-keyword">class</span>: tabby, tabby cat`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function ku(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function $u(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFBlcmNlaXZlckZvckltYWdlQ2xhc3NpZmljYXRpb25Gb3VyaWVyJTBBZnJvbSUyMFBJTCUyMGltcG9ydCUyMEltYWdlJTBBaW1wb3J0JTIwcmVxdWVzdHMlMEElMEF1cmwlMjAlM0QlMjAlMjJodHRwJTNBJTJGJTJGaW1hZ2VzLmNvY29kYXRhc2V0Lm9yZyUyRnZhbDIwMTclMkYwMDAwMDAwMzk3NjkuanBnJTIyJTBBaW1hZ2UlMjAlM0QlMjBJbWFnZS5vcGVuKHJlcXVlc3RzLmdldCh1cmwlMkMlMjBzdHJlYW0lM0RUcnVlKS5yYXcpJTBBJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRnZpc2lvbi1wZXJjZWl2ZXItZm91cmllciUyMiklMEFtb2RlbCUyMCUzRCUyMFBlcmNlaXZlckZvckltYWdlQ2xhc3NpZmljYXRpb25Gb3VyaWVyLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRnZpc2lvbi1wZXJjZWl2ZXItZm91cmllciUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBpbWFnZV9wcm9jZXNzb3IoaW1hZ2VzJTNEaW1hZ2UlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKS5waXhlbF92YWx1ZXMlMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoaW5wdXRzJTNEaW5wdXRzKSUwQWxvZ2l0cyUyMCUzRCUyMG91dHB1dHMubG9naXRzJTBBbGlzdChsb2dpdHMuc2hhcGUpJTBBJTBBJTIzJTIwbW9kZWwlMjBwcmVkaWN0cyUyMG9uZSUyMG9mJTIwdGhlJTIwMTAwMCUyMEltYWdlTmV0JTIwY2xhc3NlcyUwQXByZWRpY3RlZF9jbGFzc19pZHglMjAlM0QlMjBsb2dpdHMuYXJnbWF4KC0xKS5pdGVtKCklMEFwcmludCglMjJQcmVkaWN0ZWQlMjBjbGFzcyUzQSUyMiUyQyUyMG1vZGVsLmNvbmZpZy5pZDJsYWJlbCU1QnByZWRpY3RlZF9jbGFzc19pZHglNUQp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, PerceiverForImageClassificationFourier
<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;deepmind/vision-perceiver-fourier&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForImageClassificationFourier.from_pretrained(<span class="hljs-string">&quot;deepmind/vision-perceiver-fourier&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>).pixel_values
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">1000</span>]

<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 = logits.argmax(-<span class="hljs-number">1</span>).item()
<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])
Predicted <span class="hljs-keyword">class</span>: tabby, tabby cat`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function ju(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function Ju(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUyQyUyMFBlcmNlaXZlckZvckltYWdlQ2xhc3NpZmljYXRpb25Db252UHJvY2Vzc2luZyUwQWZyb20lMjBQSUwlMjBpbXBvcnQlMjBJbWFnZSUwQWltcG9ydCUyMHJlcXVlc3RzJTBBJTBBdXJsJTIwJTNEJTIwJTIyaHR0cCUzQSUyRiUyRmltYWdlcy5jb2NvZGF0YXNldC5vcmclMkZ2YWwyMDE3JTJGMDAwMDAwMDM5NzY5LmpwZyUyMiUwQWltYWdlJTIwJTNEJTIwSW1hZ2Uub3BlbihyZXF1ZXN0cy5nZXQodXJsJTJDJTIwc3RyZWFtJTNEVHJ1ZSkucmF3KSUwQSUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMEF1dG9JbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyZGVlcG1pbmQlMkZ2aXNpb24tcGVyY2VpdmVyLWNvbnYlMjIpJTBBbW9kZWwlMjAlM0QlMjBQZXJjZWl2ZXJGb3JJbWFnZUNsYXNzaWZpY2F0aW9uQ29udlByb2Nlc3NpbmcuZnJvbV9wcmV0cmFpbmVkKCUyMmRlZXBtaW5kJTJGdmlzaW9uLXBlcmNlaXZlci1jb252JTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMGltYWdlX3Byb2Nlc3NvcihpbWFnZXMlM0RpbWFnZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpLnBpeGVsX3ZhbHVlcyUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbChpbnB1dHMlM0RpbnB1dHMpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHMlMEFsaXN0KGxvZ2l0cy5zaGFwZSklMEElMEElMjMlMjBtb2RlbCUyMHByZWRpY3RzJTIwb25lJTIwb2YlMjB0aGUlMjAxMDAwJTIwSW1hZ2VOZXQlMjBjbGFzc2VzJTBBcHJlZGljdGVkX2NsYXNzX2lkeCUyMCUzRCUyMGxvZ2l0cy5hcmdtYXgoLTEpLml0ZW0oKSUwQXByaW50KCUyMlByZWRpY3RlZCUyMGNsYXNzJTNBJTIyJTJDJTIwbW9kZWwuY29uZmlnLmlkMmxhYmVsJTVCcHJlZGljdGVkX2NsYXNzX2lkeCU1RCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor, PerceiverForImageClassificationConvProcessing
<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;deepmind/vision-perceiver-conv&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForImageClassificationConvProcessing.from_pretrained(<span class="hljs-string">&quot;deepmind/vision-perceiver-conv&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>).pixel_values
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">1000</span>]

<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 = logits.argmax(-<span class="hljs-number">1</span>).item()
<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])
Predicted <span class="hljs-keyword">class</span>: tabby, tabby cat`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function Fu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function Uu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBlcmNlaXZlckZvck9wdGljYWxGbG93JTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbCUyMCUzRCUyMFBlcmNlaXZlckZvck9wdGljYWxGbG93LmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRm9wdGljYWwtZmxvdy1wZXJjZWl2ZXIlMjIpJTBBJTBBJTIzJTIwaW4lMjB0aGUlMjBQZXJjZWl2ZXIlMjBJTyUyMHBhcGVyJTJDJTIwdGhlJTIwYXV0aG9ycyUyMGV4dHJhY3QlMjBhJTIwMyUyMHglMjAzJTIwcGF0Y2glMjBhcm91bmQlMjBlYWNoJTIwcGl4ZWwlMkMlMEElMjMlMjBsZWFkaW5nJTIwdG8lMjAzJTIweCUyMDMlMjB4JTIwMyUyMCUzRCUyMDI3JTIwdmFsdWVzJTIwZm9yJTIwZWFjaCUyMHBpeGVsJTIwKGFzJTIwZWFjaCUyMHBpeGVsJTIwYWxzbyUyMGhhcyUyMDMlMjBjb2xvciUyMGNoYW5uZWxzKSUwQSUyMyUyMHBhdGNoZXMlMjBoYXZlJTIwc2hhcGUlMjAoYmF0Y2hfc2l6ZSUyQyUyMG51bV9mcmFtZXMlMkMlMjBudW1fY2hhbm5lbHMlMkMlMjBoZWlnaHQlMkMlMjB3aWR0aCklMEElMjMlMjB0aGUlMjBhdXRob3JzJTIwdHJhaW4lMjBvbiUyMHJlc29sdXRpb25zJTIwb2YlMjAzNjglMjB4JTIwNDk2JTBBcGF0Y2hlcyUyMCUzRCUyMHRvcmNoLnJhbmRuKDElMkMlMjAyJTJDJTIwMjclMkMlMjAzNjglMkMlMjA0OTYpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKGlucHV0cyUzRHBhdGNoZXMpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHMlMEFsaXN0KGxvZ2l0cy5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PerceiverForOpticalFlow
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForOpticalFlow.from_pretrained(<span class="hljs-string">&quot;deepmind/optical-flow-perceiver&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># in the Perceiver IO paper, the authors extract a 3 x 3 patch around each pixel,</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># leading to 3 x 3 x 3 = 27 values for each pixel (as each pixel also has 3 color channels)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># patches have shape (batch_size, num_frames, num_channels, height, width)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># the authors train on resolutions of 368 x 496</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>patches = torch.randn(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">27</span>, <span class="hljs-number">368</span>, <span class="hljs-number">496</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=patches)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits.shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">368</span>, <span class="hljs-number">496</span>, <span class="hljs-number">2</span>]`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function Iu(C){let d,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(){d=r("p"),d.innerHTML=w},l(b){d=n(b,"P",{"data-svelte-h":!0}),h(d)!=="svelte-fincs2"&&(d.innerHTML=w)},m(b,M){l(b,d,M)},p:I,d(b){b&&t(d)}}}function Zu(C){let d,w="Examples:",b,M,T;return M=new Oe({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBlcmNlaXZlckZvck11bHRpbW9kYWxBdXRvZW5jb2RpbmclMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMG51bXB5JTIwYXMlMjBucCUwQSUwQSUyMyUyMGNyZWF0ZSUyMG11bHRpbW9kYWwlMjBpbnB1dHMlMEFpbWFnZXMlMjAlM0QlMjB0b3JjaC5yYW5kbigoMSUyQyUyMDE2JTJDJTIwMyUyQyUyMDIyNCUyQyUyMDIyNCkpJTBBYXVkaW8lMjAlM0QlMjB0b3JjaC5yYW5kbigoMSUyQyUyMDMwNzIwJTJDJTIwMSkpJTBBaW5wdXRzJTIwJTNEJTIwZGljdChpbWFnZSUzRGltYWdlcyUyQyUyMGF1ZGlvJTNEYXVkaW8lMkMlMjBsYWJlbCUzRHRvcmNoLnplcm9zKChpbWFnZXMuc2hhcGUlNUIwJTVEJTJDJTIwNzAwKSkpJTBBJTBBbW9kZWwlMjAlM0QlMjBQZXJjZWl2ZXJGb3JNdWx0aW1vZGFsQXV0b2VuY29kaW5nLmZyb21fcHJldHJhaW5lZCglMjJkZWVwbWluZCUyRm11bHRpbW9kYWwtcGVyY2VpdmVyJTIyKSUwQSUwQSUyMyUyMGluJTIwdGhlJTIwUGVyY2VpdmVyJTIwSU8lMjBwYXBlciUyQyUyMHZpZGVvcyUyMGFyZSUyMGF1dG8tZW5jb2RlZCUyMGluJTIwY2h1bmtzJTBBJTIzJTIwZWFjaCUyMGNodW5rJTIwc3Vic2FtcGxlcyUyMGRpZmZlcmVudCUyMGluZGV4JTIwZGltZW5zaW9ucyUyMG9mJTIwdGhlJTIwaW1hZ2UlMjBhbmQlMjBhdWRpbyUyMG1vZGFsaXR5JTIwZGVjb2RlciUyMHF1ZXJpZXMlMEFuY2h1bmtzJTIwJTNEJTIwMTI4JTBBaW1hZ2VfY2h1bmtfc2l6ZSUyMCUzRCUyMG5wLnByb2QoKDE2JTJDJTIwMjI0JTJDJTIwMjI0KSklMjAlMkYlMkYlMjBuY2h1bmtzJTBBYXVkaW9fY2h1bmtfc2l6ZSUyMCUzRCUyMGF1ZGlvLnNoYXBlJTVCMSU1RCUyMCUyRiUyRiUyMG1vZGVsLmNvbmZpZy5zYW1wbGVzX3Blcl9wYXRjaCUyMCUyRiUyRiUyMG5jaHVua3MlMEElMjMlMjBwcm9jZXNzJTIwdGhlJTIwZmlyc3QlMjBjaHVuayUwQWNodW5rX2lkeCUyMCUzRCUyMDAlMEFzdWJzYW1wbGluZyUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMmltYWdlJTIyJTNBJTIwdG9yY2guYXJhbmdlKGltYWdlX2NodW5rX3NpemUlMjAqJTIwY2h1bmtfaWR4JTJDJTIwaW1hZ2VfY2h1bmtfc2l6ZSUyMColMjAoY2h1bmtfaWR4JTIwJTJCJTIwMSkpJTJDJTBBJTIwJTIwJTIwJTIwJTIyYXVkaW8lMjIlM0ElMjB0b3JjaC5hcmFuZ2UoYXVkaW9fY2h1bmtfc2l6ZSUyMColMjBjaHVua19pZHglMkMlMjBhdWRpb19jaHVua19zaXplJTIwKiUyMChjaHVua19pZHglMjAlMkIlMjAxKSklMkMlMEElMjAlMjAlMjAlMjAlMjJsYWJlbCUyMiUzQSUyME5vbmUlMkMlMEElN0QlMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoaW5wdXRzJTNEaW5wdXRzJTJDJTIwc3Vic2FtcGxlZF9vdXRwdXRfcG9pbnRzJTNEc3Vic2FtcGxpbmcpJTBBbG9naXRzJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHMlMEFsaXN0KGxvZ2l0cyU1QiUyMmF1ZGlvJTIyJTVELnNoYXBlKSUwQSUwQWxpc3QobG9naXRzJTVCJTIyaW1hZ2UlMjIlNUQuc2hhcGUpJTBBJTBBbGlzdChsb2dpdHMlNUIlMjJsYWJlbCUyMiU1RC5zaGFwZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PerceiverForMultimodalAutoencoding
<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">import</span> numpy <span class="hljs-keyword">as</span> np

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># create multimodal inputs</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>images = torch.randn((<span class="hljs-number">1</span>, <span class="hljs-number">16</span>, <span class="hljs-number">3</span>, <span class="hljs-number">224</span>, <span class="hljs-number">224</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = torch.randn((<span class="hljs-number">1</span>, <span class="hljs-number">30720</span>, <span class="hljs-number">1</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = <span class="hljs-built_in">dict</span>(image=images, audio=audio, label=torch.zeros((images.shape[<span class="hljs-number">0</span>], <span class="hljs-number">700</span>)))

<span class="hljs-meta">&gt;&gt;&gt; </span>model = PerceiverForMultimodalAutoencoding.from_pretrained(<span class="hljs-string">&quot;deepmind/multimodal-perceiver&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># in the Perceiver IO paper, videos are auto-encoded in chunks</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># each chunk subsamples different index dimensions of the image and audio modality decoder queries</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>nchunks = <span class="hljs-number">128</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>image_chunk_size = np.prod((<span class="hljs-number">16</span>, <span class="hljs-number">224</span>, <span class="hljs-number">224</span>)) // nchunks
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_chunk_size = audio.shape[<span class="hljs-number">1</span>] // model.config.samples_per_patch // nchunks
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># process the first chunk</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>chunk_idx = <span class="hljs-number">0</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>subsampling = {
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;image&quot;</span>: torch.arange(image_chunk_size * chunk_idx, image_chunk_size * (chunk_idx + <span class="hljs-number">1</span>)),
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;audio&quot;</span>: torch.arange(audio_chunk_size * chunk_idx, audio_chunk_size * (chunk_idx + <span class="hljs-number">1</span>)),
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>}

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(inputs=inputs, subsampled_output_points=subsampling)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits = outputs.logits
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits[<span class="hljs-string">&quot;audio&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">240</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits[<span class="hljs-string">&quot;image&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">6272</span>, <span class="hljs-number">3</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">list</span>(logits[<span class="hljs-string">&quot;label&quot;</span>].shape)
[<span class="hljs-number">1</span>, <span class="hljs-number">700</span>]`}}),{c(){d=r("p"),d.textContent=w,b=s(),u(M.$$.fragment)},l(p){d=n(p,"P",{"data-svelte-h":!0}),h(d)!=="svelte-kvfsh7"&&(d.textContent=w),b=a(p),g(M.$$.fragment,p)},m(p,x){l(p,d,x),l(p,b,x),f(M,p,x),T=!0},p:I,i(p){T||(v(M.$$.fragment,p),T=!0)},o(p){_(M.$$.fragment,p),T=!1},d(p){p&&(t(d),t(b)),y(M,p)}}}function zu(C){let d,w,b,M,T,p,x,so,Ll,Or,ip="Perceiver",Ia,ne,Ye,Xs,ao,Dl,Yr,lp="Overview",Za,io,cp=`The Perceiver IO model was proposed in <a href="https://arxiv.org/abs/2107.14795" rel="nofollow">Perceiver IO: A General Architecture for Structured Inputs &amp;
Outputs</a> by Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch,
Catalin Ionescu, David Ding, Skanda Koppula, Daniel Zoran, Andrew Brock, Evan Shelhamer, Olivier Hénaff, Matthew M.
Botvinick, Andrew Zisserman, Oriol Vinyals, João Carreira.`,za,lo,dp=`Perceiver IO is a generalization of <a href="https://arxiv.org/abs/2103.03206" rel="nofollow">Perceiver</a> to handle arbitrary outputs in
addition to arbitrary inputs. The original Perceiver only produced a single classification label. In addition to
classification labels, Perceiver IO can produce (for example) language, optical flow, and multimodal videos with audio.
This is done using the same building blocks as the original Perceiver. The computational complexity of Perceiver IO is
linear in the input and output size and the bulk of the processing occurs in the latent space, allowing us to process
inputs and outputs that are much larger than can be handled by standard Transformers. This means, for example,
Perceiver IO can do BERT-style masked language modeling directly using bytes instead of tokenized inputs.`,Wa,co,pp="The abstract from the paper is the following:",Na,po,mp=`<em>The recently-proposed Perceiver model obtains good results on several domains (images, audio, multimodal, point
clouds) while scaling linearly in compute and memory with the input size. While the Perceiver supports many kinds of
inputs, it can only produce very simple outputs such as class scores. Perceiver IO overcomes this limitation without
sacrificing the original’s appealing properties by learning to flexibly query the model’s latent space to produce
outputs of arbitrary size and semantics. Perceiver IO still decouples model depth from data size and still scales
linearly with data size, but now with respect to both input and output sizes. The full Perceiver IO model achieves
strong results on tasks with highly structured output spaces, such as natural language and visual understanding,
StarCraft II, and multi-task and multi-modal domains. As highlights, Perceiver IO matches a Transformer-based BERT
baseline on the GLUE language benchmark without the need for input tokenization and achieves state-of-the-art
performance on Sintel optical flow estimation.</em>`,Ba,mo,hp="Here’s a TLDR explaining how Perceiver works:",Ea,ho,up=`The main problem with the self-attention mechanism of the Transformer is that the time and memory requirements scale
quadratically with the sequence length. Hence, models like BERT and RoBERTa are limited to a max sequence length of 512
tokens. Perceiver aims to solve this issue by, instead of performing self-attention on the inputs, perform it on a set
of latent variables, and only use the inputs for cross-attention. In this way, the time and memory requirements don’t
depend on the length of the inputs anymore, as one uses a fixed amount of latent variables, like 256 or 512. These are
randomly initialized, after which they are trained end-to-end using backpropagation.`,qa,uo,gp=`Internally, <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a> will create the latents, which is a tensor of shape <code>(batch_size, num_latents, d_latents)</code>. One must provide <code>inputs</code> (which could be text, images, audio, you name it!) to the model, which it will
use to perform cross-attention with the latents. The output of the Perceiver encoder is a tensor of the same shape. One
can then, similar to BERT, convert the last hidden states of the latents to classification logits by averaging along
the sequence dimension, and placing a linear layer on top of that to project the <code>d_latents</code> to <code>num_labels</code>.`,Ga,go,fp=`This was the idea of the original Perceiver paper. However, it could only output classification logits. In a follow-up
work, PerceiverIO, they generalized it to let the model also produce outputs of arbitrary size. How, you might ask? The
idea is actually relatively simple: one defines outputs of an arbitrary size, and then applies cross-attention with the
last hidden states of the latents, using the outputs as queries, and the latents as keys and values.`,Ha,fo,vp=`So let’s say one wants to perform masked language modeling (BERT-style) with the Perceiver. As the Perceiver’s input
length will not have an impact on the computation time of the self-attention layers, one can provide raw bytes,
providing <code>inputs</code> of length 2048 to the model. If one now masks out certain of these 2048 tokens, one can define the
<code>outputs</code> as being of shape: <code>(batch_size, 2048, 768)</code>. Next, one performs cross-attention with the final hidden states
of the latents to update the <code>outputs</code> tensor. After cross-attention, one still has a tensor of shape <code>(batch_size, 2048, 768)</code>. One can then place a regular language modeling head on top, to project the last dimension to the
vocabulary size of the model, i.e. creating logits of shape <code>(batch_size, 2048, 262)</code> (as Perceiver uses a vocabulary
size of 262 byte IDs).`,Aa,Qe,_p,Va,vo,yp='Perceiver IO architecture. Taken from the <a href="https://arxiv.org/abs/2105.15203">original paper</a>',La,_o,bp=`This model was contributed by <a href="https://huggingface.co/nielsr" rel="nofollow">nielsr</a>. The original code can be found
<a href="https://github.com/deepmind/deepmind-research/tree/master/perceiver" rel="nofollow">here</a>.`,Da,yo,Mp="Tips:",Ra,bo,wp=`<li>The quickest way to get started with the Perceiver is by checking the <a href="https://github.com/NielsRogge/Transformers-Tutorials/tree/master/Perceiver" rel="nofollow">tutorial
notebooks</a>.</li> <li>Refer to the <a href="https://huggingface.co/blog/perceiver" rel="nofollow">blog post</a> if you want to fully understand how the model works and
is implemented in the library. Note that the models available in the library only showcase some examples of what you can do
with the Perceiver. There are many more use cases, including question answering, named-entity recognition, object detection,
audio classification, video classification, etc.</li>`,Xa,Mo,Tp="<strong>Note</strong>:",Sa,wo,Pp='<li>Perceiver does <strong>not</strong> work with <code>torch.nn.DataParallel</code> due to a bug in PyTorch, see <a href="https://github.com/pytorch/pytorch/issues/36035" rel="nofollow">issue #36035</a></li>',Oa,se,Ke,Ss,To,Rl,Qr,xp="Documentation resources",Ya,Po,Cp='<li><a href="../tasks/sequence_classification">Text classification task guide</a></li> <li><a href="../tasks/masked_language_modeling">Masked language modeling task guide</a></li> <li><a href="../tasks/image_classification">Image classification task guide</a></li>',Qa,ae,et,Os,xo,Xl,Kr,kp="Perceiver specific outputs",Ka,ie,Co,Sl,en,$p="Base class for Perceiver base model’s outputs, with potential hidden states, attentions and cross-attentions.",ei,le,ko,Ol,tn,jp="Base class for Perceiver decoder outputs, with potential cross-attentions.",ti,ce,$o,Yl,on,Jp="Base class for Perceiver’s masked language model outputs.",oi,de,jo,Ql,rn,Fp=`Base class for Perceiver’s outputs of sequence/image classification models, optical flow and multimodal
autoencoding.`,ri,pe,tt,Ys,Jo,Kl,nn,Up="PerceiverConfig",ni,z,Fo,ec,sn,Ip=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a>. It is used to instantiate an
Perceiver 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 Perceiver
<a href="https://huggingface.co/deepmind/language-perceiver" rel="nofollow">deepmind/language-perceiver</a> architecture.`,tc,an,Zp=`Configuration objects inherit from <a href="/docs/transformers/v4.33.3/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/v4.33.3/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,oc,ot,si,me,rt,Qs,Uo,rc,ln,zp="PerceiverTokenizer",ai,W,Io,nc,cn,Wp="Construct a Perceiver tokenizer. The Perceiver simply uses raw bytes utf-8 encoding.",sc,dn,Np=`This tokenizer inherits from <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a> which contains most of the main methods. Users should refer to
this superclass for more information regarding those methods.`,ac,nt,Zo,ic,pn,Bp=`Main method to tokenize and prepare for the model one or several sequence(s) or one or several pair(s) of
sequences.`,ii,he,st,Ks,zo,lc,mn,Ep="PerceiverFeatureExtractor",li,ue,Wo,cc,at,No,dc,hn,qp="Preprocess an image or a batch of images.",ci,ge,it,ea,Bo,pc,un,Gp="PerceiverImageProcessor",di,X,Eo,mc,gn,Hp="Constructs a Perceiver image processor.",hc,lt,qo,uc,fn,Ap="Preprocess an image or batch of images.",pi,fe,ct,ta,Go,gc,vn,Vp="PerceiverTextPreprocessor",mi,S,Ho,fc,_n,Lp="Text preprocessing for Perceiver Encoder. Can be used to embed <code>inputs</code> and add positional encodings.",vc,yn,Dp="The dimensionality of the embeddings is determined by the <code>d_model</code> attribute of the configuration.",hi,ve,dt,oa,Ao,_c,bn,Rp="PerceiverImagePreprocessor",ui,O,Vo,yc,Mn,Xp="Image preprocessing for Perceiver Encoder.",bc,wn,Sp=`Note: the <em>out_channels</em> argument refers to the output channels of a convolutional layer, if <em>prep_type</em> is set to
“conv1x1” or “conv”. If one adds absolute position embeddings, one must make sure the <em>num_channels</em> of the
position encoding kwargs are set equal to the <em>out_channels</em>.`,gi,_e,pt,ra,Lo,Mc,Tn,Op="PerceiverOneHotPreprocessor",fi,ye,Do,wc,Pn,Yp="One-hot preprocessor for Perceiver Encoder. Can be used to add a dummy index dimension to the input.",vi,be,mt,na,Ro,Tc,xn,Qp="PerceiverAudioPreprocessor",_i,Me,Xo,Pc,Cn,Kp="Audio preprocessing for Perceiver Encoder.",yi,we,ht,sa,So,xc,kn,em="PerceiverMultimodalPreprocessor",bi,Y,Oo,Cc,$n,tm="Multimodal preprocessing for Perceiver Encoder.",kc,jn,om=`Inputs for each modality are preprocessed, then padded with trainable position embeddings to have the same number
of channels.`,Mi,Te,ut,aa,Yo,$c,Jn,rm="PerceiverProjectionDecoder",wi,Pe,Qo,jc,Fn,nm="Baseline projection decoder (no cross-attention).",Ti,xe,gt,ia,Ko,Jc,Un,sm="PerceiverBasicDecoder",Pi,Q,er,Fc,In,am=`Cross-attention-based decoder. This class can be used to decode the final hidden states of the latents using a
cross-attention operation, in which the latents produce keys and values.`,Uc,Zn,im="The shape of the output of this class depends on how one defines the output queries (also called decoder queries).",xi,Ce,ft,la,tr,Ic,zn,lm="PerceiverClassificationDecoder",Ci,ke,or,Zc,Wn,cm=`Cross-attention based classification decoder. Light-weight wrapper of <code>PerceiverBasicDecoder</code> for logit output.
Will turn the output of the Perceiver encoder which is of shape (batch_size, num_latents, d_latents) to a tensor of
shape (batch_size, num_labels). The queries are of shape (batch_size, 1, num_labels).`,ki,$e,vt,ca,rr,zc,Nn,dm="PerceiverOpticalFlowDecoder",$i,je,nr,Wc,Bn,pm="Cross-attention based optical flow decoder.",ji,Je,_t,da,sr,Nc,En,mm="PerceiverBasicVideoAutoencodingDecoder",Ji,Fe,ar,Bc,qn,hm=`Cross-attention based video-autoencoding decoder. Light-weight wrapper of [<em>PerceiverBasicDecoder</em>] with video
reshaping logic.`,Fi,Ue,yt,pa,ir,Ec,Gn,um="PerceiverMultimodalDecoder",Ui,K,lr,qc,Hn,gm=`Multimodal decoding by composing uni-modal decoders. The <em>modalities</em> argument of the constructor is a dictionary
mapping modality name to the decoder of that modality. That decoder will be used to construct queries for that
modality. Modality-specific queries are padded with trainable modality-specific parameters, after which they are
concatenated along the time dimension.`,Gc,An,fm="Next, there is a shared cross attention operation across all modalities.",Ii,Ie,bt,ma,cr,Hc,Vn,vm="PerceiverProjectionPostprocessor",Zi,Ze,dr,Ac,Ln,_m=`Projection postprocessing for Perceiver. Can be used to project the channels of the decoder output to a lower
dimension.`,zi,ze,Mt,ha,pr,Vc,Dn,ym="PerceiverAudioPostprocessor",Wi,We,mr,Lc,Rn,bm="Audio postprocessing for Perceiver. Can be used to convert the decoder output to audio features.",Ni,Ne,wt,ua,hr,Dc,Xn,Mm="PerceiverClassificationPostprocessor",Bi,Be,ur,Rc,Sn,wm="Classification postprocessing for Perceiver. Can be used to convert the decoder output to classification logits.",Ei,Ee,Tt,ga,gr,Xc,On,Tm="PerceiverMultimodalPostprocessor",qi,qe,fr,Sc,Yn,Pm=`Multimodal postprocessing for Perceiver. Can be used to combine modality-specific postprocessors into a single
postprocessor.`,Gi,Ge,Pt,fa,vr,Oc,Qn,xm="PerceiverModel",Hi,ee,_r,Yc,Kn,Cm=`The Perceiver: a scalable, fully attentional architecture.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Qc,N,yr,Kc,es,km='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a> forward method, overrides the <code>__call__</code> special method.',ed,xt,td,Ct,Ai,He,kt,va,br,od,ts,$m="PerceiverForMaskedLM",Vi,te,Mr,rd,os,jm=`Example use of Perceiver for masked language modeling.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,nd,B,wr,sd,rs,Jm='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForMaskedLM">PerceiverForMaskedLM</a> forward method, overrides the <code>__call__</code> special method.',ad,$t,id,jt,Li,Ae,Jt,_a,Tr,ld,ns,Fm="PerceiverForSequenceClassification",Di,oe,Pr,cd,ss,Um=`Example use of Perceiver for text classification.
This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,dd,E,xr,pd,as,Im='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForSequenceClassification">PerceiverForSequenceClassification</a> forward method, overrides the <code>__call__</code> special method.',md,Ft,hd,Ut,Ri,Ve,It,ya,Cr,ud,is,Zm="PerceiverForImageClassificationLearned",Xi,J,kr,gd,ls,zm="Example use of Perceiver for image classification, for tasks such as ImageNet.",fd,cs,Wm=`This model uses learned position embeddings. In other words, this model is not given any privileged information about
the structure of images. As shown in the paper, this model can achieve a top-1 accuracy of 72.7 on ImageNet.`,vd,ds,Nm=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned">PerceiverForImageClassificationLearned</a> uses <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor">PerceiverImagePreprocessor</a>
(with <code>prep_type=&quot;conv1x1&quot;</code>) to preprocess the input images, and
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder">PerceiverClassificationDecoder</a> to decode the latent representation of
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a> into classification logits.`,_d,ps,Bm=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,yd,q,$r,bd,ms,Em='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned">PerceiverForImageClassificationLearned</a> forward method, overrides the <code>__call__</code> special method.',Md,Zt,wd,zt,Si,Le,Wt,ba,jr,Td,hs,qm="PerceiverForImageClassificationFourier",Oi,F,Jr,Pd,us,Gm="Example use of Perceiver for image classification, for tasks such as ImageNet.",xd,gs,Hm=`This model uses fixed 2D Fourier position embeddings. As shown in the paper, this model can achieve a top-1 accuracy of
79.0 on ImageNet, and 84.5 when pre-trained on a large-scale dataset (i.e. JFT).`,Cd,fs,Am=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned">PerceiverForImageClassificationLearned</a> uses <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor">PerceiverImagePreprocessor</a>
(with <code>prep_type=&quot;pixels&quot;</code>) to preprocess the input images, and
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder">PerceiverClassificationDecoder</a> to decode the latent representation of
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a> into classification logits.`,kd,vs,Vm=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,$d,G,Fr,jd,_s,Lm='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationFourier">PerceiverForImageClassificationFourier</a> forward method, overrides the <code>__call__</code> special method.',Jd,Nt,Fd,Bt,Yi,De,Et,Ma,Ur,Ud,ys,Dm="PerceiverForImageClassificationConvProcessing",Qi,U,Ir,Id,bs,Rm="Example use of Perceiver for image classification, for tasks such as ImageNet.",Zd,Ms,Xm=`This model uses a 2D conv+maxpool preprocessing network. As shown in the paper, this model can achieve a top-1 accuracy
of 82.1 on ImageNet.`,zd,ws,Sm=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned">PerceiverForImageClassificationLearned</a> uses <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor">PerceiverImagePreprocessor</a>
(with <code>prep_type=&quot;conv&quot;</code>) to preprocess the input images, and
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder">PerceiverClassificationDecoder</a> to decode the latent representation of
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a> into classification logits.`,Wd,Ts,Om=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Nd,H,Zr,Bd,Ps,Ym='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationConvProcessing">PerceiverForImageClassificationConvProcessing</a> forward method, overrides the <code>__call__</code> special method.',Ed,qt,qd,Gt,Ki,Re,Ht,wa,zr,Gd,xs,Qm="PerceiverForOpticalFlow",el,Z,Wr,Hd,Cs,Km=`Example use of Perceiver for optical flow, for tasks such as Sintel and KITTI. <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForOpticalFlow">PerceiverForOpticalFlow</a> uses
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor">PerceiverImagePreprocessor</a> (with <em>prep_type=“patches”</em>) to preprocess the
input images, and <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder">PerceiverOpticalFlowDecoder</a> to decode the latent
representation of <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a>.`,Ad,ks,eh=`As input, one concatenates 2 subsequent frames along the channel dimension and extract a 3 x 3 patch around each pixel
(leading to 3 x 3 x 3 x 2 = 54 values for each pixel). Fixed Fourier position encodings are used to encode the position
of each pixel in the patch. Next, one applies the Perceiver encoder. To decode, one queries the latent representation
using the same encoding used for the input.`,Vd,$s,th=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,Ld,A,Nr,Dd,js,oh='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForOpticalFlow">PerceiverForOpticalFlow</a> forward method, overrides the <code>__call__</code> special method.',Rd,At,Xd,Vt,tl,Xe,Lt,Ta,Br,Sd,Js,rh="PerceiverForMultimodalAutoencoding",ol,$,Er,Od,Fs,nh="Example use of Perceiver for multimodal (video) autoencoding, for tasks such as Kinetics-700.",Yd,Us,sh=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForMultimodalAutoencoding">PerceiverForMultimodalAutoencoding</a> uses <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor">PerceiverMultimodalPreprocessor</a> to
preprocess the 3 modalities: images, audio and class labels. This preprocessor uses modality-specific preprocessors to
preprocess every modality separately, after which they are concatenated. Trainable position embeddings are used to pad
each modality to the same number of channels to make concatenation along the time dimension possible. Next, one applies
the Perceiver encoder.`,Qd,Is,ah=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder">PerceiverMultimodalDecoder</a> is used to decode the latent representation of
<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a>. This decoder uses each modality-specific decoder to construct queries. The decoder queries are
created based on the inputs after preprocessing. However, autoencoding an entire video in a single forward pass is
computationally infeasible, hence one only uses parts of the decoder queries to do cross-attention with the latent
representation. This is determined by the subsampled indices for each modality, which can be provided as additional
input to the forward pass of <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForMultimodalAutoencoding">PerceiverForMultimodalAutoencoding</a>.`,Kd,Zs,ih=`<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder">PerceiverMultimodalDecoder</a> also pads the decoder queries of the different
modalities to the same number of channels, in order to concatenate them along the time dimension. Next, cross-attention
is performed with the latent representation of <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverModel">PerceiverModel</a>.`,ep,zs,lh=`Finally, <code>~models.perceiver.modeling_perceiver.PerceiverMultiModalPostprocessor</code> is used to turn this tensor into an
actual video. It first splits up the output into the different modalities, and then applies the respective
postprocessor for each modality.`,tp,Ws,ch=`Note that, by masking the classification label during evaluation (i.e. simply providing a tensor of zeros for the
“label” modality), this auto-encoding model becomes a Kinetics 700 video classifier.`,op,Ns,dh=`This model is a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> sub-class. Use
it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage and
behavior.`,rp,V,qr,np,Bs,ph='The <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForMultimodalAutoencoding">PerceiverForMultimodalAutoencoding</a> forward method, overrides the <code>__call__</code> special method.',sp,Dt,ap,Rt,rl,Pa,nl;return so=new k({}),ao=new k({}),To=new k({}),xo=new k({}),Co=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput",parameters:[{name:"logits",val:": FloatTensor = None"},{name:"last_hidden_state",val:": FloatTensor = None"},{name:"hidden_states",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"cross_attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput.logits",description:`<strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_labels)</code>) &#x2014;
Classification (or regression if config.num_labels==1) scores (before SoftMax).`,name:"logits"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput.last_hidden_state",description:`<strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) &#x2014;
Sequence of hidden-states at the output of the last layer of the model.`,name:"last_hidden_state"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput.hidden_states",description:`<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>) &#x2014;
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.`,name:"hidden_states"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput.attentions",description:`<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>) &#x2014;
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.`,name:"attentions"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput.cross_attentions",description:`<strong>cross_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>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights of the decoder&#x2019;s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.`,name:"cross_attentions"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L61"}}),ko=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverDecoderOutput",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverDecoderOutput",parameters:[{name:"logits",val:": FloatTensor = None"},{name:"cross_attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverDecoderOutput.logits",description:`<strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_labels)</code>) &#x2014;
Output of the basic decoder.`,name:"logits"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverDecoderOutput.cross_attentions",description:`<strong>cross_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>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights of the decoder&#x2019;s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.`,name:"cross_attentions"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L92"}}),$o=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput",parameters:[{name:"loss",val:": typing.Optional[torch.FloatTensor] = None"},{name:"logits",val:": FloatTensor = None"},{name:"hidden_states",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"cross_attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput.loss",description:`<strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) &#x2014;
Masked language modeling (MLM) loss.`,name:"loss"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput.logits",description:`<strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) &#x2014;
Prediction scores of the language modeling head (scores for each vocabulary token before SoftMax).`,name:"logits"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput.hidden_states",description:`<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>) &#x2014;
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.`,name:"hidden_states"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput.attentions",description:`<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>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, num_latents, num_latents)</code>. Attentions weights after the attention softmax, used to compute the weighted average in the
self-attention heads.`,name:"attentions"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput.cross_attentions",description:`<strong>cross_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>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights of the decoder&#x2019;s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.`,name:"cross_attentions"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L110"}}),jo=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput",parameters:[{name:"loss",val:": typing.Optional[torch.FloatTensor] = None"},{name:"logits",val:": FloatTensor = None"},{name:"hidden_states",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"},{name:"cross_attentions",val:": typing.Optional[typing.Tuple[torch.FloatTensor]] = None"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput.loss",description:`<strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>labels</code> is provided) &#x2014;
Classification (or regression if config.num_labels==1) loss.`,name:"loss"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput.logits",description:`<strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, config.num_labels)</code>) &#x2014;
Classification (or regression if config.num_labels==1) scores (before SoftMax).`,name:"logits"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput.hidden_states",description:`<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>) &#x2014;
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.`,name:"hidden_states"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput.attentions",description:`<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>) &#x2014;
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.`,name:"attentions"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput.cross_attentions",description:`<strong>cross_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>) &#x2014;
Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>. Attentions weights of the decoder&#x2019;s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.`,name:"cross_attentions"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L141"}}),Jo=new k({}),Fo=new P({props:{name:"class transformers.PerceiverConfig",anchor:"transformers.PerceiverConfig",parameters:[{name:"num_latents",val:" = 256"},{name:"d_latents",val:" = 1280"},{name:"d_model",val:" = 768"},{name:"num_blocks",val:" = 1"},{name:"num_self_attends_per_block",val:" = 26"},{name:"num_self_attention_heads",val:" = 8"},{name:"num_cross_attention_heads",val:" = 8"},{name:"qk_channels",val:" = None"},{name:"v_channels",val:" = None"},{name:"cross_attention_shape_for_attention",val:" = 'kv'"},{name:"self_attention_widening_factor",val:" = 1"},{name:"cross_attention_widening_factor",val:" = 1"},{name:"hidden_act",val:" = 'gelu'"},{name:"attention_probs_dropout_prob",val:" = 0.1"},{name:"initializer_range",val:" = 0.02"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"use_query_residual",val:" = True"},{name:"vocab_size",val:" = 262"},{name:"max_position_embeddings",val:" = 2048"},{name:"image_size",val:" = 56"},{name:"train_size",val:" = [368, 496]"},{name:"num_frames",val:" = 16"},{name:"audio_samples_per_frame",val:" = 1920"},{name:"samples_per_patch",val:" = 16"},{name:"output_shape",val:" = [1, 16, 224, 224]"},{name:"output_num_channels",val:" = 512"},{name:"_label_trainable_num_channels",val:" = 1024"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PerceiverConfig.num_latents",description:`<strong>num_latents</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
The number of latents.`,name:"num_latents"},{anchor:"transformers.PerceiverConfig.d_latents",description:`<strong>d_latents</strong> (<code>int</code>, <em>optional</em>, defaults to 1280) &#x2014;
Dimension of the latent embeddings.`,name:"d_latents"},{anchor:"transformers.PerceiverConfig.d_model",description:`<strong>d_model</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimension of the inputs. Should only be provided in case [<em>PerceiverTextPreprocessor</em>] is used or no
preprocessor is provided.`,name:"d_model"},{anchor:"transformers.PerceiverConfig.num_blocks",description:`<strong>num_blocks</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of blocks in the Transformer encoder.`,name:"num_blocks"},{anchor:"transformers.PerceiverConfig.num_self_attends_per_block",description:`<strong>num_self_attends_per_block</strong> (<code>int</code>, <em>optional</em>, defaults to 26) &#x2014;
The number of self-attention layers per block.`,name:"num_self_attends_per_block"},{anchor:"transformers.PerceiverConfig.num_self_attention_heads",description:`<strong>num_self_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each self-attention layer in the Transformer encoder.`,name:"num_self_attention_heads"},{anchor:"transformers.PerceiverConfig.num_cross_attention_heads",description:`<strong>num_cross_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Number of attention heads for each cross-attention layer in the Transformer encoder.`,name:"num_cross_attention_heads"},{anchor:"transformers.PerceiverConfig.qk_channels",description:`<strong>qk_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Dimension to project the queries + keys before applying attention in the cross-attention and self-attention
layers of the encoder. Will default to preserving the dimension of the queries if not specified.`,name:"qk_channels"},{anchor:"transformers.PerceiverConfig.v_channels",description:`<strong>v_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Dimension to project the values before applying attention in the cross-attention and self-attention layers
of the encoder. Will default to preserving the dimension of the queries if not specified.`,name:"v_channels"},{anchor:"transformers.PerceiverConfig.cross_attention_shape_for_attention",description:`<strong>cross_attention_shape_for_attention</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&apos;kv&apos;</code>) &#x2014;
Dimension to use when downsampling the queries and keys in the cross-attention layer of the encoder.`,name:"cross_attention_shape_for_attention"},{anchor:"transformers.PerceiverConfig.self_attention_widening_factor",description:`<strong>self_attention_widening_factor</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Dimension of the feed-forward layer in the cross-attention layer of the Transformer encoder.`,name:"self_attention_widening_factor"},{anchor:"transformers.PerceiverConfig.cross_attention_widening_factor",description:`<strong>cross_attention_widening_factor</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Dimension of the feed-forward layer in the self-attention layers of the Transformer encoder.`,name:"cross_attention_widening_factor"},{anchor:"transformers.PerceiverConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. 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.PerceiverConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.PerceiverConfig.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.`,name:"initializer_range"},{anchor:"transformers.PerceiverConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-12) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.PerceiverConfig.use_query_residual",description:`<strong>use_query_residual</strong> (<code>float</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to add a query residual in the cross-attention layer of the encoder.`,name:"use_query_residual"},{anchor:"transformers.PerceiverConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 262) &#x2014;
Vocabulary size for the masked language modeling model.`,name:"vocab_size"},{anchor:"transformers.PerceiverConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 2048) &#x2014;
The maximum sequence length that the masked language modeling model might ever be used with. Typically set
this to something large just in case (e.g., 512 or 1024 or 2048).`,name:"max_position_embeddings"},{anchor:"transformers.PerceiverConfig.image_size",description:`<strong>image_size</strong> (<code>int</code>, <em>optional</em>, defaults to 56) &#x2014;
Size of the images after preprocessing, for <a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverForImageClassificationLearned">PerceiverForImageClassificationLearned</a>.`,name:"image_size"},{anchor:"transformers.PerceiverConfig.train_size",description:`<strong>train_size</strong> (<code>List[int]</code>, <em>optional</em>, defaults to [368, 496]) &#x2014;
Training size of the images for the optical flow model.`,name:"train_size"},{anchor:"transformers.PerceiverConfig.num_frames",description:`<strong>num_frames</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of video frames used for the multimodal autoencoding model.`,name:"num_frames"},{anchor:"transformers.PerceiverConfig.audio_samples_per_frame",description:`<strong>audio_samples_per_frame</strong> (<code>int</code>, <em>optional</em>, defaults to 1920) &#x2014;
Number of audio samples per frame for the multimodal autoencoding model.`,name:"audio_samples_per_frame"},{anchor:"transformers.PerceiverConfig.samples_per_patch",description:`<strong>samples_per_patch</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of audio samples per patch when preprocessing the audio for the multimodal autoencoding model.`,name:"samples_per_patch"},{anchor:"transformers.PerceiverConfig.output_num_channels",description:`<strong>output_num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Number of output channels for each modalitiy decoder.`,name:"output_num_channels"},{anchor:"transformers.PerceiverConfig.output_shape",description:`<strong>output_shape</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[1, 16, 224, 224]</code>) &#x2014;
Shape of the output (batch_size, num_frames, height, width) for the video decoder queries of the multimodal
autoencoding model. This excludes the channel dimension.`,name:"output_shape"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/configuration_perceiver.py#L36"}}),ot=new Se({props:{anchor:"transformers.PerceiverConfig.example",$$slots:{default:[_u]},$$scope:{ctx:C}}}),Uo=new k({}),Io=new P({props:{name:"class transformers.PerceiverTokenizer",anchor:"transformers.PerceiverTokenizer",parameters:[{name:"pad_token",val:" = '[PAD]'"},{name:"bos_token",val:" = '[BOS]'"},{name:"eos_token",val:" = '[EOS]'"},{name:"mask_token",val:" = '[MASK]'"},{name:"cls_token",val:" = '[CLS]'"},{name:"sep_token",val:" = '[SEP]'"},{name:"model_max_length",val:" = 2048"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PerceiverTokenizer.pad_token",description:`<strong>pad_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[PAD]&quot;</code>) &#x2014;
The token used for padding, for example when batching sequences of different lengths.`,name:"pad_token"},{anchor:"transformers.PerceiverTokenizer.bos_token",description:`<strong>bos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[BOS]&quot;</code>) &#x2014;
The BOS token (reserved in the vocab, but not actually used).`,name:"bos_token"},{anchor:"transformers.PerceiverTokenizer.eos_token",description:`<strong>eos_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[EOS]&quot;</code>) &#x2014;
The end of sequence token (reserved in the vocab, but not actually used).</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>When building a sequence using special tokens, this is not the token that is used for the end of sequence.
The token used is the <code>sep_token</code>.</p>

					</div>`,name:"eos_token"},{anchor:"transformers.PerceiverTokenizer.mask_token",description:`<strong>mask_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[MASK]&quot;</code>) &#x2014;
The MASK token, useful for masked language modeling.`,name:"mask_token"},{anchor:"transformers.PerceiverTokenizer.cls_token",description:`<strong>cls_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[CLS]&quot;</code>) &#x2014;
The CLS token (reserved in the vocab, but not actually used).`,name:"cls_token"},{anchor:"transformers.PerceiverTokenizer.sep_token",description:`<strong>sep_token</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;[SEP]&quot;</code>) &#x2014;
The separator token, which is used when building a sequence from two sequences.`,name:"sep_token"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/tokenization_perceiver.py#L27"}}),Zo=new P({props:{name:"__call__",anchor:"transformers.PerceiverTokenizer.__call__",parameters:[{name:"text",val:": typing.Union[str, typing.List[str], typing.List[typing.List[str]]] = None"},{name:"text_pair",val:": typing.Union[str, typing.List[str], typing.List[typing.List[str]], NoneType] = None"},{name:"text_target",val:": typing.Union[str, typing.List[str], typing.List[typing.List[str]]] = None"},{name:"text_pair_target",val:": typing.Union[str, typing.List[str], typing.List[typing.List[str]], NoneType] = None"},{name:"add_special_tokens",val:": bool = True"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = False"},{name:"truncation",val:": typing.Union[bool, str, transformers.tokenization_utils_base.TruncationStrategy] = None"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"stride",val:": int = 0"},{name:"is_split_into_words",val:": bool = False"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"return_token_type_ids",val:": typing.Optional[bool] = None"},{name:"return_attention_mask",val:": typing.Optional[bool] = None"},{name:"return_overflowing_tokens",val:": bool = False"},{name:"return_special_tokens_mask",val:": bool = False"},{name:"return_offsets_mapping",val:": bool = False"},{name:"return_length",val:": bool = False"},{name:"verbose",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PerceiverTokenizer.__call__.text",description:`<strong>text</strong> (<code>str</code>, <code>List[str]</code>, <code>List[List[str]]</code>, <em>optional</em>) &#x2014;
The sequence or batch of sequences to be encoded. Each sequence can be a string or a list of strings
(pretokenized string). If the sequences are provided as list of strings (pretokenized), you must set
<code>is_split_into_words=True</code> (to lift the ambiguity with a batch of sequences).`,name:"text"},{anchor:"transformers.PerceiverTokenizer.__call__.text_pair",description:`<strong>text_pair</strong> (<code>str</code>, <code>List[str]</code>, <code>List[List[str]]</code>, <em>optional</em>) &#x2014;
The sequence or batch of sequences to be encoded. Each sequence can be a string or a list of strings
(pretokenized string). If the sequences are provided as list of strings (pretokenized), you must set
<code>is_split_into_words=True</code> (to lift the ambiguity with a batch of sequences).`,name:"text_pair"},{anchor:"transformers.PerceiverTokenizer.__call__.text_target",description:`<strong>text_target</strong> (<code>str</code>, <code>List[str]</code>, <code>List[List[str]]</code>, <em>optional</em>) &#x2014;
The sequence or batch of sequences to be encoded as target texts. Each sequence can be a string or a
list of strings (pretokenized string). If the sequences are provided as list of strings (pretokenized),
you must set <code>is_split_into_words=True</code> (to lift the ambiguity with a batch of sequences).`,name:"text_target"},{anchor:"transformers.PerceiverTokenizer.__call__.text_pair_target",description:`<strong>text_pair_target</strong> (<code>str</code>, <code>List[str]</code>, <code>List[List[str]]</code>, <em>optional</em>) &#x2014;
The sequence or batch of sequences to be encoded as target texts. Each sequence can be a string or a
list of strings (pretokenized string). If the sequences are provided as list of strings (pretokenized),
you must set <code>is_split_into_words=True</code> (to lift the ambiguity with a batch of sequences).`,name:"text_pair_target"},{anchor:"transformers.PerceiverTokenizer.__call__.add_special_tokens",description:`<strong>add_special_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to encode the sequences with the special tokens relative to their model.`,name:"add_special_tokens"},{anchor:"transformers.PerceiverTokenizer.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls padding. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.PerceiverTokenizer.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/tokenization_utils#transformers.tokenization_utils_base.TruncationStrategy">TruncationStrategy</a>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates and controls truncation. Accepts the following values:</p>
<ul>
<li><code>True</code> or <code>&apos;longest_first&apos;</code>: Truncate to a maximum length specified with the argument <code>max_length</code> or
to the maximum acceptable input length for the model if that argument is not provided. This will
truncate token by token, removing a token from the longest sequence in the pair if a pair of
sequences (or a batch of pairs) is provided.</li>
<li><code>&apos;only_first&apos;</code>: Truncate to a maximum length specified with the argument <code>max_length</code> or to the
maximum acceptable input length for the model if that argument is not provided. This will only
truncate the first sequence of a pair if a pair of sequences (or a batch of pairs) is provided.</li>
<li><code>&apos;only_second&apos;</code>: Truncate to a maximum length specified with the argument <code>max_length</code> or to the
maximum acceptable input length for the model if that argument is not provided. This will only
truncate the second sequence of a pair if a pair of sequences (or a batch of pairs) is provided.</li>
<li><code>False</code> or <code>&apos;do_not_truncate&apos;</code> (default): No truncation (i.e., can output batch with sequence lengths
greater than the model maximum admissible input size).</li>
</ul>`,name:"truncation"},{anchor:"transformers.PerceiverTokenizer.__call__.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Controls the maximum length to use by one of the truncation/padding parameters.</p>
<p>If left unset or set to <code>None</code>, this will use the predefined model maximum length if a maximum length
is required by one of the truncation/padding parameters. If the model has no specific maximum input
length (like XLNet) truncation/padding to a maximum length will be deactivated.`,name:"max_length"},{anchor:"transformers.PerceiverTokenizer.__call__.stride",description:`<strong>stride</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
If set to a number along with <code>max_length</code>, the overflowing tokens returned when
<code>return_overflowing_tokens=True</code> will contain some tokens from the end of the truncated sequence
returned to provide some overlap between truncated and overflowing sequences. The value of this
argument defines the number of overlapping tokens.`,name:"stride"},{anchor:"transformers.PerceiverTokenizer.__call__.is_split_into_words",description:`<strong>is_split_into_words</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the input is already pre-tokenized (e.g., split into words). If set to <code>True</code>, the
tokenizer assumes the input is already split into words (for instance, by splitting it on whitespace)
which it will tokenize. This is useful for NER or token classification.`,name:"is_split_into_words"},{anchor:"transformers.PerceiverTokenizer.__call__.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value. Requires <code>padding</code> to be activated.
This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta).`,name:"pad_to_multiple_of"},{anchor:"transformers.PerceiverTokenizer.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) &#x2014;
If set, will return tensors instead of list of python integers. Acceptable values are:</p>
<ul>
<li><code>&apos;tf&apos;</code>: Return TensorFlow <code>tf.constant</code> objects.</li>
<li><code>&apos;pt&apos;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
<li><code>&apos;np&apos;</code>: Return Numpy <code>np.ndarray</code> objects.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.PerceiverTokenizer.__call__.return_token_type_ids",description:`<strong>return_token_type_ids</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return token type IDs. If left to the default, will return the token type IDs according to
the specific tokenizer&#x2019;s default, defined by the <code>return_outputs</code> attribute.</p>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a>`,name:"return_token_type_ids"},{anchor:"transformers.PerceiverTokenizer.__call__.return_attention_mask",description:`<strong>return_attention_mask</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return the attention mask. If left to the default, will return the attention mask according
to the specific tokenizer&#x2019;s default, defined by the <code>return_outputs</code> attribute.</p>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"return_attention_mask"},{anchor:"transformers.PerceiverTokenizer.__call__.return_overflowing_tokens",description:`<strong>return_overflowing_tokens</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return overflowing token sequences. If a pair of sequences of input ids (or a batch
of pairs) is provided with <code>truncation_strategy = longest_first</code> or <code>True</code>, an error is raised instead
of returning overflowing tokens.`,name:"return_overflowing_tokens"},{anchor:"transformers.PerceiverTokenizer.__call__.return_special_tokens_mask",description:`<strong>return_special_tokens_mask</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return special tokens mask information.`,name:"return_special_tokens_mask"},{anchor:"transformers.PerceiverTokenizer.__call__.return_offsets_mapping",description:`<strong>return_offsets_mapping</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return <code>(char_start, char_end)</code> for each token.</p>
<p>This is only available on fast tokenizers inheriting from <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast">PreTrainedTokenizerFast</a>, if using
Python&#x2019;s tokenizer, this method will raise <code>NotImplementedError</code>.`,name:"return_offsets_mapping"},{anchor:"transformers.PerceiverTokenizer.__call__.return_length",description:`<strong>return_length</strong>  (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return the lengths of the encoded inputs.`,name:"return_length"},{anchor:"transformers.PerceiverTokenizer.__call__.verbose",description:`<strong>verbose</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to print more information and warnings.
**kwargs &#x2014; passed to the <code>self.tokenize()</code> method`,name:"verbose"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/tokenization_utils_base.py#L2528",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.BatchEncoding"
>BatchEncoding</a> with the following fields:</p>
<ul>
<li>
<p><strong>input_ids</strong> — List of token ids to be fed to a model.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a></p>
</li>
<li>
<p><strong>token_type_ids</strong> — List of token type ids to be fed to a model (when <code>return_token_type_ids=True</code> or
if <em>“token_type_ids”</em> is in <code>self.model_input_names</code>).</p>
<p><a href="../glossary#token-type-ids">What are token type IDs?</a></p>
</li>
<li>
<p><strong>attention_mask</strong> — List of indices specifying which tokens should be attended to by the model (when
<code>return_attention_mask=True</code> or if <em>“attention_mask”</em> is in <code>self.model_input_names</code>).</p>
<p><a href="../glossary#attention-mask">What are attention masks?</a></p>
</li>
<li>
<p><strong>overflowing_tokens</strong> — List of overflowing tokens sequences (when a <code>max_length</code> is specified and
<code>return_overflowing_tokens=True</code>).</p>
</li>
<li>
<p><strong>num_truncated_tokens</strong> — Number of tokens truncated (when a <code>max_length</code> is specified and
<code>return_overflowing_tokens=True</code>).</p>
</li>
<li>
<p><strong>special_tokens_mask</strong> — List of 0s and 1s, with 1 specifying added special tokens and 0 specifying
regular sequence tokens (when <code>add_special_tokens=True</code> and <code>return_special_tokens_mask=True</code>).</p>
</li>
<li>
<p><strong>length</strong> — The length of the inputs (when <code>return_length=True</code>)</p>
</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.BatchEncoding"
>BatchEncoding</a></p>
`}}),zo=new k({}),Wo=new P({props:{name:"class transformers.PerceiverFeatureExtractor",anchor:"transformers.PerceiverFeatureExtractor",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/feature_extraction_perceiver.py#L26"}}),No=new P({props:{name:"__call__",anchor:"transformers.PerceiverFeatureExtractor.__call__",parameters:[{name:"images",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_processing_utils.py#L544"}}),Bo=new k({}),Eo=new P({props:{name:"class transformers.PerceiverImageProcessor",anchor:"transformers.PerceiverImageProcessor",parameters:[{name:"do_center_crop",val:": bool = True"},{name:"crop_size",val:": typing.Dict[str, int] = None"},{name:"do_resize",val:": bool = True"},{name:"size",val:": typing.Dict[str, int] = None"},{name:"resample",val:": Resampling = <Resampling.BICUBIC: 3>"},{name:"do_rescale",val:": bool = True"},{name:"rescale_factor",val:": typing.Union[int, float] = 0.00392156862745098"},{name:"do_normalize",val:": bool = True"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PerceiverImageProcessor.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <code>optional</code>, defaults to <code>True</code>) &#x2014;
Whether or not to center crop the image. If the input size if smaller than <code>crop_size</code> along any edge, the
image will be padded with zeros and then center cropped. Can be overridden by the <code>do_center_crop</code>
parameter in the <code>preprocess</code> method.`,name:"do_center_crop"},{anchor:"transformers.PerceiverImageProcessor.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>{&quot;height&quot; -- 256, &quot;width&quot;: 256}</code>):
Desired output size when applying center-cropping. Can be overridden by the <code>crop_size</code> parameter in the
<code>preprocess</code> method.`,name:"crop_size"},{anchor:"transformers.PerceiverImageProcessor.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to resize the image to <code>(size[&quot;height&quot;], size[&quot;width&quot;])</code>. Can be overridden by the <code>do_resize</code>
parameter in the <code>preprocess</code> method.`,name:"do_resize"},{anchor:"transformers.PerceiverImageProcessor.size",description:`<strong>size</strong> (<code>Dict[str, int]</code> <em>optional</em>, defaults to <code>{&quot;height&quot; -- 224, &quot;width&quot;: 224}</code>):
Size of the image after resizing. Can be overridden by the <code>size</code> parameter in the <code>preprocess</code> method.`,name:"size"},{anchor:"transformers.PerceiverImageProcessor.resample",description:`<strong>resample</strong> (<code>PILImageResampling</code>, <em>optional</em>, defaults to <code>PILImageResampling.BICUBIC</code>) &#x2014;
Defines the resampling filter to use if resizing the image. Can be overridden by the <code>resample</code> parameter
in the <code>preprocess</code> method.`,name:"resample"},{anchor:"transformers.PerceiverImageProcessor.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to rescale the image by the specified scale <code>rescale_factor</code>. Can be overridden by the <code>do_rescale</code>
parameter in the <code>preprocess</code> method.`,name:"do_rescale"},{anchor:"transformers.PerceiverImageProcessor.rescale_factor",description:`<strong>rescale_factor</strong> (<code>int</code> or <code>float</code>, <em>optional</em>, defaults to <code>1/255</code>) &#x2014;
Defines the scale factor to use if rescaling the image. Can be overridden by the <code>rescale_factor</code> parameter
in the <code>preprocess</code> method.
do_normalize &#x2014;
Whether to normalize the image. Can be overridden by the <code>do_normalize</code> parameter in the <code>preprocess</code>
method.`,name:"rescale_factor"},{anchor:"transformers.PerceiverImageProcessor.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_MEAN</code>) &#x2014;
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
channels in the image. Can be overridden by the <code>image_mean</code> parameter in the <code>preprocess</code> method.`,name:"image_mean"},{anchor:"transformers.PerceiverImageProcessor.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>IMAGENET_STANDARD_STD</code>) &#x2014;
Standard deviation to use if normalizing the image. This is a float or list of floats the length of the
number of channels in the image. Can be overridden by the <code>image_std</code> parameter in the <code>preprocess</code> method.`,name:"image_std"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/image_processing_perceiver.py#L46"}}),qo=new P({props:{name:"preprocess",anchor:"transformers.PerceiverImageProcessor.preprocess",parameters:[{name:"images",val:": typing.Union[ForwardRef('PIL.Image.Image'), numpy.ndarray, ForwardRef('torch.Tensor'), typing.List[ForwardRef('PIL.Image.Image')], typing.List[numpy.ndarray], typing.List[ForwardRef('torch.Tensor')]]"},{name:"do_center_crop",val:": typing.Optional[bool] = None"},{name:"crop_size",val:": typing.Union[typing.Dict[str, int], NoneType] = None"},{name:"do_resize",val:": typing.Optional[bool] = None"},{name:"size",val:": typing.Union[typing.Dict[str, int], NoneType] = None"},{name:"resample",val:": Resampling = None"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"rescale_factor",val:": typing.Optional[float] = None"},{name:"do_normalize",val:": typing.Optional[bool] = None"},{name:"image_mean",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"image_std",val:": typing.Union[float, typing.List[float], NoneType] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"data_format",val:": ChannelDimension = <ChannelDimension.FIRST: 'channels_first'>"},{name:"input_data_format",val:": typing.Union[str, transformers.image_utils.ChannelDimension, NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PerceiverImageProcessor.preprocess.images",description:`<strong>images</strong> (<code>ImageInput</code>) &#x2014;
Image to preprocess. Expects a single or batch of images with pixel values ranging from 0 to 255. If
passing in images with pixel values between 0 and 1, set <code>do_rescale=False</code>.`,name:"images"},{anchor:"transformers.PerceiverImageProcessor.preprocess.do_center_crop",description:`<strong>do_center_crop</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_center_crop</code>) &#x2014;
Whether to center crop the image to <code>crop_size</code>.`,name:"do_center_crop"},{anchor:"transformers.PerceiverImageProcessor.preprocess.crop_size",description:`<strong>crop_size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.crop_size</code>) &#x2014;
Desired output size after applying the center crop.`,name:"crop_size"},{anchor:"transformers.PerceiverImageProcessor.preprocess.do_resize",description:`<strong>do_resize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_resize</code>) &#x2014;
Whether to resize the image.`,name:"do_resize"},{anchor:"transformers.PerceiverImageProcessor.preprocess.size",description:`<strong>size</strong> (<code>Dict[str, int]</code>, <em>optional</em>, defaults to <code>self.size</code>) &#x2014;
Size of the image after resizing.`,name:"size"},{anchor:"transformers.PerceiverImageProcessor.preprocess.resample",description:`<strong>resample</strong> (<code>int</code>, <em>optional</em>, defaults to <code>self.resample</code>) &#x2014;
Resampling filter to use if resizing the image. This can be one of the enum <code>PILImageResampling</code>, Only
has an effect if <code>do_resize</code> is set to <code>True</code>.`,name:"resample"},{anchor:"transformers.PerceiverImageProcessor.preprocess.do_rescale",description:`<strong>do_rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_rescale</code>) &#x2014;
Whether to rescale the image.`,name:"do_rescale"},{anchor:"transformers.PerceiverImageProcessor.preprocess.rescale_factor",description:`<strong>rescale_factor</strong> (<code>float</code>, <em>optional</em>, defaults to <code>self.rescale_factor</code>) &#x2014;
Rescale factor to rescale the image by if <code>do_rescale</code> is set to <code>True</code>.`,name:"rescale_factor"},{anchor:"transformers.PerceiverImageProcessor.preprocess.do_normalize",description:`<strong>do_normalize</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>self.do_normalize</code>) &#x2014;
Whether to normalize the image.`,name:"do_normalize"},{anchor:"transformers.PerceiverImageProcessor.preprocess.image_mean",description:`<strong>image_mean</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_mean</code>) &#x2014;
Image mean.`,name:"image_mean"},{anchor:"transformers.PerceiverImageProcessor.preprocess.image_std",description:`<strong>image_std</strong> (<code>float</code> or <code>List[float]</code>, <em>optional</em>, defaults to <code>self.image_std</code>) &#x2014;
Image standard deviation.`,name:"image_std"},{anchor:"transformers.PerceiverImageProcessor.preprocess.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <code>TensorType</code>, <em>optional</em>) &#x2014;
The type of tensors to return. Can be one of:<ul>
<li>Unset: Return a list of <code>np.ndarray</code>.</li>
<li><code>TensorType.TENSORFLOW</code> or <code>&apos;tf&apos;</code>: Return a batch of type <code>tf.Tensor</code>.</li>
<li><code>TensorType.PYTORCH</code> or <code>&apos;pt&apos;</code>: Return a batch of type <code>torch.Tensor</code>.</li>
<li><code>TensorType.NUMPY</code> or <code>&apos;np&apos;</code>: Return a batch of type <code>np.ndarray</code>.</li>
<li><code>TensorType.JAX</code> or <code>&apos;jax&apos;</code>: Return a batch of type <code>jax.numpy.ndarray</code>.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.PerceiverImageProcessor.preprocess.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>, defaults to <code>ChannelDimension.FIRST</code>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
</ul>`,name:"data_format"},{anchor:"transformers.PerceiverImageProcessor.preprocess.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code> or <code>str</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. If unset, the channel dimension format is inferred
from the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.</li>
<li><code>&quot;none&quot;</code> or <code>ChannelDimension.NONE</code>: image in (height, width) format.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/image_processing_perceiver.py#L209"}}),Go=new k({}),Ho=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor",parameters:[{name:"config",val:": PerceiverConfig"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</a>) &#x2014;
Model configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2846"}}),Ao=new k({}),Vo=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor",parameters:[{name:"config",val:""},{name:"prep_type",val:" = 'conv'"},{name:"spatial_downsample",val:": int = 4"},{name:"temporal_downsample",val:": int = 1"},{name:"position_encoding_type",val:": str = 'fourier'"},{name:"in_channels",val:": int = 3"},{name:"out_channels",val:": int = 64"},{name:"conv_after_patching",val:": bool = False"},{name:"conv_after_patching_in_channels",val:": int = 54"},{name:"conv2d_use_batchnorm",val:": bool = True"},{name:"concat_or_add_pos",val:": str = 'concat'"},{name:"project_pos_dim",val:": int = -1"},{name:"**position_encoding_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.prep_type",description:`<strong>prep_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;conv&quot;</code>) &#x2014;
Preprocessing type. Can be &#x201C;conv1x1&#x201D;, &#x201C;conv&#x201D;, &#x201C;patches&#x201D;, &#x201C;pixels&#x201D;.`,name:"prep_type"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.spatial_downsample",description:`<strong>spatial_downsample</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Spatial downsampling factor.`,name:"spatial_downsample"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.temporal_downsample",description:`<strong>temporal_downsample</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Temporal downsampling factor (only relevant in case a time dimension is present).`,name:"temporal_downsample"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.position_encoding_type",description:`<strong>position_encoding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;fourier&quot;</code>) &#x2014;
Position encoding type. Can be &#x201C;fourier&#x201D; or &#x201C;trainable&#x201D;.`,name:"position_encoding_type"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.in_channels",description:`<strong>in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of channels in the input.`,name:"in_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.out_channels",description:`<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Number of channels in the output.`,name:"out_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.conv_after_patching",description:`<strong>conv_after_patching</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to apply a convolutional layer after patching.`,name:"conv_after_patching"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.conv_after_patching_in_channels",description:`<strong>conv_after_patching_in_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 54) &#x2014;
Number of channels in the input of the convolutional layer after patching.`,name:"conv_after_patching_in_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.conv2d_use_batchnorm",description:`<strong>conv2d_use_batchnorm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to use batch normalization in the convolutional layer.`,name:"conv2d_use_batchnorm"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.concat_or_add_pos",description:`<strong>concat_or_add_pos</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;concat&quot;</code>) &#x2014;
How to concatenate the position encoding to the input. Can be &#x201C;concat&#x201D; or &#x201C;add&#x201D;.`,name:"concat_or_add_pos"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.project_pos_dim",description:`<strong>project_pos_dim</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Dimension of the position encoding to project to. If -1, no projection is applied.`,name:"project_pos_dim"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor.*position_encoding_kwargs",description:`*<strong>*position_encoding_kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Keyword arguments for the position encoding.`,name:"*position_encoding_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L3003"}}),Lo=new k({}),Do=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor",parameters:[{name:"config",val:": PerceiverConfig"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</a>) &#x2014;
Model configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L3232"}}),Ro=new k({}),Xo=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor",parameters:[{name:"config",val:""},{name:"prep_type",val:": str = 'patches'"},{name:"samples_per_patch",val:": int = 96"},{name:"position_encoding_type",val:": str = 'fourier'"},{name:"concat_or_add_pos",val:": str = 'concat'"},{name:"out_channels",val:" = 64"},{name:"project_pos_dim",val:" = -1"},{name:"**position_encoding_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.prep_type",description:`<strong>prep_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;patches&quot;</code>) &#x2014;
Preprocessor type to use. Only &#x201C;patches&#x201D; is supported.`,name:"prep_type"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.samples_per_patch",description:`<strong>samples_per_patch</strong> (<code>int</code>, <em>optional</em>, defaults to 96) &#x2014;
Number of samples per patch.`,name:"samples_per_patch"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.position_encoding_type",description:`<strong>position_encoding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;fourier&quot;</code>) &#x2014;
Type of position encoding to use. Can be &#x201C;trainable&#x201D; or &#x201C;fourier&#x201D;.`,name:"position_encoding_type"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.concat_or_add_pos",description:`<strong>concat_or_add_pos</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;concat&quot;</code>) &#x2014;
How to concatenate the position encoding to the input. Can be &#x201C;concat&#x201D; or &#x201C;add&#x201D;.`,name:"concat_or_add_pos"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.out_channels",description:`<strong>out_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Number of channels in the output.`,name:"out_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.project_pos_dim",description:`<strong>project_pos_dim</strong> (<code>int</code>, <em>optional</em>, defaults to -1) &#x2014;
Dimension of the position encoding to project to. If -1, no projection is applied.`,name:"project_pos_dim"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor.*position_encoding_kwargs",description:`*<strong>*position_encoding_kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Keyword arguments for the position encoding.`,name:"*position_encoding_kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L3258"}}),So=new k({}),Oo=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor",parameters:[{name:"modalities",val:": typing.Mapping[str, typing.Callable[..., typing.Tuple[torch.Tensor, typing.Optional[torch.Tensor], torch.Tensor]]]"},{name:"mask_probs",val:": typing.Union[typing.Mapping[str, float], NoneType] = None"},{name:"min_padding_size",val:": int = 2"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor.modalities",description:`<strong>modalities</strong> (<code>Mapping[str, PreprocessorType]</code>) &#x2014;
Dict mapping modality name to preprocessor.`,name:"modalities"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor.mask_probs",description:`<strong>mask_probs</strong> (<code>Dict[str, float]</code>) &#x2014;
Dict mapping modality name to masking probability of that modality.`,name:"mask_probs"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor.min_padding_size",description:`<strong>min_padding_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The minimum padding size for all modalities. The final output will have num_channels equal to the maximum
channels across all modalities plus min_padding_size.`,name:"min_padding_size"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L3355"}}),Yo=new k({}),Qo=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</a>) &#x2014;
Model configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2051"}}),Ko=new k({}),er=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder",parameters:[{name:"config",val:": PerceiverConfig"},{name:"output_num_channels",val:": int"},{name:"position_encoding_type",val:": typing.Optional[str] = 'trainable'"},{name:"output_index_dims",val:": typing.Optional[int] = None"},{name:"num_channels",val:": typing.Optional[int] = 128"},{name:"subsampled_index_dims",val:": typing.Optional[int] = None"},{name:"qk_channels",val:": typing.Optional[int] = None"},{name:"v_channels",val:": typing.Optional[int] = None"},{name:"num_heads",val:": typing.Optional[int] = 1"},{name:"widening_factor",val:": typing.Optional[int] = 1"},{name:"use_query_residual",val:": typing.Optional[bool] = False"},{name:"concat_preprocessed_input",val:": typing.Optional[bool] = False"},{name:"final_project",val:": typing.Optional[bool] = True"},{name:"position_encoding_only",val:": typing.Optional[bool] = False"},{name:"**position_encoding_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.output_num_channels",description:`<strong>output_num_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of channels in the output. Will only be used in case <em>final_project</em> is set to <code>True</code>.`,name:"output_num_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.position_encoding_type",description:`<strong>position_encoding_type</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;trainable&#x201D;) &#x2014;
The type of position encoding to use. Can be either &#x201C;trainable&#x201D;, &#x201C;fourier&#x201D;, or &#x201C;none&#x201D;.`,name:"position_encoding_type"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.output_index_dims",description:`<strong>output_index_dims</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of dimensions of the output queries. Ignored if &#x2018;position_encoding_type&#x2019; == &#x2018;none&#x2019;.`,name:"output_index_dims"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.num_channels",description:`<strong>num_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
The number of channels of the decoder queries. Ignored if &#x2018;position_encoding_type&#x2019; == &#x2018;none&#x2019;.`,name:"num_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.qk_channels",description:`<strong>qk_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of channels of the queries and keys in the cross-attention layer.`,name:"qk_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.v_channels",description:`<strong>v_channels</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The number of channels of the values in the cross-attention layer.`,name:"v_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.num_heads",description:`<strong>num_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of attention heads in the cross-attention layer.`,name:"num_heads"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.widening_factor",description:`<strong>widening_factor</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The widening factor of the cross-attention layer.`,name:"widening_factor"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.use_query_residual",description:`<strong>use_query_residual</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use a residual connection between the query and the output of the cross-attention layer.`,name:"use_query_residual"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.concat_preprocessed_input",description:`<strong>concat_preprocessed_input</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to concatenate the preprocessed input to the query.`,name:"concat_preprocessed_input"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.final_project",description:`<strong>final_project</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to project the output of the cross-attention layer to a target dimension.`,name:"final_project"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder.position_encoding_only",description:`<strong>position_encoding_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only use this class to define output queries.`,name:"position_encoding_only"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2077"}}),tr=new k({}),or=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder",parameters:[{name:"config",val:""},{name:"**decoder_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</a>) &#x2014;
Model configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2263"}}),rr=new k({}),nr=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder",parameters:[{name:"config",val:""},{name:"output_image_shape",val:""},{name:"output_num_channels",val:" = 2"},{name:"rescale_factor",val:" = 100.0"},{name:"**decoder_kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2309"}}),sr=new k({}),ar=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder",parameters:[{name:"config",val:": PerceiverConfig"},{name:"output_shape",val:": typing.List[int]"},{name:"position_encoding_type",val:": str"},{name:"**decoder_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder.output_shape",description:`<strong>output_shape</strong> (<code>List[int]</code>) &#x2014;
Shape of the output as (batch_size, num_frames, height, width), excluding the channel dimension.`,name:"output_shape"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder.position_encoding_type",description:`<strong>position_encoding_type</strong> (<code>str</code>) &#x2014;
The type of position encoding to use. Can be either &#x201C;trainable&#x201D;, &#x201C;fourier&#x201D;, or &#x201C;none&#x201D;.`,name:"position_encoding_type"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2344"}}),ir=new k({}),lr=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder",parameters:[{name:"config",val:": PerceiverConfig"},{name:"modalities",val:": typing.Dict[str, transformers.models.perceiver.modeling_perceiver.PerceiverAbstractDecoder]"},{name:"num_outputs",val:": int"},{name:"output_num_channels",val:": int"},{name:"min_padding_size",val:": typing.Optional[int] = 2"},{name:"subsampled_index_dims",val:": typing.Union[typing.Dict[str, transformers.models.perceiver.modeling_perceiver.PerceiverAbstractDecoder], NoneType] = None"},{name:"**decoder_kwargs",val:""}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.modalities",description:`<strong>modalities</strong> (<code>Dict[str, PerceiverAbstractDecoder]</code>) &#x2014;
Dictionary mapping modality name to the decoder of that modality.`,name:"modalities"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.num_outputs",description:`<strong>num_outputs</strong> (<code>int</code>) &#x2014;
The number of outputs of the decoder.`,name:"num_outputs"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.output_num_channels",description:`<strong>output_num_channels</strong> (<code>int</code>) &#x2014;
The number of channels in the output.`,name:"output_num_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.min_padding_size",description:`<strong>min_padding_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The minimum padding size for all modalities. The final output will have num_channels equal to the maximum
channels across all modalities plus min_padding_size.`,name:"min_padding_size"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder.subsampled_index_dims",description:`<strong>subsampled_index_dims</strong> (<code>Dict[str, PerceiverAbstractDecoder]</code>, <em>optional</em>) &#x2014;
Dictionary mapping modality name to the subsampled index dimensions to use for the decoder query of that
modality.`,name:"subsampled_index_dims"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2421"}}),cr=new k({}),dr=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor",parameters:[{name:"in_channels",val:": int"},{name:"out_channels",val:": int"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor.in_channels",description:`<strong>in_channels</strong> (<code>int</code>) &#x2014;
Number of channels in the input.`,name:"in_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor.out_channels",description:`<strong>out_channels</strong> (<code>int</code>) &#x2014;
Number of channels in the output.`,name:"out_channels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2982"}}),pr=new k({}),mr=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor",parameters:[{name:"config",val:": PerceiverConfig"},{name:"in_channels",val:": int"},{name:"postproc_type",val:": str = 'patches'"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor.in_channels",description:`<strong>in_channels</strong> (<code>int</code>) &#x2014;
Number of channels in the input.`,name:"in_channels"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor.postproc_type",description:`<strong>postproc_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;patches&quot;</code>) &#x2014;
Postprocessor type to use. Currently, only &#x201C;patches&#x201D; is supported.`,name:"postproc_type"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2955"}}),hr=new k({}),ur=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor",parameters:[{name:"config",val:": PerceiverConfig"},{name:"in_channels",val:": int"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor.config",description:`<strong>config</strong> ([<em>PerceiverConfig</em>]) &#x2014;
Model configuration.`,name:"config"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor.in_channels",description:`<strong>in_channels</strong> (<code>int</code>) &#x2014;
Number of channels in the input.`,name:"in_channels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2935"}}),gr=new k({}),fr=new P({props:{name:"class transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor",anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor",parameters:[{name:"modalities",val:": typing.Mapping[str, typing.Callable[..., typing.Any]]"},{name:"input_is_dict",val:": bool = False"}],parametersDescription:[{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor.modalities",description:`<strong>modalities</strong> (<code>Mapping[str, PostprocessorType]</code>) &#x2014;
Dictionary mapping modality name to postprocessor class for that modality.`,name:"modalities"},{anchor:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor.input_is_dict",description:`<strong>input_is_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, input is assumed to be dictionary structured, and outputs keep the same dictionary shape. If
False, input is a tensor which is sliced up during postprocessing by <em>modality_sizes</em>.`,name:"input_is_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L2901"}}),vr=new k({}),_r=new P({props:{name:"class transformers.PerceiverModel",anchor:"transformers.PerceiverModel",parameters:[{name:"config",val:""},{name:"decoder",val:" = None"},{name:"input_preprocessor",val:": typing.Callable[..., typing.Tuple[torch.Tensor, typing.Optional[torch.Tensor], torch.Tensor]] = None"},{name:"output_postprocessor",val:": typing.Callable[..., typing.Any] = None"}],parametersDescription:[{anchor:"transformers.PerceiverModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.PerceiverModel.decoder",description:`<strong>decoder</strong> (<em>DecoderType</em>, <em>optional</em>) &#x2014;
Optional decoder to use to decode the latent representation of the encoder. Examples include
<em>transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder</em>.`,name:"decoder"},{anchor:"transformers.PerceiverModel.input_preprocessor",description:`<strong>input_preprocessor</strong> (<em>PreprocessorType</em>, <em>optional</em>) &#x2014;
Optional input preprocessor to use. Examples include
<em>transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor</em>.`,name:"input_preprocessor"},{anchor:"transformers.PerceiverModel.output_postprocessor",description:`<strong>output_postprocessor</strong> (<em>PostprocessorType</em>, <em>optional</em>) &#x2014;
Optional output postprocessor to use. Examples include
<em>transformers.models.perceiver.modeling_perceiver.PerceiverImagePostprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor</em>,
<em>transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor</em>.`,name:"output_postprocessor"},{anchor:"transformers.PerceiverModel.Note",description:"<strong>Note</strong> that you can define your own decoders, preprocessors and/or postprocessors to fit your use-case. &#x2014;",name:"Note"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L716"}}),yr=new P({props:{name:"forward",anchor:"transformers.PerceiverModel.forward",parameters:[{name:"inputs",val:": FloatTensor"},{name:"attention_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"subsampled_output_points",val:": typing.Union[typing.Dict[str, torch.Tensor], NoneType] = None"},{name:"head_mask",val:": typing.Optional[torch.FloatTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PerceiverModel.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverModel.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.PerceiverModel.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.PerceiverModel.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.PerceiverModel.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L752",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</a>) and inputs.</p>
<ul>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_labels)</code>) — Classification (or regression if config.num_labels==1) scores (before SoftMax).</li>
<li><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.</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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),xt=new no({props:{$$slots:{default:[yu]},$$scope:{ctx:C}}}),Ct=new Se({props:{anchor:"transformers.PerceiverModel.forward.example",$$slots:{default:[bu]},$$scope:{ctx:C}}}),br=new k({}),Mr=new P({props:{name:"class transformers.PerceiverForMaskedLM",anchor:"transformers.PerceiverForMaskedLM",parameters:[{name:"config",val:": PerceiverConfig"}],parametersDescription:[{anchor:"transformers.PerceiverForMaskedLM.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L954"}}),wr=new P({props:{name:"forward",anchor:"transformers.PerceiverForMaskedLM.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForMaskedLM.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForMaskedLM.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForMaskedLM.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.PerceiverForMaskedLM.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.PerceiverForMaskedLM.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.PerceiverForMaskedLM.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForMaskedLM.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Labels for computing the masked language modeling loss. Indices should be in <code>[-100, 0, ..., config.vocab_size]</code> (see <code>input_ids</code> docstring) Tokens with indices set to <code>-100</code> are ignored (masked), the
loss is only computed for the tokens with labels in <code>[0, ..., config.vocab_size]</code>`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L986",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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) — Masked language modeling (MLM) loss.</li>
<li><strong>logits</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, config.vocab_size)</code>) — Prediction scores of the language modeling head (scores for each vocabulary token 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 + 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, num_latents, num_latents)</code>. Attentions weights after the attention softmax, used to compute the weighted average in the
self-attention heads.</li>
<li><strong>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverMaskedLMOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),$t=new no({props:{$$slots:{default:[Mu]},$$scope:{ctx:C}}}),jt=new Se({props:{anchor:"transformers.PerceiverForMaskedLM.forward.example",$$slots:{default:[wu]},$$scope:{ctx:C}}}),Tr=new k({}),Pr=new P({props:{name:"class transformers.PerceiverForSequenceClassification",anchor:"transformers.PerceiverForSequenceClassification",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PerceiverForSequenceClassification.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1089"}}),xr=new P({props:{name:"forward",anchor:"transformers.PerceiverForSequenceClassification.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForSequenceClassification.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForSequenceClassification.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForSequenceClassification.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.PerceiverForSequenceClassification.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.PerceiverForSequenceClassification.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.PerceiverForSequenceClassification.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForSequenceClassification.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the 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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1110",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ft=new no({props:{$$slots:{default:[Tu]},$$scope:{ctx:C}}}),Ut=new Se({props:{anchor:"transformers.PerceiverForSequenceClassification.forward.example",$$slots:{default:[Pu]},$$scope:{ctx:C}}}),Cr=new k({}),kr=new P({props:{name:"class transformers.PerceiverForImageClassificationLearned",anchor:"transformers.PerceiverForImageClassificationLearned",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationLearned.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1214"}}),$r=new P({props:{name:"forward",anchor:"transformers.PerceiverForImageClassificationLearned.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationLearned.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForImageClassificationLearned.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForImageClassificationLearned.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.PerceiverForImageClassificationLearned.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.PerceiverForImageClassificationLearned.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.PerceiverForImageClassificationLearned.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForImageClassificationLearned.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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1245",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Zt=new no({props:{$$slots:{default:[xu]},$$scope:{ctx:C}}}),zt=new Se({props:{anchor:"transformers.PerceiverForImageClassificationLearned.forward.example",$$slots:{default:[Cu]},$$scope:{ctx:C}}}),jr=new k({}),Jr=new P({props:{name:"class transformers.PerceiverForImageClassificationFourier",anchor:"transformers.PerceiverForImageClassificationFourier",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationFourier.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1357"}}),Fr=new P({props:{name:"forward",anchor:"transformers.PerceiverForImageClassificationFourier.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationFourier.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForImageClassificationFourier.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForImageClassificationFourier.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.PerceiverForImageClassificationFourier.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.PerceiverForImageClassificationFourier.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.PerceiverForImageClassificationFourier.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForImageClassificationFourier.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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1389",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Nt=new no({props:{$$slots:{default:[ku]},$$scope:{ctx:C}}}),Bt=new Se({props:{anchor:"transformers.PerceiverForImageClassificationFourier.forward.example",$$slots:{default:[$u]},$$scope:{ctx:C}}}),Ur=new k({}),Ir=new P({props:{name:"class transformers.PerceiverForImageClassificationConvProcessing",anchor:"transformers.PerceiverForImageClassificationConvProcessing",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationConvProcessing.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1500"}}),Zr=new P({props:{name:"forward",anchor:"transformers.PerceiverForImageClassificationConvProcessing.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"pixel_values",val:": typing.Optional[torch.Tensor] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForImageClassificationConvProcessing.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForImageClassificationConvProcessing.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForImageClassificationConvProcessing.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.PerceiverForImageClassificationConvProcessing.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.PerceiverForImageClassificationConvProcessing.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.PerceiverForImageClassificationConvProcessing.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForImageClassificationConvProcessing.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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1533",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),qt=new no({props:{$$slots:{default:[ju]},$$scope:{ctx:C}}}),Gt=new Se({props:{anchor:"transformers.PerceiverForImageClassificationConvProcessing.forward.example",$$slots:{default:[Ju]},$$scope:{ctx:C}}}),zr=new k({}),Wr=new P({props:{name:"class transformers.PerceiverForOpticalFlow",anchor:"transformers.PerceiverForOpticalFlow",parameters:[{name:"config",val:""}],parametersDescription:[{anchor:"transformers.PerceiverForOpticalFlow.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1644"}}),Nr=new P({props:{name:"forward",anchor:"transformers.PerceiverForOpticalFlow.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForOpticalFlow.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForOpticalFlow.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForOpticalFlow.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.PerceiverForOpticalFlow.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.PerceiverForOpticalFlow.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.PerceiverForOpticalFlow.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForOpticalFlow.forward.labels",description:`<strong>labels</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size,)</code>, <em>optional</em>) &#x2014;
Labels for computing the optical flow loss. Indices should be in <code>[0, ..., config.num_labels - 1]</code>.`,name:"labels"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1694",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),At=new no({props:{$$slots:{default:[Fu]},$$scope:{ctx:C}}}),Vt=new Se({props:{anchor:"transformers.PerceiverForOpticalFlow.forward.example",$$slots:{default:[Uu]},$$scope:{ctx:C}}}),Br=new k({}),Er=new P({props:{name:"class transformers.PerceiverForMultimodalAutoencoding",anchor:"transformers.PerceiverForMultimodalAutoencoding",parameters:[{name:"config",val:": PerceiverConfig"}],parametersDescription:[{anchor:"transformers.PerceiverForMultimodalAutoencoding.config",description:`<strong>config</strong> (<a href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig">PerceiverConfig</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/v4.33.3/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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1789"}}),qr=new P({props:{name:"forward",anchor:"transformers.PerceiverForMultimodalAutoencoding.forward",parameters:[{name:"inputs",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"subsampled_output_points",val:": typing.Union[typing.Dict[str, torch.Tensor], NoneType] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"labels",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PerceiverForMultimodalAutoencoding.forward.inputs",description:`<strong>inputs</strong> (<code>torch.FloatTensor</code>) &#x2014;
Inputs to the perceiver. Can be anything: images, text, audio, video, etc.`,name:"inputs"},{anchor:"transformers.PerceiverForMultimodalAutoencoding.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.FloatTensor</code> of shape <code>batch_size, sequence_length</code>, <em>optional</em>) &#x2014;
Mask to avoid performing attention on padding token indices. Mask values selected in <code>[0, 1]</code>:</p>
<ul>
<li>1 for tokens that are <strong>not masked</strong>,</li>
<li>0 for tokens that are <strong>masked</strong>.</li>
</ul>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"attention_mask"},{anchor:"transformers.PerceiverForMultimodalAutoencoding.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.PerceiverForMultimodalAutoencoding.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.PerceiverForMultimodalAutoencoding.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.PerceiverForMultimodalAutoencoding.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/v4.33.3/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PerceiverForMultimodalAutoencoding.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/v4.33.3/src/transformers/models/perceiver/modeling_perceiver.py#L1905",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</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/v4.33.3/en/model_doc/perceiver#transformers.PerceiverConfig"
>PerceiverConfig</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 + 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>cross_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 of the decoder’s cross-attention layer, after the attention softmax,
used to compute the weighted average in the cross-attention heads.</li>
</ul>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/model_doc/perceiver#transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput"
>transformers.models.perceiver.modeling_perceiver.PerceiverClassifierOutput</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Dt=new no({props:{$$slots:{default:[Iu]},$$scope:{ctx:C}}}),Rt=new Se({props:{anchor:"transformers.PerceiverForMultimodalAutoencoding.forward.example",$$slots:{default:[Zu]},$$scope:{ctx:C}}}),{c(){d=r("meta"),w=s(),b=r("p"),M=s(),T=r("h1"),p=r("a"),x=r("span"),u(so.$$.fragment),Ll=s(),Or=r("span"),Or.textContent=ip,Ia=s(),ne=r("h2"),Ye=r("a"),Xs=r("span"),u(ao.$$.fragment),Dl=s(),Yr=r("span"),Yr.textContent=lp,Za=s(),io=r("p"),io.innerHTML=cp,za=s(),lo=r("p"),lo.innerHTML=dp,Wa=s(),co=r("p"),co.textContent=pp,Na=s(),po=r("p"),po.innerHTML=mp,Ba=s(),mo=r("p"),mo.textContent=hp,Ea=s(),ho=r("p"),ho.textContent=up,qa=s(),uo=r("p"),uo.innerHTML=gp,Ga=s(),go=r("p"),go.textContent=fp,Ha=s(),fo=r("p"),fo.innerHTML=vp,Aa=s(),Qe=r("img"),Va=s(),vo=r("small"),vo.innerHTML=yp,La=s(),_o=r("p"),_o.innerHTML=bp,Da=s(),yo=r("p"),yo.textContent=Mp,Ra=s(),bo=r("ul"),bo.innerHTML=wp,Xa=s(),Mo=r("p"),Mo.innerHTML=Tp,Sa=s(),wo=r("ul"),wo.innerHTML=Pp,Oa=s(),se=r("h2"),Ke=r("a"),Ss=r("span"),u(To.$$.fragment),Rl=s(),Qr=r("span"),Qr.textContent=xp,Ya=s(),Po=r("ul"),Po.innerHTML=Cp,Qa=s(),ae=r("h2"),et=r("a"),Os=r("span"),u(xo.$$.fragment),Xl=s(),Kr=r("span"),Kr.textContent=kp,Ka=s(),ie=r("div"),u(Co.$$.fragment),Sl=s(),en=r("p"),en.textContent=$p,ei=s(),le=r("div"),u(ko.$$.fragment),Ol=s(),tn=r("p"),tn.textContent=jp,ti=s(),ce=r("div"),u($o.$$.fragment),Yl=s(),on=r("p"),on.textContent=Jp,oi=s(),de=r("div"),u(jo.$$.fragment),Ql=s(),rn=r("p"),rn.textContent=Fp,ri=s(),pe=r("h2"),tt=r("a"),Ys=r("span"),u(Jo.$$.fragment),Kl=s(),nn=r("span"),nn.textContent=Up,ni=s(),z=r("div"),u(Fo.$$.fragment),ec=s(),sn=r("p"),sn.innerHTML=Ip,tc=s(),an=r("p"),an.innerHTML=Zp,oc=s(),u(ot.$$.fragment),si=s(),me=r("h2"),rt=r("a"),Qs=r("span"),u(Uo.$$.fragment),rc=s(),ln=r("span"),ln.textContent=zp,ai=s(),W=r("div"),u(Io.$$.fragment),nc=s(),cn=r("p"),cn.textContent=Wp,sc=s(),dn=r("p"),dn.innerHTML=Np,ac=s(),nt=r("div"),u(Zo.$$.fragment),ic=s(),pn=r("p"),pn.textContent=Bp,ii=s(),he=r("h2"),st=r("a"),Ks=r("span"),u(zo.$$.fragment),lc=s(),mn=r("span"),mn.textContent=Ep,li=s(),ue=r("div"),u(Wo.$$.fragment),cc=s(),at=r("div"),u(No.$$.fragment),dc=s(),hn=r("p"),hn.textContent=qp,ci=s(),ge=r("h2"),it=r("a"),ea=r("span"),u(Bo.$$.fragment),pc=s(),un=r("span"),un.textContent=Gp,di=s(),X=r("div"),u(Eo.$$.fragment),mc=s(),gn=r("p"),gn.textContent=Hp,hc=s(),lt=r("div"),u(qo.$$.fragment),uc=s(),fn=r("p"),fn.textContent=Ap,pi=s(),fe=r("h2"),ct=r("a"),ta=r("span"),u(Go.$$.fragment),gc=s(),vn=r("span"),vn.textContent=Vp,mi=s(),S=r("div"),u(Ho.$$.fragment),fc=s(),_n=r("p"),_n.innerHTML=Lp,vc=s(),yn=r("p"),yn.innerHTML=Dp,hi=s(),ve=r("h2"),dt=r("a"),oa=r("span"),u(Ao.$$.fragment),_c=s(),bn=r("span"),bn.textContent=Rp,ui=s(),O=r("div"),u(Vo.$$.fragment),yc=s(),Mn=r("p"),Mn.textContent=Xp,bc=s(),wn=r("p"),wn.innerHTML=Sp,gi=s(),_e=r("h2"),pt=r("a"),ra=r("span"),u(Lo.$$.fragment),Mc=s(),Tn=r("span"),Tn.textContent=Op,fi=s(),ye=r("div"),u(Do.$$.fragment),wc=s(),Pn=r("p"),Pn.textContent=Yp,vi=s(),be=r("h2"),mt=r("a"),na=r("span"),u(Ro.$$.fragment),Tc=s(),xn=r("span"),xn.textContent=Qp,_i=s(),Me=r("div"),u(Xo.$$.fragment),Pc=s(),Cn=r("p"),Cn.textContent=Kp,yi=s(),we=r("h2"),ht=r("a"),sa=r("span"),u(So.$$.fragment),xc=s(),kn=r("span"),kn.textContent=em,bi=s(),Y=r("div"),u(Oo.$$.fragment),Cc=s(),$n=r("p"),$n.textContent=tm,kc=s(),jn=r("p"),jn.textContent=om,Mi=s(),Te=r("h2"),ut=r("a"),aa=r("span"),u(Yo.$$.fragment),$c=s(),Jn=r("span"),Jn.textContent=rm,wi=s(),Pe=r("div"),u(Qo.$$.fragment),jc=s(),Fn=r("p"),Fn.textContent=nm,Ti=s(),xe=r("h2"),gt=r("a"),ia=r("span"),u(Ko.$$.fragment),Jc=s(),Un=r("span"),Un.textContent=sm,Pi=s(),Q=r("div"),u(er.$$.fragment),Fc=s(),In=r("p"),In.textContent=am,Uc=s(),Zn=r("p"),Zn.textContent=im,xi=s(),Ce=r("h2"),ft=r("a"),la=r("span"),u(tr.$$.fragment),Ic=s(),zn=r("span"),zn.textContent=lm,Ci=s(),ke=r("div"),u(or.$$.fragment),Zc=s(),Wn=r("p"),Wn.innerHTML=cm,ki=s(),$e=r("h2"),vt=r("a"),ca=r("span"),u(rr.$$.fragment),zc=s(),Nn=r("span"),Nn.textContent=dm,$i=s(),je=r("div"),u(nr.$$.fragment),Wc=s(),Bn=r("p"),Bn.textContent=pm,ji=s(),Je=r("h2"),_t=r("a"),da=r("span"),u(sr.$$.fragment),Nc=s(),En=r("span"),En.textContent=mm,Ji=s(),Fe=r("div"),u(ar.$$.fragment),Bc=s(),qn=r("p"),qn.innerHTML=hm,Fi=s(),Ue=r("h2"),yt=r("a"),pa=r("span"),u(ir.$$.fragment),Ec=s(),Gn=r("span"),Gn.textContent=um,Ui=s(),K=r("div"),u(lr.$$.fragment),qc=s(),Hn=r("p"),Hn.innerHTML=gm,Gc=s(),An=r("p"),An.textContent=fm,Ii=s(),Ie=r("h2"),bt=r("a"),ma=r("span"),u(cr.$$.fragment),Hc=s(),Vn=r("span"),Vn.textContent=vm,Zi=s(),Ze=r("div"),u(dr.$$.fragment),Ac=s(),Ln=r("p"),Ln.textContent=_m,zi=s(),ze=r("h2"),Mt=r("a"),ha=r("span"),u(pr.$$.fragment),Vc=s(),Dn=r("span"),Dn.textContent=ym,Wi=s(),We=r("div"),u(mr.$$.fragment),Lc=s(),Rn=r("p"),Rn.textContent=bm,Ni=s(),Ne=r("h2"),wt=r("a"),ua=r("span"),u(hr.$$.fragment),Dc=s(),Xn=r("span"),Xn.textContent=Mm,Bi=s(),Be=r("div"),u(ur.$$.fragment),Rc=s(),Sn=r("p"),Sn.textContent=wm,Ei=s(),Ee=r("h2"),Tt=r("a"),ga=r("span"),u(gr.$$.fragment),Xc=s(),On=r("span"),On.textContent=Tm,qi=s(),qe=r("div"),u(fr.$$.fragment),Sc=s(),Yn=r("p"),Yn.textContent=Pm,Gi=s(),Ge=r("h2"),Pt=r("a"),fa=r("span"),u(vr.$$.fragment),Oc=s(),Qn=r("span"),Qn.textContent=xm,Hi=s(),ee=r("div"),u(_r.$$.fragment),Yc=s(),Kn=r("p"),Kn.innerHTML=Cm,Qc=s(),N=r("div"),u(yr.$$.fragment),Kc=s(),es=r("p"),es.innerHTML=km,ed=s(),u(xt.$$.fragment),td=s(),u(Ct.$$.fragment),Ai=s(),He=r("h2"),kt=r("a"),va=r("span"),u(br.$$.fragment),od=s(),ts=r("span"),ts.textContent=$m,Vi=s(),te=r("div"),u(Mr.$$.fragment),rd=s(),os=r("p"),os.innerHTML=jm,nd=s(),B=r("div"),u(wr.$$.fragment),sd=s(),rs=r("p"),rs.innerHTML=Jm,ad=s(),u($t.$$.fragment),id=s(),u(jt.$$.fragment),Li=s(),Ae=r("h2"),Jt=r("a"),_a=r("span"),u(Tr.$$.fragment),ld=s(),ns=r("span"),ns.textContent=Fm,Di=s(),oe=r("div"),u(Pr.$$.fragment),cd=s(),ss=r("p"),ss.innerHTML=Um,dd=s(),E=r("div"),u(xr.$$.fragment),pd=s(),as=r("p"),as.innerHTML=Im,md=s(),u(Ft.$$.fragment),hd=s(),u(Ut.$$.fragment),Ri=s(),Ve=r("h2"),It=r("a"),ya=r("span"),u(Cr.$$.fragment),ud=s(),is=r("span"),is.textContent=Zm,Xi=s(),J=r("div"),u(kr.$$.fragment),gd=s(),ls=r("p"),ls.textContent=zm,fd=s(),cs=r("p"),cs.textContent=Wm,vd=s(),ds=r("p"),ds.innerHTML=Nm,_d=s(),ps=r("p"),ps.innerHTML=Bm,yd=s(),q=r("div"),u($r.$$.fragment),bd=s(),ms=r("p"),ms.innerHTML=Em,Md=s(),u(Zt.$$.fragment),wd=s(),u(zt.$$.fragment),Si=s(),Le=r("h2"),Wt=r("a"),ba=r("span"),u(jr.$$.fragment),Td=s(),hs=r("span"),hs.textContent=qm,Oi=s(),F=r("div"),u(Jr.$$.fragment),Pd=s(),us=r("p"),us.textContent=Gm,xd=s(),gs=r("p"),gs.textContent=Hm,Cd=s(),fs=r("p"),fs.innerHTML=Am,kd=s(),vs=r("p"),vs.innerHTML=Vm,$d=s(),G=r("div"),u(Fr.$$.fragment),jd=s(),_s=r("p"),_s.innerHTML=Lm,Jd=s(),u(Nt.$$.fragment),Fd=s(),u(Bt.$$.fragment),Yi=s(),De=r("h2"),Et=r("a"),Ma=r("span"),u(Ur.$$.fragment),Ud=s(),ys=r("span"),ys.textContent=Dm,Qi=s(),U=r("div"),u(Ir.$$.fragment),Id=s(),bs=r("p"),bs.textContent=Rm,Zd=s(),Ms=r("p"),Ms.textContent=Xm,zd=s(),ws=r("p"),ws.innerHTML=Sm,Wd=s(),Ts=r("p"),Ts.innerHTML=Om,Nd=s(),H=r("div"),u(Zr.$$.fragment),Bd=s(),Ps=r("p"),Ps.innerHTML=Ym,Ed=s(),u(qt.$$.fragment),qd=s(),u(Gt.$$.fragment),Ki=s(),Re=r("h2"),Ht=r("a"),wa=r("span"),u(zr.$$.fragment),Gd=s(),xs=r("span"),xs.textContent=Qm,el=s(),Z=r("div"),u(Wr.$$.fragment),Hd=s(),Cs=r("p"),Cs.innerHTML=Km,Ad=s(),ks=r("p"),ks.textContent=eh,Vd=s(),$s=r("p"),$s.innerHTML=th,Ld=s(),A=r("div"),u(Nr.$$.fragment),Dd=s(),js=r("p"),js.innerHTML=oh,Rd=s(),u(At.$$.fragment),Xd=s(),u(Vt.$$.fragment),tl=s(),Xe=r("h2"),Lt=r("a"),Ta=r("span"),u(Br.$$.fragment),Sd=s(),Js=r("span"),Js.textContent=rh,ol=s(),$=r("div"),u(Er.$$.fragment),Od=s(),Fs=r("p"),Fs.textContent=nh,Yd=s(),Us=r("p"),Us.innerHTML=sh,Qd=s(),Is=r("p"),Is.innerHTML=ah,Kd=s(),Zs=r("p"),Zs.innerHTML=ih,ep=s(),zs=r("p"),zs.innerHTML=lh,tp=s(),Ws=r("p"),Ws.textContent=ch,op=s(),Ns=r("p"),Ns.innerHTML=dh,rp=s(),V=r("div"),u(qr.$$.fragment),np=s(),Bs=r("p"),Bs.innerHTML=ph,sp=s(),u(Dt.$$.fragment),ap=s(),u(Rt.$$.fragment),rl=s(),Pa=r("p"),this.h()},l(e){const i=vu("svelte-1phssyn",document.head);d=n(i,"META",{name:!0,content:!0}),i.forEach(t),w=a(e),b=n(e,"P",{}),m(b).forEach(t),M=a(e),T=n(e,"H1",{class:!0});var Gr=m(T);p=n(Gr,"A",{id:!0,class:!0,href:!0});var xa=m(p);x=n(xa,"SPAN",{});var Ca=m(x);g(so.$$.fragment,Ca),Ca.forEach(t),xa.forEach(t),Ll=a(Gr),Or=n(Gr,"SPAN",{"data-svelte-h":!0}),h(Or)!=="svelte-15y3e10"&&(Or.textContent=ip),Gr.forEach(t),Ia=a(e),ne=n(e,"H2",{class:!0});var Hr=m(ne);Ye=n(Hr,"A",{id:!0,class:!0,href:!0});var ka=m(Ye);Xs=n(ka,"SPAN",{});var $a=m(Xs);g(ao.$$.fragment,$a),$a.forEach(t),ka.forEach(t),Dl=a(Hr),Yr=n(Hr,"SPAN",{"data-svelte-h":!0}),h(Yr)!=="svelte-1jsw1pg"&&(Yr.textContent=lp),Hr.forEach(t),Za=a(e),io=n(e,"P",{"data-svelte-h":!0}),h(io)!=="svelte-1q9pjug"&&(io.innerHTML=cp),za=a(e),lo=n(e,"P",{"data-svelte-h":!0}),h(lo)!=="svelte-tt6rit"&&(lo.innerHTML=dp),Wa=a(e),co=n(e,"P",{"data-svelte-h":!0}),h(co)!=="svelte-vfdo9a"&&(co.textContent=pp),Na=a(e),po=n(e,"P",{"data-svelte-h":!0}),h(po)!=="svelte-1jljul4"&&(po.innerHTML=mp),Ba=a(e),mo=n(e,"P",{"data-svelte-h":!0}),h(mo)!=="svelte-l4zudt"&&(mo.textContent=hp),Ea=a(e),ho=n(e,"P",{"data-svelte-h":!0}),h(ho)!=="svelte-12eh3gr"&&(ho.textContent=up),qa=a(e),uo=n(e,"P",{"data-svelte-h":!0}),h(uo)!=="svelte-1ntfoql"&&(uo.innerHTML=gp),Ga=a(e),go=n(e,"P",{"data-svelte-h":!0}),h(go)!=="svelte-490sb6"&&(go.textContent=fp),Ha=a(e),fo=n(e,"P",{"data-svelte-h":!0}),h(fo)!=="svelte-9ljddx"&&(fo.innerHTML=vp),Aa=a(e),Qe=n(e,"IMG",{src:!0,alt:!0,width:!0}),Va=a(e),vo=n(e,"SMALL",{"data-svelte-h":!0}),h(vo)!=="svelte-d9mm9q"&&(vo.innerHTML=yp),La=a(e),_o=n(e,"P",{"data-svelte-h":!0}),h(_o)!=="svelte-1mhzktt"&&(_o.innerHTML=bp),Da=a(e),yo=n(e,"P",{"data-svelte-h":!0}),h(yo)!=="svelte-axv494"&&(yo.textContent=Mp),Ra=a(e),bo=n(e,"UL",{"data-svelte-h":!0}),h(bo)!=="svelte-1nwl6l5"&&(bo.innerHTML=wp),Xa=a(e),Mo=n(e,"P",{"data-svelte-h":!0}),h(Mo)!=="svelte-pxb0rv"&&(Mo.innerHTML=Tp),Sa=a(e),wo=n(e,"UL",{"data-svelte-h":!0}),h(wo)!=="svelte-g7p4n1"&&(wo.innerHTML=Pp),Oa=a(e),se=n(e,"H2",{class:!0});var Ar=m(se);Ke=n(Ar,"A",{id:!0,class:!0,href:!0});var ja=m(Ke);Ss=n(ja,"SPAN",{});var Ja=m(Ss);g(To.$$.fragment,Ja),Ja.forEach(t),ja.forEach(t),Rl=a(Ar),Qr=n(Ar,"SPAN",{"data-svelte-h":!0}),h(Qr)!=="svelte-n3f0j0"&&(Qr.textContent=xp),Ar.forEach(t),Ya=a(e),Po=n(e,"UL",{"data-svelte-h":!0}),h(Po)!=="svelte-164wxwx"&&(Po.innerHTML=Cp),Qa=a(e),ae=n(e,"H2",{class:!0});var Vr=m(ae);et=n(Vr,"A",{id:!0,class:!0,href:!0});var Fa=m(et);Os=n(Fa,"SPAN",{});var Ua=m(Os);g(xo.$$.fragment,Ua),Ua.forEach(t),Fa.forEach(t),Xl=a(Vr),Kr=n(Vr,"SPAN",{"data-svelte-h":!0}),h(Kr)!=="svelte-1eurvls"&&(Kr.textContent=kp),Vr.forEach(t),Ka=a(e),ie=n(e,"DIV",{class:!0});var Lr=m(ie);g(Co.$$.fragment,Lr),Sl=a(Lr),en=n(Lr,"P",{"data-svelte-h":!0}),h(en)!=="svelte-13fgwy5"&&(en.textContent=$p),Lr.forEach(t),ei=a(e),le=n(e,"DIV",{class:!0});var Dr=m(le);g(ko.$$.fragment,Dr),Ol=a(Dr),tn=n(Dr,"P",{"data-svelte-h":!0}),h(tn)!=="svelte-19jhdk9"&&(tn.textContent=jp),Dr.forEach(t),ti=a(e),ce=n(e,"DIV",{class:!0});var Rr=m(ce);g($o.$$.fragment,Rr),Yl=a(Rr),on=n(Rr,"P",{"data-svelte-h":!0}),h(on)!=="svelte-m841rf"&&(on.textContent=Jp),Rr.forEach(t),oi=a(e),de=n(e,"DIV",{class:!0});var Xr=m(de);g(jo.$$.fragment,Xr),Ql=a(Xr),rn=n(Xr,"P",{"data-svelte-h":!0}),h(rn)!=="svelte-soa7d4"&&(rn.textContent=Fp),Xr.forEach(t),ri=a(e),pe=n(e,"H2",{class:!0});var Sr=m(pe);tt=n(Sr,"A",{id:!0,class:!0,href:!0});var mh=m(tt);Ys=n(mh,"SPAN",{});var hh=m(Ys);g(Jo.$$.fragment,hh),hh.forEach(t),mh.forEach(t),Kl=a(Sr),nn=n(Sr,"SPAN",{"data-svelte-h":!0}),h(nn)!=="svelte-1tz8a2m"&&(nn.textContent=Up),Sr.forEach(t),ni=a(e),z=n(e,"DIV",{class:!0});var Xt=m(z);g(Fo.$$.fragment,Xt),ec=a(Xt),sn=n(Xt,"P",{"data-svelte-h":!0}),h(sn)!=="svelte-1v1peb4"&&(sn.innerHTML=Ip),tc=a(Xt),an=n(Xt,"P",{"data-svelte-h":!0}),h(an)!=="svelte-cfh5wl"&&(an.innerHTML=Zp),oc=a(Xt),g(ot.$$.fragment,Xt),Xt.forEach(t),si=a(e),me=n(e,"H2",{class:!0});var sl=m(me);rt=n(sl,"A",{id:!0,class:!0,href:!0});var uh=m(rt);Qs=n(uh,"SPAN",{});var gh=m(Qs);g(Uo.$$.fragment,gh),gh.forEach(t),uh.forEach(t),rc=a(sl),ln=n(sl,"SPAN",{"data-svelte-h":!0}),h(ln)!=="svelte-wsvio9"&&(ln.textContent=zp),sl.forEach(t),ai=a(e),W=n(e,"DIV",{class:!0});var St=m(W);g(Io.$$.fragment,St),nc=a(St),cn=n(St,"P",{"data-svelte-h":!0}),h(cn)!=="svelte-qvnww0"&&(cn.textContent=Wp),sc=a(St),dn=n(St,"P",{"data-svelte-h":!0}),h(dn)!=="svelte-14xlfoy"&&(dn.innerHTML=Np),ac=a(St),nt=n(St,"DIV",{class:!0});var al=m(nt);g(Zo.$$.fragment,al),ic=a(al),pn=n(al,"P",{"data-svelte-h":!0}),h(pn)!=="svelte-kpxj0c"&&(pn.textContent=Bp),al.forEach(t),St.forEach(t),ii=a(e),he=n(e,"H2",{class:!0});var il=m(he);st=n(il,"A",{id:!0,class:!0,href:!0});var fh=m(st);Ks=n(fh,"SPAN",{});var vh=m(Ks);g(zo.$$.fragment,vh),vh.forEach(t),fh.forEach(t),lc=a(il),mn=n(il,"SPAN",{"data-svelte-h":!0}),h(mn)!=="svelte-1ssnmbm"&&(mn.textContent=Ep),il.forEach(t),li=a(e),ue=n(e,"DIV",{class:!0});var ll=m(ue);g(Wo.$$.fragment,ll),cc=a(ll),at=n(ll,"DIV",{class:!0});var cl=m(at);g(No.$$.fragment,cl),dc=a(cl),hn=n(cl,"P",{"data-svelte-h":!0}),h(hn)!=="svelte-khengj"&&(hn.textContent=qp),cl.forEach(t),ll.forEach(t),ci=a(e),ge=n(e,"H2",{class:!0});var dl=m(ge);it=n(dl,"A",{id:!0,class:!0,href:!0});var _h=m(it);ea=n(_h,"SPAN",{});var yh=m(ea);g(Bo.$$.fragment,yh),yh.forEach(t),_h.forEach(t),pc=a(dl),un=n(dl,"SPAN",{"data-svelte-h":!0}),h(un)!=="svelte-13uf2rz"&&(un.textContent=Gp),dl.forEach(t),di=a(e),X=n(e,"DIV",{class:!0});var Es=m(X);g(Eo.$$.fragment,Es),mc=a(Es),gn=n(Es,"P",{"data-svelte-h":!0}),h(gn)!=="svelte-2cuwar"&&(gn.textContent=Hp),hc=a(Es),lt=n(Es,"DIV",{class:!0});var pl=m(lt);g(qo.$$.fragment,pl),uc=a(pl),fn=n(pl,"P",{"data-svelte-h":!0}),h(fn)!=="svelte-1x3yxsa"&&(fn.textContent=Ap),pl.forEach(t),Es.forEach(t),pi=a(e),fe=n(e,"H2",{class:!0});var ml=m(fe);ct=n(ml,"A",{id:!0,class:!0,href:!0});var bh=m(ct);ta=n(bh,"SPAN",{});var Mh=m(ta);g(Go.$$.fragment,Mh),Mh.forEach(t),bh.forEach(t),gc=a(ml),vn=n(ml,"SPAN",{"data-svelte-h":!0}),h(vn)!=="svelte-t9lwzs"&&(vn.textContent=Vp),ml.forEach(t),mi=a(e),S=n(e,"DIV",{class:!0});var qs=m(S);g(Ho.$$.fragment,qs),fc=a(qs),_n=n(qs,"P",{"data-svelte-h":!0}),h(_n)!=="svelte-14oxh6f"&&(_n.innerHTML=Lp),vc=a(qs),yn=n(qs,"P",{"data-svelte-h":!0}),h(yn)!=="svelte-10ewy9s"&&(yn.innerHTML=Dp),qs.forEach(t),hi=a(e),ve=n(e,"H2",{class:!0});var hl=m(ve);dt=n(hl,"A",{id:!0,class:!0,href:!0});var wh=m(dt);oa=n(wh,"SPAN",{});var Th=m(oa);g(Ao.$$.fragment,Th),Th.forEach(t),wh.forEach(t),_c=a(hl),bn=n(hl,"SPAN",{"data-svelte-h":!0}),h(bn)!=="svelte-n3m6lk"&&(bn.textContent=Rp),hl.forEach(t),ui=a(e),O=n(e,"DIV",{class:!0});var Gs=m(O);g(Vo.$$.fragment,Gs),yc=a(Gs),Mn=n(Gs,"P",{"data-svelte-h":!0}),h(Mn)!=="svelte-qqdw41"&&(Mn.textContent=Xp),bc=a(Gs),wn=n(Gs,"P",{"data-svelte-h":!0}),h(wn)!=="svelte-8bldbv"&&(wn.innerHTML=Sp),Gs.forEach(t),gi=a(e),_e=n(e,"H2",{class:!0});var ul=m(_e);pt=n(ul,"A",{id:!0,class:!0,href:!0});var Ph=m(pt);ra=n(Ph,"SPAN",{});var xh=m(ra);g(Lo.$$.fragment,xh),xh.forEach(t),Ph.forEach(t),Mc=a(ul),Tn=n(ul,"SPAN",{"data-svelte-h":!0}),h(Tn)!=="svelte-1yfjh1g"&&(Tn.textContent=Op),ul.forEach(t),fi=a(e),ye=n(e,"DIV",{class:!0});var gl=m(ye);g(Do.$$.fragment,gl),wc=a(gl),Pn=n(gl,"P",{"data-svelte-h":!0}),h(Pn)!=="svelte-dy213u"&&(Pn.textContent=Yp),gl.forEach(t),vi=a(e),be=n(e,"H2",{class:!0});var fl=m(be);mt=n(fl,"A",{id:!0,class:!0,href:!0});var Ch=m(mt);na=n(Ch,"SPAN",{});var kh=m(na);g(Ro.$$.fragment,kh),kh.forEach(t),Ch.forEach(t),Tc=a(fl),xn=n(fl,"SPAN",{"data-svelte-h":!0}),h(xn)!=="svelte-bm7oy1"&&(xn.textContent=Qp),fl.forEach(t),_i=a(e),Me=n(e,"DIV",{class:!0});var vl=m(Me);g(Xo.$$.fragment,vl),Pc=a(vl),Cn=n(vl,"P",{"data-svelte-h":!0}),h(Cn)!=="svelte-yuiep6"&&(Cn.textContent=Kp),vl.forEach(t),yi=a(e),we=n(e,"H2",{class:!0});var _l=m(we);ht=n(_l,"A",{id:!0,class:!0,href:!0});var $h=m(ht);sa=n($h,"SPAN",{});var jh=m(sa);g(So.$$.fragment,jh),jh.forEach(t),$h.forEach(t),xc=a(_l),kn=n(_l,"SPAN",{"data-svelte-h":!0}),h(kn)!=="svelte-40yhrx"&&(kn.textContent=em),_l.forEach(t),bi=a(e),Y=n(e,"DIV",{class:!0});var Hs=m(Y);g(Oo.$$.fragment,Hs),Cc=a(Hs),$n=n(Hs,"P",{"data-svelte-h":!0}),h($n)!=="svelte-1ktcovi"&&($n.textContent=tm),kc=a(Hs),jn=n(Hs,"P",{"data-svelte-h":!0}),h(jn)!=="svelte-6kslc1"&&(jn.textContent=om),Hs.forEach(t),Mi=a(e),Te=n(e,"H2",{class:!0});var yl=m(Te);ut=n(yl,"A",{id:!0,class:!0,href:!0});var Jh=m(ut);aa=n(Jh,"SPAN",{});var Fh=m(aa);g(Yo.$$.fragment,Fh),Fh.forEach(t),Jh.forEach(t),$c=a(yl),Jn=n(yl,"SPAN",{"data-svelte-h":!0}),h(Jn)!=="svelte-1l5s4kj"&&(Jn.textContent=rm),yl.forEach(t),wi=a(e),Pe=n(e,"DIV",{class:!0});var bl=m(Pe);g(Qo.$$.fragment,bl),jc=a(bl),Fn=n(bl,"P",{"data-svelte-h":!0}),h(Fn)!=="svelte-y6ydlz"&&(Fn.textContent=nm),bl.forEach(t),Ti=a(e),xe=n(e,"H2",{class:!0});var Ml=m(xe);gt=n(Ml,"A",{id:!0,class:!0,href:!0});var Uh=m(gt);ia=n(Uh,"SPAN",{});var Ih=m(ia);g(Ko.$$.fragment,Ih),Ih.forEach(t),Uh.forEach(t),Jc=a(Ml),Un=n(Ml,"SPAN",{"data-svelte-h":!0}),h(Un)!=="svelte-15ie1da"&&(Un.textContent=sm),Ml.forEach(t),Pi=a(e),Q=n(e,"DIV",{class:!0});var As=m(Q);g(er.$$.fragment,As),Fc=a(As),In=n(As,"P",{"data-svelte-h":!0}),h(In)!=="svelte-1kkn2my"&&(In.textContent=am),Uc=a(As),Zn=n(As,"P",{"data-svelte-h":!0}),h(Zn)!=="svelte-1rw0gn5"&&(Zn.textContent=im),As.forEach(t),xi=a(e),Ce=n(e,"H2",{class:!0});var wl=m(Ce);ft=n(wl,"A",{id:!0,class:!0,href:!0});var Zh=m(ft);la=n(Zh,"SPAN",{});var zh=m(la);g(tr.$$.fragment,zh),zh.forEach(t),Zh.forEach(t),Ic=a(wl),zn=n(wl,"SPAN",{"data-svelte-h":!0}),h(zn)!=="svelte-19j85ce"&&(zn.textContent=lm),wl.forEach(t),Ci=a(e),ke=n(e,"DIV",{class:!0});var Tl=m(ke);g(or.$$.fragment,Tl),Zc=a(Tl),Wn=n(Tl,"P",{"data-svelte-h":!0}),h(Wn)!=="svelte-2naf7r"&&(Wn.innerHTML=cm),Tl.forEach(t),ki=a(e),$e=n(e,"H2",{class:!0});var Pl=m($e);vt=n(Pl,"A",{id:!0,class:!0,href:!0});var Wh=m(vt);ca=n(Wh,"SPAN",{});var Nh=m(ca);g(rr.$$.fragment,Nh),Nh.forEach(t),Wh.forEach(t),zc=a(Pl),Nn=n(Pl,"SPAN",{"data-svelte-h":!0}),h(Nn)!=="svelte-1sbnt7c"&&(Nn.textContent=dm),Pl.forEach(t),$i=a(e),je=n(e,"DIV",{class:!0});var xl=m(je);g(nr.$$.fragment,xl),Wc=a(xl),Bn=n(xl,"P",{"data-svelte-h":!0}),h(Bn)!=="svelte-5i43m6"&&(Bn.textContent=pm),xl.forEach(t),ji=a(e),Je=n(e,"H2",{class:!0});var Cl=m(Je);_t=n(Cl,"A",{id:!0,class:!0,href:!0});var Bh=m(_t);da=n(Bh,"SPAN",{});var Eh=m(da);g(sr.$$.fragment,Eh),Eh.forEach(t),Bh.forEach(t),Nc=a(Cl),En=n(Cl,"SPAN",{"data-svelte-h":!0}),h(En)!=="svelte-8xsmg1"&&(En.textContent=mm),Cl.forEach(t),Ji=a(e),Fe=n(e,"DIV",{class:!0});var kl=m(Fe);g(ar.$$.fragment,kl),Bc=a(kl),qn=n(kl,"P",{"data-svelte-h":!0}),h(qn)!=="svelte-ker3kf"&&(qn.innerHTML=hm),kl.forEach(t),Fi=a(e),Ue=n(e,"H2",{class:!0});var $l=m(Ue);yt=n($l,"A",{id:!0,class:!0,href:!0});var qh=m(yt);pa=n(qh,"SPAN",{});var Gh=m(pa);g(ir.$$.fragment,Gh),Gh.forEach(t),qh.forEach(t),Ec=a($l),Gn=n($l,"SPAN",{"data-svelte-h":!0}),h(Gn)!=="svelte-u9qr4c"&&(Gn.textContent=um),$l.forEach(t),Ui=a(e),K=n(e,"DIV",{class:!0});var Vs=m(K);g(lr.$$.fragment,Vs),qc=a(Vs),Hn=n(Vs,"P",{"data-svelte-h":!0}),h(Hn)!=="svelte-bcnwvf"&&(Hn.innerHTML=gm),Gc=a(Vs),An=n(Vs,"P",{"data-svelte-h":!0}),h(An)!=="svelte-1hdadgl"&&(An.textContent=fm),Vs.forEach(t),Ii=a(e),Ie=n(e,"H2",{class:!0});var jl=m(Ie);bt=n(jl,"A",{id:!0,class:!0,href:!0});var Hh=m(bt);ma=n(Hh,"SPAN",{});var Ah=m(ma);g(cr.$$.fragment,Ah),Ah.forEach(t),Hh.forEach(t),Hc=a(jl),Vn=n(jl,"SPAN",{"data-svelte-h":!0}),h(Vn)!=="svelte-m95edh"&&(Vn.textContent=vm),jl.forEach(t),Zi=a(e),Ze=n(e,"DIV",{class:!0});var Jl=m(Ze);g(dr.$$.fragment,Jl),Ac=a(Jl),Ln=n(Jl,"P",{"data-svelte-h":!0}),h(Ln)!=="svelte-ko0545"&&(Ln.textContent=_m),Jl.forEach(t),zi=a(e),ze=n(e,"H2",{class:!0});var Fl=m(ze);Mt=n(Fl,"A",{id:!0,class:!0,href:!0});var Vh=m(Mt);ha=n(Vh,"SPAN",{});var Lh=m(ha);g(pr.$$.fragment,Lh),Lh.forEach(t),Vh.forEach(t),Vc=a(Fl),Dn=n(Fl,"SPAN",{"data-svelte-h":!0}),h(Dn)!=="svelte-1qad96s"&&(Dn.textContent=ym),Fl.forEach(t),Wi=a(e),We=n(e,"DIV",{class:!0});var Ul=m(We);g(mr.$$.fragment,Ul),Lc=a(Ul),Rn=n(Ul,"P",{"data-svelte-h":!0}),h(Rn)!=="svelte-19fogj5"&&(Rn.textContent=bm),Ul.forEach(t),Ni=a(e),Ne=n(e,"H2",{class:!0});var Il=m(Ne);wt=n(Il,"A",{id:!0,class:!0,href:!0});var Dh=m(wt);ua=n(Dh,"SPAN",{});var Rh=m(ua);g(hr.$$.fragment,Rh),Rh.forEach(t),Dh.forEach(t),Dc=a(Il),Xn=n(Il,"SPAN",{"data-svelte-h":!0}),h(Xn)!=="svelte-1de6m1o"&&(Xn.textContent=Mm),Il.forEach(t),Bi=a(e),Be=n(e,"DIV",{class:!0});var Zl=m(Be);g(ur.$$.fragment,Zl),Rc=a(Zl),Sn=n(Zl,"P",{"data-svelte-h":!0}),h(Sn)!=="svelte-1kv6g6a"&&(Sn.textContent=wm),Zl.forEach(t),Ei=a(e),Ee=n(e,"H2",{class:!0});var zl=m(Ee);Tt=n(zl,"A",{id:!0,class:!0,href:!0});var Xh=m(Tt);ga=n(Xh,"SPAN",{});var Sh=m(ga);g(gr.$$.fragment,Sh),Sh.forEach(t),Xh.forEach(t),Xc=a(zl),On=n(zl,"SPAN",{"data-svelte-h":!0}),h(On)!=="svelte-1j6cnxe"&&(On.textContent=Tm),zl.forEach(t),qi=a(e),qe=n(e,"DIV",{class:!0});var Wl=m(qe);g(fr.$$.fragment,Wl),Sc=a(Wl),Yn=n(Wl,"P",{"data-svelte-h":!0}),h(Yn)!=="svelte-16bd8vx"&&(Yn.textContent=Pm),Wl.forEach(t),Gi=a(e),Ge=n(e,"H2",{class:!0});var Nl=m(Ge);Pt=n(Nl,"A",{id:!0,class:!0,href:!0});var Oh=m(Pt);fa=n(Oh,"SPAN",{});var Yh=m(fa);g(vr.$$.fragment,Yh),Yh.forEach(t),Oh.forEach(t),Oc=a(Nl),Qn=n(Nl,"SPAN",{"data-svelte-h":!0}),h(Qn)!=="svelte-1txgjqh"&&(Qn.textContent=xm),Nl.forEach(t),Hi=a(e),ee=n(e,"DIV",{class:!0});var Ls=m(ee);g(_r.$$.fragment,Ls),Yc=a(Ls),Kn=n(Ls,"P",{"data-svelte-h":!0}),h(Kn)!=="svelte-1nfzg5j"&&(Kn.innerHTML=Cm),Qc=a(Ls),N=n(Ls,"DIV",{class:!0});var Ot=m(N);g(yr.$$.fragment,Ot),Kc=a(Ot),es=n(Ot,"P",{"data-svelte-h":!0}),h(es)!=="svelte-b5cgfc"&&(es.innerHTML=km),ed=a(Ot),g(xt.$$.fragment,Ot),td=a(Ot),g(Ct.$$.fragment,Ot),Ot.forEach(t),Ls.forEach(t),Ai=a(e),He=n(e,"H2",{class:!0});var Bl=m(He);kt=n(Bl,"A",{id:!0,class:!0,href:!0});var Qh=m(kt);va=n(Qh,"SPAN",{});var Kh=m(va);g(br.$$.fragment,Kh),Kh.forEach(t),Qh.forEach(t),od=a(Bl),ts=n(Bl,"SPAN",{"data-svelte-h":!0}),h(ts)!=="svelte-rxrimp"&&(ts.textContent=$m),Bl.forEach(t),Vi=a(e),te=n(e,"DIV",{class:!0});var Ds=m(te);g(Mr.$$.fragment,Ds),rd=a(Ds),os=n(Ds,"P",{"data-svelte-h":!0}),h(os)!=="svelte-15ycigb"&&(os.innerHTML=jm),nd=a(Ds),B=n(Ds,"DIV",{class:!0});var Yt=m(B);g(wr.$$.fragment,Yt),sd=a(Yt),rs=n(Yt,"P",{"data-svelte-h":!0}),h(rs)!=="svelte-5vf754"&&(rs.innerHTML=Jm),ad=a(Yt),g($t.$$.fragment,Yt),id=a(Yt),g(jt.$$.fragment,Yt),Yt.forEach(t),Ds.forEach(t),Li=a(e),Ae=n(e,"H2",{class:!0});var El=m(Ae);Jt=n(El,"A",{id:!0,class:!0,href:!0});var eu=m(Jt);_a=n(eu,"SPAN",{});var tu=m(_a);g(Tr.$$.fragment,tu),tu.forEach(t),eu.forEach(t),ld=a(El),ns=n(El,"SPAN",{"data-svelte-h":!0}),h(ns)!=="svelte-66l6b0"&&(ns.textContent=Fm),El.forEach(t),Di=a(e),oe=n(e,"DIV",{class:!0});var Rs=m(oe);g(Pr.$$.fragment,Rs),cd=a(Rs),ss=n(Rs,"P",{"data-svelte-h":!0}),h(ss)!=="svelte-a1b1mu"&&(ss.innerHTML=Um),dd=a(Rs),E=n(Rs,"DIV",{class:!0});var Qt=m(E);g(xr.$$.fragment,Qt),pd=a(Qt),as=n(Qt,"P",{"data-svelte-h":!0}),h(as)!=="svelte-1lpxekm"&&(as.innerHTML=Im),md=a(Qt),g(Ft.$$.fragment,Qt),hd=a(Qt),g(Ut.$$.fragment,Qt),Qt.forEach(t),Rs.forEach(t),Ri=a(e),Ve=n(e,"H2",{class:!0});var ql=m(Ve);It=n(ql,"A",{id:!0,class:!0,href:!0});var ou=m(It);ya=n(ou,"SPAN",{});var ru=m(ya);g(Cr.$$.fragment,ru),ru.forEach(t),ou.forEach(t),ud=a(ql),is=n(ql,"SPAN",{"data-svelte-h":!0}),h(is)!=="svelte-s2xv73"&&(is.textContent=Zm),ql.forEach(t),Xi=a(e),J=n(e,"DIV",{class:!0});var L=m(J);g(kr.$$.fragment,L),gd=a(L),ls=n(L,"P",{"data-svelte-h":!0}),h(ls)!=="svelte-14sixf"&&(ls.textContent=zm),fd=a(L),cs=n(L,"P",{"data-svelte-h":!0}),h(cs)!=="svelte-7wi9f7"&&(cs.textContent=Wm),vd=a(L),ds=n(L,"P",{"data-svelte-h":!0}),h(ds)!=="svelte-h0l2nw"&&(ds.innerHTML=Nm),_d=a(L),ps=n(L,"P",{"data-svelte-h":!0}),h(ps)!=="svelte-68lg8f"&&(ps.innerHTML=Bm),yd=a(L),q=n(L,"DIV",{class:!0});var Kt=m(q);g($r.$$.fragment,Kt),bd=a(Kt),ms=n(Kt,"P",{"data-svelte-h":!0}),h(ms)!=="svelte-12thtu8"&&(ms.innerHTML=Em),Md=a(Kt),g(Zt.$$.fragment,Kt),wd=a(Kt),g(zt.$$.fragment,Kt),Kt.forEach(t),L.forEach(t),Si=a(e),Le=n(e,"H2",{class:!0});var Gl=m(Le);Wt=n(Gl,"A",{id:!0,class:!0,href:!0});var nu=m(Wt);ba=n(nu,"SPAN",{});var su=m(ba);g(jr.$$.fragment,su),su.forEach(t),nu.forEach(t),Td=a(Gl),hs=n(Gl,"SPAN",{"data-svelte-h":!0}),h(hs)!=="svelte-thnvey"&&(hs.textContent=qm),Gl.forEach(t),Oi=a(e),F=n(e,"DIV",{class:!0});var D=m(F);g(Jr.$$.fragment,D),Pd=a(D),us=n(D,"P",{"data-svelte-h":!0}),h(us)!=="svelte-14sixf"&&(us.textContent=Gm),xd=a(D),gs=n(D,"P",{"data-svelte-h":!0}),h(gs)!=="svelte-8ozzz2"&&(gs.textContent=Hm),Cd=a(D),fs=n(D,"P",{"data-svelte-h":!0}),h(fs)!=="svelte-1tlje1"&&(fs.innerHTML=Am),kd=a(D),vs=n(D,"P",{"data-svelte-h":!0}),h(vs)!=="svelte-68lg8f"&&(vs.innerHTML=Vm),$d=a(D),G=n(D,"DIV",{class:!0});var eo=m(G);g(Fr.$$.fragment,eo),jd=a(eo),_s=n(eo,"P",{"data-svelte-h":!0}),h(_s)!=="svelte-8agupi"&&(_s.innerHTML=Lm),Jd=a(eo),g(Nt.$$.fragment,eo),Fd=a(eo),g(Bt.$$.fragment,eo),eo.forEach(t),D.forEach(t),Yi=a(e),De=n(e,"H2",{class:!0});var Hl=m(De);Et=n(Hl,"A",{id:!0,class:!0,href:!0});var au=m(Et);Ma=n(au,"SPAN",{});var iu=m(Ma);g(Ur.$$.fragment,iu),iu.forEach(t),au.forEach(t),Ud=a(Hl),ys=n(Hl,"SPAN",{"data-svelte-h":!0}),h(ys)!=="svelte-66zcqh"&&(ys.textContent=Dm),Hl.forEach(t),Qi=a(e),U=n(e,"DIV",{class:!0});var R=m(U);g(Ir.$$.fragment,R),Id=a(R),bs=n(R,"P",{"data-svelte-h":!0}),h(bs)!=="svelte-14sixf"&&(bs.textContent=Rm),Zd=a(R),Ms=n(R,"P",{"data-svelte-h":!0}),h(Ms)!=="svelte-tp3lrm"&&(Ms.textContent=Xm),zd=a(R),ws=n(R,"P",{"data-svelte-h":!0}),h(ws)!=="svelte-1yl9nuo"&&(ws.innerHTML=Sm),Wd=a(R),Ts=n(R,"P",{"data-svelte-h":!0}),h(Ts)!=="svelte-68lg8f"&&(Ts.innerHTML=Om),Nd=a(R),H=n(R,"DIV",{class:!0});var to=m(H);g(Zr.$$.fragment,to),Bd=a(to),Ps=n(to,"P",{"data-svelte-h":!0}),h(Ps)!=="svelte-9nu5a8"&&(Ps.innerHTML=Ym),Ed=a(to),g(qt.$$.fragment,to),qd=a(to),g(Gt.$$.fragment,to),to.forEach(t),R.forEach(t),Ki=a(e),Re=n(e,"H2",{class:!0});var Al=m(Re);Ht=n(Al,"A",{id:!0,class:!0,href:!0});var lu=m(Ht);wa=n(lu,"SPAN",{});var cu=m(wa);g(zr.$$.fragment,cu),cu.forEach(t),lu.forEach(t),Gd=a(Al),xs=n(Al,"SPAN",{"data-svelte-h":!0}),h(xs)!=="svelte-11j90mp"&&(xs.textContent=Qm),Al.forEach(t),el=a(e),Z=n(e,"DIV",{class:!0});var re=m(Z);g(Wr.$$.fragment,re),Hd=a(re),Cs=n(re,"P",{"data-svelte-h":!0}),h(Cs)!=="svelte-1t6byai"&&(Cs.innerHTML=Km),Ad=a(re),ks=n(re,"P",{"data-svelte-h":!0}),h(ks)!=="svelte-15z6y2c"&&(ks.textContent=eh),Vd=a(re),$s=n(re,"P",{"data-svelte-h":!0}),h($s)!=="svelte-68lg8f"&&($s.innerHTML=th),Ld=a(re),A=n(re,"DIV",{class:!0});var oo=m(A);g(Nr.$$.fragment,oo),Dd=a(oo),js=n(oo,"P",{"data-svelte-h":!0}),h(js)!=="svelte-1yavp68"&&(js.innerHTML=oh),Rd=a(oo),g(At.$$.fragment,oo),Xd=a(oo),g(Vt.$$.fragment,oo),oo.forEach(t),re.forEach(t),tl=a(e),Xe=n(e,"H2",{class:!0});var Vl=m(Xe);Lt=n(Vl,"A",{id:!0,class:!0,href:!0});var du=m(Lt);Ta=n(du,"SPAN",{});var pu=m(Ta);g(Br.$$.fragment,pu),pu.forEach(t),du.forEach(t),Sd=a(Vl),Js=n(Vl,"SPAN",{"data-svelte-h":!0}),h(Js)!=="svelte-j6a1an"&&(Js.textContent=rh),Vl.forEach(t),ol=a(e),$=n(e,"DIV",{class:!0});var j=m($);g(Er.$$.fragment,j),Od=a(j),Fs=n(j,"P",{"data-svelte-h":!0}),h(Fs)!=="svelte-1oaen3m"&&(Fs.textContent=nh),Yd=a(j),Us=n(j,"P",{"data-svelte-h":!0}),h(Us)!=="svelte-qfu8hc"&&(Us.innerHTML=sh),Qd=a(j),Is=n(j,"P",{"data-svelte-h":!0}),h(Is)!=="svelte-1fipulp"&&(Is.innerHTML=ah),Kd=a(j),Zs=n(j,"P",{"data-svelte-h":!0}),h(Zs)!=="svelte-79cwk5"&&(Zs.innerHTML=ih),ep=a(j),zs=n(j,"P",{"data-svelte-h":!0}),h(zs)!=="svelte-1hs9g1p"&&(zs.innerHTML=lh),tp=a(j),Ws=n(j,"P",{"data-svelte-h":!0}),h(Ws)!=="svelte-1ic9umv"&&(Ws.textContent=ch),op=a(j),Ns=n(j,"P",{"data-svelte-h":!0}),h(Ns)!=="svelte-68lg8f"&&(Ns.innerHTML=dh),rp=a(j),V=n(j,"DIV",{class:!0});var ro=m(V);g(qr.$$.fragment,ro),np=a(ro),Bs=n(ro,"P",{"data-svelte-h":!0}),h(Bs)!=="svelte-xv4rh0"&&(Bs.innerHTML=ph),sp=a(ro),g(Dt.$$.fragment,ro),ap=a(ro),g(Rt.$$.fragment,ro),ro.forEach(t),j.forEach(t),rl=a(e),Pa=n(e,"P",{}),m(Pa).forEach(t),this.h()},h(){c(d,"name","hf:doc:metadata"),c(d,"content",JSON.stringify(Wu)),c(p,"id","perceiver"),c(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(p,"href","#perceiver"),c(T,"class","relative group"),c(Ye,"id","overview"),c(Ye,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ye,"href","#overview"),c(ne,"class","relative group"),hu(Qe.src,_p="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/perceiver_architecture.jpg")||c(Qe,"src",_p),c(Qe,"alt","drawing"),c(Qe,"width","600"),c(Ke,"id","documentation-resources"),c(Ke,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ke,"href","#documentation-resources"),c(se,"class","relative group"),c(et,"id","transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput"),c(et,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(et,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput"),c(ae,"class","relative group"),c(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(tt,"id","transformers.PerceiverConfig"),c(tt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(tt,"href","#transformers.PerceiverConfig"),c(pe,"class","relative group"),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(rt,"id","transformers.PerceiverTokenizer"),c(rt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(rt,"href","#transformers.PerceiverTokenizer"),c(me,"class","relative group"),c(nt,"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(st,"id","transformers.PerceiverFeatureExtractor"),c(st,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(st,"href","#transformers.PerceiverFeatureExtractor"),c(he,"class","relative group"),c(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(it,"id","transformers.PerceiverImageProcessor"),c(it,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(it,"href","#transformers.PerceiverImageProcessor"),c(ge,"class","relative group"),c(lt,"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(ct,"id","transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor"),c(ct,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ct,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor"),c(fe,"class","relative group"),c(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(dt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor"),c(dt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(dt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor"),c(ve,"class","relative group"),c(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(pt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor"),c(pt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(pt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor"),c(_e,"class","relative group"),c(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(mt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor"),c(mt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(mt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor"),c(be,"class","relative group"),c(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ht,"id","transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor"),c(ht,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ht,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor"),c(we,"class","relative group"),c(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ut,"id","transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder"),c(ut,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ut,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder"),c(Te,"class","relative group"),c(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(gt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder"),c(gt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(gt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder"),c(xe,"class","relative group"),c(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(ft,"id","transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder"),c(ft,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(ft,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder"),c(Ce,"class","relative group"),c(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(vt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder"),c(vt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(vt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder"),c($e,"class","relative group"),c(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(_t,"id","transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder"),c(_t,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(_t,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder"),c(Je,"class","relative group"),c(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(yt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder"),c(yt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(yt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder"),c(Ue,"class","relative group"),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(bt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor"),c(bt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(bt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor"),c(Ie,"class","relative group"),c(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Mt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor"),c(Mt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Mt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor"),c(ze,"class","relative group"),c(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(wt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor"),c(wt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(wt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor"),c(Ne,"class","relative group"),c(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Tt,"id","transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor"),c(Tt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Tt,"href","#transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor"),c(Ee,"class","relative group"),c(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Pt,"id","transformers.PerceiverModel"),c(Pt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Pt,"href","#transformers.PerceiverModel"),c(Ge,"class","relative group"),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"),c(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(kt,"id","transformers.PerceiverForMaskedLM"),c(kt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(kt,"href","#transformers.PerceiverForMaskedLM"),c(He,"class","relative group"),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(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Jt,"id","transformers.PerceiverForSequenceClassification"),c(Jt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Jt,"href","#transformers.PerceiverForSequenceClassification"),c(Ae,"class","relative group"),c(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(It,"id","transformers.PerceiverForImageClassificationLearned"),c(It,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(It,"href","#transformers.PerceiverForImageClassificationLearned"),c(Ve,"class","relative group"),c(q,"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(Wt,"id","transformers.PerceiverForImageClassificationFourier"),c(Wt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Wt,"href","#transformers.PerceiverForImageClassificationFourier"),c(Le,"class","relative group"),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(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(Et,"id","transformers.PerceiverForImageClassificationConvProcessing"),c(Et,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Et,"href","#transformers.PerceiverForImageClassificationConvProcessing"),c(De,"class","relative group"),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(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),c(Ht,"id","transformers.PerceiverForOpticalFlow"),c(Ht,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Ht,"href","#transformers.PerceiverForOpticalFlow"),c(Re,"class","relative group"),c(A,"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(Lt,"id","transformers.PerceiverForMultimodalAutoencoding"),c(Lt,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),c(Lt,"href","#transformers.PerceiverForMultimodalAutoencoding"),c(Xe,"class","relative group"),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($,"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,i){o(document.head,d),l(e,w,i),l(e,b,i),l(e,M,i),l(e,T,i),o(T,p),o(p,x),f(so,x,null),o(T,Ll),o(T,Or),l(e,Ia,i),l(e,ne,i),o(ne,Ye),o(Ye,Xs),f(ao,Xs,null),o(ne,Dl),o(ne,Yr),l(e,Za,i),l(e,io,i),l(e,za,i),l(e,lo,i),l(e,Wa,i),l(e,co,i),l(e,Na,i),l(e,po,i),l(e,Ba,i),l(e,mo,i),l(e,Ea,i),l(e,ho,i),l(e,qa,i),l(e,uo,i),l(e,Ga,i),l(e,go,i),l(e,Ha,i),l(e,fo,i),l(e,Aa,i),l(e,Qe,i),l(e,Va,i),l(e,vo,i),l(e,La,i),l(e,_o,i),l(e,Da,i),l(e,yo,i),l(e,Ra,i),l(e,bo,i),l(e,Xa,i),l(e,Mo,i),l(e,Sa,i),l(e,wo,i),l(e,Oa,i),l(e,se,i),o(se,Ke),o(Ke,Ss),f(To,Ss,null),o(se,Rl),o(se,Qr),l(e,Ya,i),l(e,Po,i),l(e,Qa,i),l(e,ae,i),o(ae,et),o(et,Os),f(xo,Os,null),o(ae,Xl),o(ae,Kr),l(e,Ka,i),l(e,ie,i),f(Co,ie,null),o(ie,Sl),o(ie,en),l(e,ei,i),l(e,le,i),f(ko,le,null),o(le,Ol),o(le,tn),l(e,ti,i),l(e,ce,i),f($o,ce,null),o(ce,Yl),o(ce,on),l(e,oi,i),l(e,de,i),f(jo,de,null),o(de,Ql),o(de,rn),l(e,ri,i),l(e,pe,i),o(pe,tt),o(tt,Ys),f(Jo,Ys,null),o(pe,Kl),o(pe,nn),l(e,ni,i),l(e,z,i),f(Fo,z,null),o(z,ec),o(z,sn),o(z,tc),o(z,an),o(z,oc),f(ot,z,null),l(e,si,i),l(e,me,i),o(me,rt),o(rt,Qs),f(Uo,Qs,null),o(me,rc),o(me,ln),l(e,ai,i),l(e,W,i),f(Io,W,null),o(W,nc),o(W,cn),o(W,sc),o(W,dn),o(W,ac),o(W,nt),f(Zo,nt,null),o(nt,ic),o(nt,pn),l(e,ii,i),l(e,he,i),o(he,st),o(st,Ks),f(zo,Ks,null),o(he,lc),o(he,mn),l(e,li,i),l(e,ue,i),f(Wo,ue,null),o(ue,cc),o(ue,at),f(No,at,null),o(at,dc),o(at,hn),l(e,ci,i),l(e,ge,i),o(ge,it),o(it,ea),f(Bo,ea,null),o(ge,pc),o(ge,un),l(e,di,i),l(e,X,i),f(Eo,X,null),o(X,mc),o(X,gn),o(X,hc),o(X,lt),f(qo,lt,null),o(lt,uc),o(lt,fn),l(e,pi,i),l(e,fe,i),o(fe,ct),o(ct,ta),f(Go,ta,null),o(fe,gc),o(fe,vn),l(e,mi,i),l(e,S,i),f(Ho,S,null),o(S,fc),o(S,_n),o(S,vc),o(S,yn),l(e,hi,i),l(e,ve,i),o(ve,dt),o(dt,oa),f(Ao,oa,null),o(ve,_c),o(ve,bn),l(e,ui,i),l(e,O,i),f(Vo,O,null),o(O,yc),o(O,Mn),o(O,bc),o(O,wn),l(e,gi,i),l(e,_e,i),o(_e,pt),o(pt,ra),f(Lo,ra,null),o(_e,Mc),o(_e,Tn),l(e,fi,i),l(e,ye,i),f(Do,ye,null),o(ye,wc),o(ye,Pn),l(e,vi,i),l(e,be,i),o(be,mt),o(mt,na),f(Ro,na,null),o(be,Tc),o(be,xn),l(e,_i,i),l(e,Me,i),f(Xo,Me,null),o(Me,Pc),o(Me,Cn),l(e,yi,i),l(e,we,i),o(we,ht),o(ht,sa),f(So,sa,null),o(we,xc),o(we,kn),l(e,bi,i),l(e,Y,i),f(Oo,Y,null),o(Y,Cc),o(Y,$n),o(Y,kc),o(Y,jn),l(e,Mi,i),l(e,Te,i),o(Te,ut),o(ut,aa),f(Yo,aa,null),o(Te,$c),o(Te,Jn),l(e,wi,i),l(e,Pe,i),f(Qo,Pe,null),o(Pe,jc),o(Pe,Fn),l(e,Ti,i),l(e,xe,i),o(xe,gt),o(gt,ia),f(Ko,ia,null),o(xe,Jc),o(xe,Un),l(e,Pi,i),l(e,Q,i),f(er,Q,null),o(Q,Fc),o(Q,In),o(Q,Uc),o(Q,Zn),l(e,xi,i),l(e,Ce,i),o(Ce,ft),o(ft,la),f(tr,la,null),o(Ce,Ic),o(Ce,zn),l(e,Ci,i),l(e,ke,i),f(or,ke,null),o(ke,Zc),o(ke,Wn),l(e,ki,i),l(e,$e,i),o($e,vt),o(vt,ca),f(rr,ca,null),o($e,zc),o($e,Nn),l(e,$i,i),l(e,je,i),f(nr,je,null),o(je,Wc),o(je,Bn),l(e,ji,i),l(e,Je,i),o(Je,_t),o(_t,da),f(sr,da,null),o(Je,Nc),o(Je,En),l(e,Ji,i),l(e,Fe,i),f(ar,Fe,null),o(Fe,Bc),o(Fe,qn),l(e,Fi,i),l(e,Ue,i),o(Ue,yt),o(yt,pa),f(ir,pa,null),o(Ue,Ec),o(Ue,Gn),l(e,Ui,i),l(e,K,i),f(lr,K,null),o(K,qc),o(K,Hn),o(K,Gc),o(K,An),l(e,Ii,i),l(e,Ie,i),o(Ie,bt),o(bt,ma),f(cr,ma,null),o(Ie,Hc),o(Ie,Vn),l(e,Zi,i),l(e,Ze,i),f(dr,Ze,null),o(Ze,Ac),o(Ze,Ln),l(e,zi,i),l(e,ze,i),o(ze,Mt),o(Mt,ha),f(pr,ha,null),o(ze,Vc),o(ze,Dn),l(e,Wi,i),l(e,We,i),f(mr,We,null),o(We,Lc),o(We,Rn),l(e,Ni,i),l(e,Ne,i),o(Ne,wt),o(wt,ua),f(hr,ua,null),o(Ne,Dc),o(Ne,Xn),l(e,Bi,i),l(e,Be,i),f(ur,Be,null),o(Be,Rc),o(Be,Sn),l(e,Ei,i),l(e,Ee,i),o(Ee,Tt),o(Tt,ga),f(gr,ga,null),o(Ee,Xc),o(Ee,On),l(e,qi,i),l(e,qe,i),f(fr,qe,null),o(qe,Sc),o(qe,Yn),l(e,Gi,i),l(e,Ge,i),o(Ge,Pt),o(Pt,fa),f(vr,fa,null),o(Ge,Oc),o(Ge,Qn),l(e,Hi,i),l(e,ee,i),f(_r,ee,null),o(ee,Yc),o(ee,Kn),o(ee,Qc),o(ee,N),f(yr,N,null),o(N,Kc),o(N,es),o(N,ed),f(xt,N,null),o(N,td),f(Ct,N,null),l(e,Ai,i),l(e,He,i),o(He,kt),o(kt,va),f(br,va,null),o(He,od),o(He,ts),l(e,Vi,i),l(e,te,i),f(Mr,te,null),o(te,rd),o(te,os),o(te,nd),o(te,B),f(wr,B,null),o(B,sd),o(B,rs),o(B,ad),f($t,B,null),o(B,id),f(jt,B,null),l(e,Li,i),l(e,Ae,i),o(Ae,Jt),o(Jt,_a),f(Tr,_a,null),o(Ae,ld),o(Ae,ns),l(e,Di,i),l(e,oe,i),f(Pr,oe,null),o(oe,cd),o(oe,ss),o(oe,dd),o(oe,E),f(xr,E,null),o(E,pd),o(E,as),o(E,md),f(Ft,E,null),o(E,hd),f(Ut,E,null),l(e,Ri,i),l(e,Ve,i),o(Ve,It),o(It,ya),f(Cr,ya,null),o(Ve,ud),o(Ve,is),l(e,Xi,i),l(e,J,i),f(kr,J,null),o(J,gd),o(J,ls),o(J,fd),o(J,cs),o(J,vd),o(J,ds),o(J,_d),o(J,ps),o(J,yd),o(J,q),f($r,q,null),o(q,bd),o(q,ms),o(q,Md),f(Zt,q,null),o(q,wd),f(zt,q,null),l(e,Si,i),l(e,Le,i),o(Le,Wt),o(Wt,ba),f(jr,ba,null),o(Le,Td),o(Le,hs),l(e,Oi,i),l(e,F,i),f(Jr,F,null),o(F,Pd),o(F,us),o(F,xd),o(F,gs),o(F,Cd),o(F,fs),o(F,kd),o(F,vs),o(F,$d),o(F,G),f(Fr,G,null),o(G,jd),o(G,_s),o(G,Jd),f(Nt,G,null),o(G,Fd),f(Bt,G,null),l(e,Yi,i),l(e,De,i),o(De,Et),o(Et,Ma),f(Ur,Ma,null),o(De,Ud),o(De,ys),l(e,Qi,i),l(e,U,i),f(Ir,U,null),o(U,Id),o(U,bs),o(U,Zd),o(U,Ms),o(U,zd),o(U,ws),o(U,Wd),o(U,Ts),o(U,Nd),o(U,H),f(Zr,H,null),o(H,Bd),o(H,Ps),o(H,Ed),f(qt,H,null),o(H,qd),f(Gt,H,null),l(e,Ki,i),l(e,Re,i),o(Re,Ht),o(Ht,wa),f(zr,wa,null),o(Re,Gd),o(Re,xs),l(e,el,i),l(e,Z,i),f(Wr,Z,null),o(Z,Hd),o(Z,Cs),o(Z,Ad),o(Z,ks),o(Z,Vd),o(Z,$s),o(Z,Ld),o(Z,A),f(Nr,A,null),o(A,Dd),o(A,js),o(A,Rd),f(At,A,null),o(A,Xd),f(Vt,A,null),l(e,tl,i),l(e,Xe,i),o(Xe,Lt),o(Lt,Ta),f(Br,Ta,null),o(Xe,Sd),o(Xe,Js),l(e,ol,i),l(e,$,i),f(Er,$,null),o($,Od),o($,Fs),o($,Yd),o($,Us),o($,Qd),o($,Is),o($,Kd),o($,Zs),o($,ep),o($,zs),o($,tp),o($,Ws),o($,op),o($,Ns),o($,rp),o($,V),f(qr,V,null),o(V,np),o(V,Bs),o(V,sp),f(Dt,V,null),o(V,ap),f(Rt,V,null),l(e,rl,i),l(e,Pa,i),nl=!0},p(e,[i]){const Gr={};i&2&&(Gr.$$scope={dirty:i,ctx:e}),ot.$set(Gr);const xa={};i&2&&(xa.$$scope={dirty:i,ctx:e}),xt.$set(xa);const Ca={};i&2&&(Ca.$$scope={dirty:i,ctx:e}),Ct.$set(Ca);const Hr={};i&2&&(Hr.$$scope={dirty:i,ctx:e}),$t.$set(Hr);const ka={};i&2&&(ka.$$scope={dirty:i,ctx:e}),jt.$set(ka);const $a={};i&2&&($a.$$scope={dirty:i,ctx:e}),Ft.$set($a);const Ar={};i&2&&(Ar.$$scope={dirty:i,ctx:e}),Ut.$set(Ar);const ja={};i&2&&(ja.$$scope={dirty:i,ctx:e}),Zt.$set(ja);const Ja={};i&2&&(Ja.$$scope={dirty:i,ctx:e}),zt.$set(Ja);const Vr={};i&2&&(Vr.$$scope={dirty:i,ctx:e}),Nt.$set(Vr);const Fa={};i&2&&(Fa.$$scope={dirty:i,ctx:e}),Bt.$set(Fa);const Ua={};i&2&&(Ua.$$scope={dirty:i,ctx:e}),qt.$set(Ua);const Lr={};i&2&&(Lr.$$scope={dirty:i,ctx:e}),Gt.$set(Lr);const Dr={};i&2&&(Dr.$$scope={dirty:i,ctx:e}),At.$set(Dr);const Rr={};i&2&&(Rr.$$scope={dirty:i,ctx:e}),Vt.$set(Rr);const Xr={};i&2&&(Xr.$$scope={dirty:i,ctx:e}),Dt.$set(Xr);const Sr={};i&2&&(Sr.$$scope={dirty:i,ctx:e}),Rt.$set(Sr)},i(e){nl||(v(so.$$.fragment,e),v(ao.$$.fragment,e),v(To.$$.fragment,e),v(xo.$$.fragment,e),v(Co.$$.fragment,e),v(ko.$$.fragment,e),v($o.$$.fragment,e),v(jo.$$.fragment,e),v(Jo.$$.fragment,e),v(Fo.$$.fragment,e),v(ot.$$.fragment,e),v(Uo.$$.fragment,e),v(Io.$$.fragment,e),v(Zo.$$.fragment,e),v(zo.$$.fragment,e),v(Wo.$$.fragment,e),v(No.$$.fragment,e),v(Bo.$$.fragment,e),v(Eo.$$.fragment,e),v(qo.$$.fragment,e),v(Go.$$.fragment,e),v(Ho.$$.fragment,e),v(Ao.$$.fragment,e),v(Vo.$$.fragment,e),v(Lo.$$.fragment,e),v(Do.$$.fragment,e),v(Ro.$$.fragment,e),v(Xo.$$.fragment,e),v(So.$$.fragment,e),v(Oo.$$.fragment,e),v(Yo.$$.fragment,e),v(Qo.$$.fragment,e),v(Ko.$$.fragment,e),v(er.$$.fragment,e),v(tr.$$.fragment,e),v(or.$$.fragment,e),v(rr.$$.fragment,e),v(nr.$$.fragment,e),v(sr.$$.fragment,e),v(ar.$$.fragment,e),v(ir.$$.fragment,e),v(lr.$$.fragment,e),v(cr.$$.fragment,e),v(dr.$$.fragment,e),v(pr.$$.fragment,e),v(mr.$$.fragment,e),v(hr.$$.fragment,e),v(ur.$$.fragment,e),v(gr.$$.fragment,e),v(fr.$$.fragment,e),v(vr.$$.fragment,e),v(_r.$$.fragment,e),v(yr.$$.fragment,e),v(xt.$$.fragment,e),v(Ct.$$.fragment,e),v(br.$$.fragment,e),v(Mr.$$.fragment,e),v(wr.$$.fragment,e),v($t.$$.fragment,e),v(jt.$$.fragment,e),v(Tr.$$.fragment,e),v(Pr.$$.fragment,e),v(xr.$$.fragment,e),v(Ft.$$.fragment,e),v(Ut.$$.fragment,e),v(Cr.$$.fragment,e),v(kr.$$.fragment,e),v($r.$$.fragment,e),v(Zt.$$.fragment,e),v(zt.$$.fragment,e),v(jr.$$.fragment,e),v(Jr.$$.fragment,e),v(Fr.$$.fragment,e),v(Nt.$$.fragment,e),v(Bt.$$.fragment,e),v(Ur.$$.fragment,e),v(Ir.$$.fragment,e),v(Zr.$$.fragment,e),v(qt.$$.fragment,e),v(Gt.$$.fragment,e),v(zr.$$.fragment,e),v(Wr.$$.fragment,e),v(Nr.$$.fragment,e),v(At.$$.fragment,e),v(Vt.$$.fragment,e),v(Br.$$.fragment,e),v(Er.$$.fragment,e),v(qr.$$.fragment,e),v(Dt.$$.fragment,e),v(Rt.$$.fragment,e),nl=!0)},o(e){_(so.$$.fragment,e),_(ao.$$.fragment,e),_(To.$$.fragment,e),_(xo.$$.fragment,e),_(Co.$$.fragment,e),_(ko.$$.fragment,e),_($o.$$.fragment,e),_(jo.$$.fragment,e),_(Jo.$$.fragment,e),_(Fo.$$.fragment,e),_(ot.$$.fragment,e),_(Uo.$$.fragment,e),_(Io.$$.fragment,e),_(Zo.$$.fragment,e),_(zo.$$.fragment,e),_(Wo.$$.fragment,e),_(No.$$.fragment,e),_(Bo.$$.fragment,e),_(Eo.$$.fragment,e),_(qo.$$.fragment,e),_(Go.$$.fragment,e),_(Ho.$$.fragment,e),_(Ao.$$.fragment,e),_(Vo.$$.fragment,e),_(Lo.$$.fragment,e),_(Do.$$.fragment,e),_(Ro.$$.fragment,e),_(Xo.$$.fragment,e),_(So.$$.fragment,e),_(Oo.$$.fragment,e),_(Yo.$$.fragment,e),_(Qo.$$.fragment,e),_(Ko.$$.fragment,e),_(er.$$.fragment,e),_(tr.$$.fragment,e),_(or.$$.fragment,e),_(rr.$$.fragment,e),_(nr.$$.fragment,e),_(sr.$$.fragment,e),_(ar.$$.fragment,e),_(ir.$$.fragment,e),_(lr.$$.fragment,e),_(cr.$$.fragment,e),_(dr.$$.fragment,e),_(pr.$$.fragment,e),_(mr.$$.fragment,e),_(hr.$$.fragment,e),_(ur.$$.fragment,e),_(gr.$$.fragment,e),_(fr.$$.fragment,e),_(vr.$$.fragment,e),_(_r.$$.fragment,e),_(yr.$$.fragment,e),_(xt.$$.fragment,e),_(Ct.$$.fragment,e),_(br.$$.fragment,e),_(Mr.$$.fragment,e),_(wr.$$.fragment,e),_($t.$$.fragment,e),_(jt.$$.fragment,e),_(Tr.$$.fragment,e),_(Pr.$$.fragment,e),_(xr.$$.fragment,e),_(Ft.$$.fragment,e),_(Ut.$$.fragment,e),_(Cr.$$.fragment,e),_(kr.$$.fragment,e),_($r.$$.fragment,e),_(Zt.$$.fragment,e),_(zt.$$.fragment,e),_(jr.$$.fragment,e),_(Jr.$$.fragment,e),_(Fr.$$.fragment,e),_(Nt.$$.fragment,e),_(Bt.$$.fragment,e),_(Ur.$$.fragment,e),_(Ir.$$.fragment,e),_(Zr.$$.fragment,e),_(qt.$$.fragment,e),_(Gt.$$.fragment,e),_(zr.$$.fragment,e),_(Wr.$$.fragment,e),_(Nr.$$.fragment,e),_(At.$$.fragment,e),_(Vt.$$.fragment,e),_(Br.$$.fragment,e),_(Er.$$.fragment,e),_(qr.$$.fragment,e),_(Dt.$$.fragment,e),_(Rt.$$.fragment,e),nl=!1},d(e){e&&(t(w),t(b),t(M),t(T),t(Ia),t(ne),t(Za),t(io),t(za),t(lo),t(Wa),t(co),t(Na),t(po),t(Ba),t(mo),t(Ea),t(ho),t(qa),t(uo),t(Ga),t(go),t(Ha),t(fo),t(Aa),t(Qe),t(Va),t(vo),t(La),t(_o),t(Da),t(yo),t(Ra),t(bo),t(Xa),t(Mo),t(Sa),t(wo),t(Oa),t(se),t(Ya),t(Po),t(Qa),t(ae),t(Ka),t(ie),t(ei),t(le),t(ti),t(ce),t(oi),t(de),t(ri),t(pe),t(ni),t(z),t(si),t(me),t(ai),t(W),t(ii),t(he),t(li),t(ue),t(ci),t(ge),t(di),t(X),t(pi),t(fe),t(mi),t(S),t(hi),t(ve),t(ui),t(O),t(gi),t(_e),t(fi),t(ye),t(vi),t(be),t(_i),t(Me),t(yi),t(we),t(bi),t(Y),t(Mi),t(Te),t(wi),t(Pe),t(Ti),t(xe),t(Pi),t(Q),t(xi),t(Ce),t(Ci),t(ke),t(ki),t($e),t($i),t(je),t(ji),t(Je),t(Ji),t(Fe),t(Fi),t(Ue),t(Ui),t(K),t(Ii),t(Ie),t(Zi),t(Ze),t(zi),t(ze),t(Wi),t(We),t(Ni),t(Ne),t(Bi),t(Be),t(Ei),t(Ee),t(qi),t(qe),t(Gi),t(Ge),t(Hi),t(ee),t(Ai),t(He),t(Vi),t(te),t(Li),t(Ae),t(Di),t(oe),t(Ri),t(Ve),t(Xi),t(J),t(Si),t(Le),t(Oi),t(F),t(Yi),t(De),t(Qi),t(U),t(Ki),t(Re),t(el),t(Z),t(tl),t(Xe),t(ol),t($),t(rl),t(Pa)),t(d),y(so),y(ao),y(To),y(xo),y(Co),y(ko),y($o),y(jo),y(Jo),y(Fo),y(ot),y(Uo),y(Io),y(Zo),y(zo),y(Wo),y(No),y(Bo),y(Eo),y(qo),y(Go),y(Ho),y(Ao),y(Vo),y(Lo),y(Do),y(Ro),y(Xo),y(So),y(Oo),y(Yo),y(Qo),y(Ko),y(er),y(tr),y(or),y(rr),y(nr),y(sr),y(ar),y(ir),y(lr),y(cr),y(dr),y(pr),y(mr),y(hr),y(ur),y(gr),y(fr),y(vr),y(_r),y(yr),y(xt),y(Ct),y(br),y(Mr),y(wr),y($t),y(jt),y(Tr),y(Pr),y(xr),y(Ft),y(Ut),y(Cr),y(kr),y($r),y(Zt),y(zt),y(jr),y(Jr),y(Fr),y(Nt),y(Bt),y(Ur),y(Ir),y(Zr),y(qt),y(Gt),y(zr),y(Wr),y(Nr),y(At),y(Vt),y(Br),y(Er),y(qr),y(Dt),y(Rt)}}}const Wu={local:"perceiver",sections:[{local:"overview",title:"Overview"},{local:"documentation-resources",title:"Documentation resources"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverModelOutput",title:"Perceiver specific outputs"},{local:"transformers.PerceiverConfig",title:"PerceiverConfig"},{local:"transformers.PerceiverTokenizer",title:"PerceiverTokenizer"},{local:"transformers.PerceiverFeatureExtractor",title:"PerceiverFeatureExtractor"},{local:"transformers.PerceiverImageProcessor",title:"PerceiverImageProcessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverTextPreprocessor",title:"PerceiverTextPreprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverImagePreprocessor",title:"PerceiverImagePreprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverOneHotPreprocessor",title:"PerceiverOneHotPreprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPreprocessor",title:"PerceiverAudioPreprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPreprocessor",title:"PerceiverMultimodalPreprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionDecoder",title:"PerceiverProjectionDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicDecoder",title:"PerceiverBasicDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationDecoder",title:"PerceiverClassificationDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverOpticalFlowDecoder",title:"PerceiverOpticalFlowDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverBasicVideoAutoencodingDecoder",title:"PerceiverBasicVideoAutoencodingDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalDecoder",title:"PerceiverMultimodalDecoder"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverProjectionPostprocessor",title:"PerceiverProjectionPostprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverAudioPostprocessor",title:"PerceiverAudioPostprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverClassificationPostprocessor",title:"PerceiverClassificationPostprocessor"},{local:"transformers.models.perceiver.modeling_perceiver.PerceiverMultimodalPostprocessor",title:"PerceiverMultimodalPostprocessor"},{local:"transformers.PerceiverModel",title:"PerceiverModel"},{local:"transformers.PerceiverForMaskedLM",title:"PerceiverForMaskedLM"},{local:"transformers.PerceiverForSequenceClassification",title:"PerceiverForSequenceClassification"},{local:"transformers.PerceiverForImageClassificationLearned",title:"PerceiverForImageClassificationLearned"},{local:"transformers.PerceiverForImageClassificationFourier",title:"PerceiverForImageClassificationFourier"},{local:"transformers.PerceiverForImageClassificationConvProcessing",title:"PerceiverForImageClassificationConvProcessing"},{local:"transformers.PerceiverForOpticalFlow",title:"PerceiverForOpticalFlow"},{local:"transformers.PerceiverForMultimodalAutoencoding",title:"PerceiverForMultimodalAutoencoding"}],title:"Perceiver"};function Nu(C){return uu(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Lu extends gu{constructor(d){super(),fu(this,d,Nu,zu,mu,{})}}export{Lu as component};
