import{s as va,o as $a,n as E}from"../chunks/scheduler.9bc65507.js";import{S as wa,i as xa,g as c,s as a,r as u,A as ja,h as p,f as s,c as r,j as $,u as f,x as C,k as w,y as n,a as m,v as h,d as g,t as _,w as b}from"../chunks/index.707bf1b6.js";import{T as Dt}from"../chunks/Tip.c2ecdbf4.js";import{D as x}from"../chunks/Docstring.86474e80.js";import{C as se}from"../chunks/CodeBlock.54a9f38d.js";import{E as re}from"../chunks/ExampleCodeBlock.034f3a73.js";import{H as Y,E as ka}from"../chunks/EditOnGithub.922df6ba.js";function Wa(v){let o,T="Example:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENsYXBDb25maWclMkMlMjBDbGFwTW9kZWwlMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQ2xhcENvbmZpZyUyMHdpdGglMjBsYWlvbi1haSUyRmJhc2UlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwQ2xhcENvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMENsYXBNb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwbGFpb24tYWklMkZiYXNlJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBbW9kZWwlMjAlM0QlMjBDbGFwTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmlnJTBBJTBBJTIzJTIwV2UlMjBjYW4lMjBhbHNvJTIwaW5pdGlhbGl6ZSUyMGElMjBDbGFwQ29uZmlnJTIwZnJvbSUyMGElMjBDbGFwVGV4dENvbmZpZyUyMGFuZCUyMGElMjBDbGFwQXVkaW9Db25maWclMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQ2xhcFRleHRDb25maWclMkMlMjBDbGFwQXVkaW9Db25maWclMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQ2xhcFRleHQlMjBhbmQlMjBDbGFwQXVkaW9Db25maWclMjBjb25maWd1cmF0aW9uJTBBY29uZmlnX3RleHQlMjAlM0QlMjBDbGFwVGV4dENvbmZpZygpJTBBY29uZmlnX2F1ZGlvJTIwJTNEJTIwQ2xhcEF1ZGlvQ29uZmlnKCklMEElMEFjb25maWclMjAlM0QlMjBDbGFwQ29uZmlnLmZyb21fdGV4dF9hdWRpb19jb25maWdzKGNvbmZpZ190ZXh0JTJDJTIwY29uZmlnX2F1ZGlvKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ClapConfig, ClapModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ClapConfig with laion-ai/base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ClapConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ClapModel (with random weights) from the laion-ai/base style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapModel(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

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># We can also initialize a ClapConfig from a ClapTextConfig and a ClapAudioConfig</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ClapTextConfig, ClapAudioConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ClapText and ClapAudioConfig configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>config_text = ClapTextConfig()
<span class="hljs-meta">&gt;&gt;&gt; </span>config_audio = ClapAudioConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span>config = ClapConfig.from_text_audio_configs(config_text, config_audio)`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-11lpom8"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function za(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENsYXBUZXh0Q29uZmlnJTJDJTIwQ2xhcFRleHRNb2RlbCUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBDTEFQJTIwdGV4dCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwQ2xhcFRleHRDb25maWcoKSUwQSUwQSUyMyUyMEluaXRpYWxpemluZyUyMGElMjBtb2RlbCUyMCh3aXRoJTIwcmFuZG9tJTIwd2VpZ2h0cyklMjBmcm9tJTIwdGhlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQ2xhcFRleHRNb2RlbChjb25maWd1cmF0aW9uKSUwQSUwQSUyMyUyMEFjY2Vzc2luZyUyMHRoZSUyMG1vZGVsJTIwY29uZmlndXJhdGlvbiUwQWNvbmZpZ3VyYXRpb24lMjAlM0QlMjBtb2RlbC5jb25maWc=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ClapTextConfig, ClapTextModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a CLAP text configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ClapTextConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapTextModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Ja(v){let o,T="Example:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENsYXBBdWRpb0NvbmZpZyUyQyUyMENsYXBBdWRpb01vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMENsYXBBdWRpb0NvbmZpZyUyMHdpdGglMjBsYWlvbiUyRmNsYXAtaHRzYXQtZnVzZWQlMjBzdHlsZSUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwQ2xhcEF1ZGlvQ29uZmlnKCklMEElMEElMjMlMjBJbml0aWFsaXppbmclMjBhJTIwQ2xhcEF1ZGlvTW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMGxhaW9uJTJGY2xhcC1odHNhdC1mdXNlZCUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwQ2xhcEF1ZGlvTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ClapAudioConfig, ClapAudioModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ClapAudioConfig with laion/clap-htsat-fused style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = ClapAudioConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a ClapAudioModel (with random weights) from the laion/clap-htsat-fused style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapAudioModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-11lpom8"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Fa(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function Za(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBDbGFwTW9kZWwlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmhmLWludGVybmFsLXRlc3RpbmclMkZhc2hyYXEtZXNjNTAtMS1kb2ctZXhhbXBsZSUyMiklMEFhdWRpb19zYW1wbGUlMjAlM0QlMjBkYXRhc2V0JTVCJTIydHJhaW4lMjIlNUQlNUIlMjJhdWRpbyUyMiU1RCU1QjAlNUQlNUIlMjJhcnJheSUyMiU1RCUwQSUwQW1vZGVsJTIwJTNEJTIwQ2xhcE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRmNsYXAtaHRzYXQtdW5mdXNlZCUyMiklMEFwcm9jZXNzb3IlMjAlM0QlMjBBdXRvUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRmNsYXAtaHRzYXQtdW5mdXNlZCUyMiklMEElMEFpbnB1dF90ZXh0JTIwJTNEJTIwJTVCJTIyU291bmQlMjBvZiUyMGElMjBkb2clMjIlMkMlMjAlMjJTb3VuZCUyMG9mJTIwdmFjY3VtJTIwY2xlYW5lciUyMiU1RCUwQSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3Nvcih0ZXh0JTNEaW5wdXRfdGV4dCUyQyUyMGF1ZGlvcyUzRGF1ZGlvX3NhbXBsZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIlMkMlMjBwYWRkaW5nJTNEVHJ1ZSklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbG9naXRzX3Blcl9hdWRpbyUyMCUzRCUyMG91dHB1dHMubG9naXRzX3Blcl9hdWRpbyUyMCUyMCUyMyUyMHRoaXMlMjBpcyUyMHRoZSUyMGF1ZGlvLXRleHQlMjBzaW1pbGFyaXR5JTIwc2NvcmUlMEFwcm9icyUyMCUzRCUyMGxvZ2l0c19wZXJfYXVkaW8uc29mdG1heChkaW0lM0QtMSklMjAlMjAlMjMlMjB3ZSUyMGNhbiUyMHRha2UlMjB0aGUlMjBzb2Z0bWF4JTIwdG8lMjBnZXQlMjB0aGUlMjBsYWJlbCUyMHByb2JhYmlsaXRpZXM=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, ClapModel

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/ashraq-esc50-1-dog-example&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-number">0</span>][<span class="hljs-string">&quot;array&quot;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapModel.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>input_text = [<span class="hljs-string">&quot;Sound of a dog&quot;</span>, <span class="hljs-string">&quot;Sound of vaccum cleaner&quot;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(text=input_text, audios=audio_sample, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>, padding=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>logits_per_audio = outputs.logits_per_audio  <span class="hljs-comment"># this is the audio-text similarity score</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>probs = logits_per_audio.softmax(dim=-<span class="hljs-number">1</span>)  <span class="hljs-comment"># we can take the softmax to get the label probabilities</span>`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Ua(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function Ea(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBDbGFwTW9kZWwlMEElMEFtb2RlbCUyMCUzRCUyMENsYXBNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCU1QiUyMnRoZSUyMHNvdW5kJTIwb2YlMjBhJTIwY2F0JTIyJTJDJTIwJTIydGhlJTIwc291bmQlMjBvZiUyMGElMjBkb2clMjIlNUQlMkMlMjBwYWRkaW5nJTNEVHJ1ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBdGV4dF9mZWF0dXJlcyUyMCUzRCUyMG1vZGVsLmdldF90ZXh0X2ZlYXR1cmVzKCoqaW5wdXRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, ClapModel

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapModel.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;the sound of a cat&quot;</span>, <span class="hljs-string">&quot;the sound of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>text_features = model.get_text_features(**inputs)`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Ia(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function qa(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9GZWF0dXJlRXh0cmFjdG9yJTJDJTIwQ2xhcE1vZGVsJTBBaW1wb3J0JTIwdG9yY2glMEElMEFtb2RlbCUyMCUzRCUyMENsYXBNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBZmVhdHVyZV9leHRyYWN0b3IlMjAlM0QlMjBBdXRvRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBcmFuZG9tX2F1ZGlvJTIwJTNEJTIwdG9yY2gucmFuZCgoMTZfMDAwKSklMEFpbnB1dHMlMjAlM0QlMjBmZWF0dXJlX2V4dHJhY3RvcihyYW5kb21fYXVkaW8lMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQWF1ZGlvX2ZlYXR1cmVzJTIwJTNEJTIwbW9kZWwuZ2V0X2F1ZGlvX2ZlYXR1cmVzKCoqaW5wdXRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoFeatureExtractor, ClapModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapModel.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>feature_extractor = AutoFeatureExtractor.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>random_audio = torch.rand((<span class="hljs-number">16_000</span>))
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = feature_extractor(random_audio, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_features = model.get_audio_features(**inputs)`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Ga(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function Ba(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBDbGFwVGV4dE1vZGVsV2l0aFByb2plY3Rpb24lMEElMEFtb2RlbCUyMCUzRCUyMENsYXBUZXh0TW9kZWxXaXRoUHJvamVjdGlvbi5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBdG9rZW5pemVyJTIwJTNEJTIwQXV0b1Rva2VuaXplci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LXVuZnVzZWQlMjIpJTBBJTBBaW5wdXRzJTIwJTNEJTIwdG9rZW5pemVyKCU1QiUyMmElMjBzb3VuZCUyMG9mJTIwYSUyMGNhdCUyMiUyQyUyMCUyMmElMjBzb3VuZCUyMG9mJTIwYSUyMGRvZyUyMiU1RCUyQyUyMHBhZGRpbmclM0RUcnVlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBdGV4dF9lbWJlZHMlMjAlM0QlMjBvdXRwdXRzLnRleHRfZW1iZWRz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, ClapTextModelWithProjection

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapTextModelWithProjection.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-unfused&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = tokenizer([<span class="hljs-string">&quot;a sound of a cat&quot;</span>, <span class="hljs-string">&quot;a sound of a dog&quot;</span>], padding=<span class="hljs-literal">True</span>, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>text_embeds = outputs.text_embeds`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Aa(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function Pa(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBDbGFwQXVkaW9Nb2RlbCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmFzaHJhcS1lc2M1MC0xLWRvZy1leGFtcGxlJTIyKSUwQWF1ZGlvX3NhbXBsZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0cmFpbiUyMiU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCMCU1RCU1QiUyMmFycmF5JTIyJTVEJTBBJTBBbW9kZWwlMjAlM0QlMjBDbGFwQXVkaW9Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LWZ1c2VkJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmxhaW9uJTJGY2xhcC1odHNhdC1mdXNlZCUyMiklMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoYXVkaW9zJTNEYXVkaW9fc2FtcGxlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEElMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBbGFzdF9oaWRkZW5fc3RhdGUlMjAlM0QlMjBvdXRwdXRzLmxhc3RfaGlkZGVuX3N0YXRl",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoProcessor, ClapAudioModel

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/ashraq-esc50-1-dog-example&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-number">0</span>][<span class="hljs-string">&quot;array&quot;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapAudioModel.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-fused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-fused&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(audios=audio_sample, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>last_hidden_state = outputs.last_hidden_state`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Ra(v){let o,T=`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(){o=c("p"),o.innerHTML=T},l(d){o=p(d,"P",{"data-svelte-h":!0}),C(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(d,i){m(d,o,i)},p:E,d(d){d&&s(o)}}}function Xa(v){let o,T="Examples:",d,i,M;return i=new se({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENsYXBBdWRpb01vZGVsV2l0aFByb2plY3Rpb24lMkMlMjBDbGFwUHJvY2Vzc29yJTBBJTBBbW9kZWwlMjAlM0QlMjBDbGFwQXVkaW9Nb2RlbFdpdGhQcm9qZWN0aW9uLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRmNsYXAtaHRzYXQtZnVzZWQlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQ2xhcFByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LWZ1c2VkJTIyKSUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmFzaHJhcS1lc2M1MC0xLWRvZy1leGFtcGxlJTIyKSUwQWF1ZGlvX3NhbXBsZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0cmFpbiUyMiU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCMCU1RCU1QiUyMmFycmF5JTIyJTVEJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKGF1ZGlvcyUzRGF1ZGlvX3NhbXBsZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBb3V0cHV0cyUyMCUzRCUyMG1vZGVsKCoqaW5wdXRzKSUwQWF1ZGlvX2VtYmVkcyUyMCUzRCUyMG91dHB1dHMuYXVkaW9fZW1iZWRz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ClapAudioModelWithProjection, ClapProcessor

<span class="hljs-meta">&gt;&gt;&gt; </span>model = ClapAudioModelWithProjection.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-fused&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = ClapProcessor.from_pretrained(<span class="hljs-string">&quot;laion/clap-htsat-fused&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>dataset = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/ashraq-esc50-1-dog-example&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = dataset[<span class="hljs-string">&quot;train&quot;</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-number">0</span>][<span class="hljs-string">&quot;array&quot;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(audios=audio_sample, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>outputs = model(**inputs)
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_embeds = outputs.audio_embeds`,wrap:!1}}),{c(){o=c("p"),o.textContent=T,d=a(),u(i.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),C(o)!=="svelte-kvfsh7"&&(o.textContent=T),d=r(t),f(i.$$.fragment,t)},m(t,y){m(t,o,y),m(t,d,y),h(i,t,y),M=!0},p:E,i(t){M||(g(i.$$.fragment,t),M=!0)},o(t){_(i.$$.fragment,t),M=!1},d(t){t&&(s(o),s(d)),b(i,t)}}}function Na(v){let o,T,d,i,M,t,y,Kt,We,qn=`CLAP モデルは、<a href="https://arxiv.org/pdf/2211.06687.pdf" rel="nofollow">Large Scale Contrastive Language-Audio pretraining with
feature fusion and keyword-to-caption augmentation</a>、Yusong Wu、Ke Chen、Tianyu Zhang、Yuchen Hui、Taylor Berg-Kirkpatrick、Shlomo Dubnov 著。`,eo,ze,Gn="CLAP (Contrastive Language-Audio Pretraining) は、さまざまな (音声、テキスト) ペアでトレーニングされたニューラル ネットワークです。タスクに合わせて直接最適化することなく、音声が与えられた場合に最も関連性の高いテキスト スニペットを予測するように指示できます。 CLAP モデルは、SWINTransformer を使用して log-Mel スペクトログラム入力からオーディオ特徴を取得し、RoBERTa モデルを使用してテキスト特徴を取得します。次に、テキストとオーディオの両方の特徴が、同じ次元の潜在空間に投影されます。投影されたオーディオとテキストの特徴の間のドット積が、同様のスコアとして使用されます。",to,Je,Bn="論文の要約は次のとおりです。",oo,Fe,An="<em>対照学習は、マルチモーダル表現学習の分野で目覚ましい成功を収めています。この論文では、音声データと自然言語記述を組み合わせて音声表現を開発する、対照的な言語音声事前トレーニングのパイプラインを提案します。この目標を達成するために、私たちはまず、さまざまなデータ ソースからの 633,526 個の音声とテキストのペアの大規模なコレクションである LAION-Audio-630K をリリースします。次に、さまざまなオーディオ エンコーダとテキスト エンコーダを考慮して、対照的な言語とオーディオの事前トレーニング モデルを構築します。機能融合メカニズムとキーワードからキャプションへの拡張をモデル設計に組み込んで、モデルが可変長の音声入力を処理できるようにし、パフォーマンスを向上させます。 3 番目に、包括的な実験を実行して、テキストから音声への取得、ゼロショット音声分類、教師付き音声分類の 3 つのタスクにわたってモデルを評価します。結果は、私たちのモデルがテキストから音声への検索タスクにおいて優れたパフォーマンスを達成していることを示しています。オーディオ分類タスクでは、モデルはゼロショット設定で最先端のパフォーマンスを達成し、非ゼロショット設定でもモデルの結果に匹敵するパフォーマンスを得ることができます。 LAION-オーディオ-6</em>",no,Ze,Pn=`このモデルは、<a href="https://huggingface.co/ybelkada" rel="nofollow">Younes Belkada</a> および <a href="https://huggingface.co/ArthurZ" rel="nofollow">Arthur Zucker</a> によって提供されました。
元のコードは <a href="https://github.com/LAION-AI/Clap" rel="nofollow">こちら</a> にあります。`,ao,Ue,ro,k,Ee,Wo,gt,Rn=`<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig">ClapConfig</a> is the configuration class to store the configuration of a <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapModel">ClapModel</a>. It is used to instantiate
a CLAP model according to the specified arguments, defining the text model and audio model configs. Instantiating a
configuration with the defaults will yield a similar configuration to that of the CLAP
<a href="https://huggingface.co/laion/clap-htsat-fused" rel="nofollow">laion/clap-htsat-fused</a> architecture.`,zo,_t,Xn=`Configuration objects inherit from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Jo,le,Fo,ie,Ie,Zo,bt,Nn=`Instantiate a <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig">ClapConfig</a> (or a derived class) from clap text model configuration and clap audio model
configuration.`,so,qe,lo,I,Ge,Uo,Ct,Hn=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel">ClapTextModel</a>. It is used to instantiate a CLAP
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 CLAP
<a href="https://huggingface.co/laion/clap-hsat-fused" rel="nofollow">calp-hsat-fused</a> architecture.`,Eo,Mt,Ln=`Configuration objects inherit from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Io,de,io,Be,co,q,Ae,qo,Tt,Vn=`This is the configuration class to store the configuration of a <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModel">ClapAudioModel</a>. It is used to instantiate a
CLAP audio encoder according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the audio encoder of the CLAP
<a href="https://huggingface.co/laion/clap-htsat-fused" rel="nofollow">laion/clap-htsat-fused</a> architecture.`,Go,yt,Qn=`Configuration objects inherit from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/pr_31031/ja/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Bo,ce,po,Pe,mo,W,Re,Ao,vt,Yn="Constructs a CLAP feature extractor.",Po,$t,Sn=`This feature extractor inherits from <a href="/docs/transformers/pr_31031/ja/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a> which contains
most of the main methods. Users should refer to this superclass for more information regarding those methods.`,Ro,wt,Dn=`This class extracts mel-filter bank features from raw speech using a custom numpy implementation of the <em>Short Time
Fourier Transform</em> (STFT) which should match pytorch’s <code>torch.stft</code> equivalent.`,Xo,pe,Xe,No,xt,On="Serializes this instance to a Python dictionary.",uo,Ne,fo,z,He,Ho,jt,Kn="Constructs a CLAP processor which wraps a CLAP feature extractor and a RoBerta tokenizer into a single processor.",Lo,kt,ea=`<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapProcessor">ClapProcessor</a> offers all the functionalities of <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> and <code>RobertaTokenizerFast</code>. See the
<code>__call__()</code> and <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapProcessor.decode">decode()</a> for more information.`,Vo,me,Le,Qo,Wt,ta=`This method forwards all its arguments to RobertaTokenizerFast’s <a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,Yo,ue,Ve,So,zt,oa=`This method forwards all its arguments to RobertaTokenizerFast’s <a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.decode">decode()</a>. Please refer
to the docstring of this method for more information.`,ho,Qe,go,j,Ye,Do,Jt,na=`This model inherits from <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Oo,Ft,aa=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Ko,R,Se,en,Zt,ra='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',tn,fe,on,he,nn,X,De,an,Ut,sa='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',rn,ge,sn,_e,ln,N,Oe,dn,Et,la='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',cn,be,pn,Ce,_o,Ke,bo,J,et,mn,It,ia=`The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of
cross-attention is added between the self-attention layers, following the architecture described in <em>Attention is
all you need</em>_ by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz
Kaiser and Illia Polosukhin.`,un,qt,da=`To behave as an decoder the model needs to be initialized with the <code>is_decoder</code> argument of the configuration set
to <code>True</code>. To be used in a Seq2Seq model, the model needs to initialized with both <code>is_decoder</code> argument and
<code>add_cross_attention</code> set to <code>True</code>; an <code>encoder_hidden_states</code> is then expected as an input to the forward pass.`,fn,Gt,ca='.. _<em>Attention is all you need</em>: <a href="https://arxiv.org/abs/1706.03762" rel="nofollow">https://arxiv.org/abs/1706.03762</a>',hn,H,tt,gn,Bt,pa=`encoder_hidden_states  (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>, <em>optional</em>):
Sequence of hidden-states at the output of the last layer of the encoder. Used in the cross-attention if
the model is configured as a decoder.
encoder_attention_mask (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>):
Mask to avoid performing attention on the padding token indices of the encoder input. This mask is used in
the cross-attention if the model is configured as a decoder. Mask values selected in <code>[0, 1]</code>:`,_n,At,ma=`<li>1 for tokens that are <strong>not masked</strong>,</li> <li>0 for tokens that are <strong>masked</strong>.
past_key_values (<code>tuple(tuple(torch.FloatTensor))</code> of length <code>config.n_layers</code> with each tuple having 4 tensors of shape <code>(batch_size, num_heads, sequence_length - 1, embed_size_per_head)</code>):
Contains precomputed key and value hidden states of the attention blocks. Can be used to speed up decoding.</li>`,bn,Pt,ua=`If <code>past_key_values</code> are used, the user can optionally input only the last <code>decoder_input_ids</code> (those that
don’t have their past key value states given to this model) of shape <code>(batch_size, 1)</code> instead of all
<code>decoder_input_ids</code> of shape <code>(batch_size, sequence_length)</code>.
use_cache (<code>bool</code>, <em>optional</em>):
If set to <code>True</code>, <code>past_key_values</code> key value states are returned and can be used to speed up decoding (see
<code>past_key_values</code>).`,Co,ot,Mo,F,nt,Cn,Rt,fa="CLAP Text Model with a projection layer on top (a linear layer on top of the pooled output).",Mn,Xt,ha=`This model inherits from <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Tn,Nt,ga=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,yn,L,at,vn,Ht,_a='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModelWithProjection">ClapTextModelWithProjection</a> forward method, overrides the <code>__call__</code> special method.',$n,Me,wn,Te,To,rt,yo,ae,st,xn,V,lt,jn,Lt,ba='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModel">ClapAudioModel</a> forward method, overrides the <code>__call__</code> special method.',kn,ye,Wn,ve,vo,it,$o,Z,dt,zn,Vt,Ca="CLAP Audio Model with a projection layer on top (a linear layer on top of the pooled output).",Jn,Qt,Ma=`This model inherits from <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Fn,Yt,Ta=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Zn,Q,ct,Un,St,ya='The <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModelWithProjection">ClapAudioModelWithProjection</a> forward method, overrides the <code>__call__</code> special method.',En,$e,In,we,wo,pt,xo,Ot,jo;return M=new Y({props:{title:"CLAP",local:"clap",headingTag:"h1"}}),y=new Y({props:{title:"Overview",local:"overview",headingTag:"h2"}}),Ue=new Y({props:{title:"ClapConfig",local:"transformers.ClapConfig",headingTag:"h2"}}),Ee=new x({props:{name:"class transformers.ClapConfig",anchor:"transformers.ClapConfig",parameters:[{name:"text_config",val:" = None"},{name:"audio_config",val:" = None"},{name:"logit_scale_init_value",val:" = 14.285714285714285"},{name:"projection_dim",val:" = 512"},{name:"projection_hidden_act",val:" = 'relu'"},{name:"initializer_factor",val:" = 1.0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ClapConfig.text_config",description:`<strong>text_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary of configuration options used to initialize <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextConfig">ClapTextConfig</a>.`,name:"text_config"},{anchor:"transformers.ClapConfig.audio_config",description:`<strong>audio_config</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Dictionary of configuration options used to initialize <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioConfig">ClapAudioConfig</a>.`,name:"audio_config"},{anchor:"transformers.ClapConfig.logit_scale_init_value",description:`<strong>logit_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to 14.29) &#x2014;
The initial value of the <em>logit_scale</em> parameter. Default is used as per the original CLAP implementation.`,name:"logit_scale_init_value"},{anchor:"transformers.ClapConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimensionality of text and audio projection layers.`,name:"projection_dim"},{anchor:"transformers.ClapConfig.projection_hidden_act",description:`<strong>projection_hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
Activation function for the projection layers.`,name:"projection_hidden_act"},{anchor:"transformers.ClapConfig.initializer_factor",description:`<strong>initializer_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
Factor to scale the initialization of the model weights.`,name:"initializer_factor"},{anchor:"transformers.ClapConfig.kwargs",description:`<strong>kwargs</strong> (<em>optional</em>) &#x2014;
Dictionary of keyword arguments.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/configuration_clap.py#L329"}}),le=new re({props:{anchor:"transformers.ClapConfig.example",$$slots:{default:[Wa]},$$scope:{ctx:v}}}),Ie=new x({props:{name:"from_text_audio_configs",anchor:"transformers.ClapConfig.from_text_audio_configs",parameters:[{name:"text_config",val:": ClapTextConfig"},{name:"audio_config",val:": ClapAudioConfig"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/configuration_clap.py#L417",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>An instance of a configuration object</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig"
>ClapConfig</a></p>
`}}),qe=new Y({props:{title:"ClapTextConfig",local:"transformers.ClapTextConfig",headingTag:"h2"}}),Ge=new x({props:{name:"class transformers.ClapTextConfig",anchor:"transformers.ClapTextConfig",parameters:[{name:"vocab_size",val:" = 50265"},{name:"hidden_size",val:" = 768"},{name:"num_hidden_layers",val:" = 12"},{name:"num_attention_heads",val:" = 12"},{name:"intermediate_size",val:" = 3072"},{name:"hidden_act",val:" = 'gelu'"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"attention_probs_dropout_prob",val:" = 0.1"},{name:"max_position_embeddings",val:" = 514"},{name:"type_vocab_size",val:" = 1"},{name:"initializer_factor",val:" = 1.0"},{name:"layer_norm_eps",val:" = 1e-12"},{name:"projection_dim",val:" = 512"},{name:"pad_token_id",val:" = 1"},{name:"bos_token_id",val:" = 0"},{name:"eos_token_id",val:" = 2"},{name:"position_embedding_type",val:" = 'absolute'"},{name:"use_cache",val:" = True"},{name:"projection_hidden_act",val:" = 'relu'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ClapTextConfig.vocab_size",description:`<strong>vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 30522) &#x2014;
Vocabulary size of the CLAP model. Defines the number of different tokens that can be represented by the
<code>inputs_ids</code> passed when calling <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel">ClapTextModel</a>.`,name:"vocab_size"},{anchor:"transformers.ClapTextConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimensionality of the encoder layers and the pooler layer.`,name:"hidden_size"},{anchor:"transformers.ClapTextConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.ClapTextConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of attention heads for each attention layer in the Transformer encoder.`,name:"num_attention_heads"},{anchor:"transformers.ClapTextConfig.intermediate_size",description:`<strong>intermediate_size</strong> (<code>int</code>, <em>optional</em>, defaults to 3072) &#x2014;
Dimensionality of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in the Transformer encoder.`,name:"intermediate_size"},{anchor:"transformers.ClapTextConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code> or <code>Callable</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;relu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;relu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.ClapTextConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"hidden_dropout_prob"},{anchor:"transformers.ClapTextConfig.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.ClapTextConfig.max_position_embeddings",description:`<strong>max_position_embeddings</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
The maximum sequence length that this 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.ClapTextConfig.type_vocab_size",description:`<strong>type_vocab_size</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
The vocabulary size of the <code>token_type_ids</code> passed when calling <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel">ClapTextModel</a>.`,name:"type_vocab_size"},{anchor:"transformers.ClapTextConfig.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.ClapTextConfig.position_embedding_type",description:`<strong>position_embedding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;absolute&quot;</code>) &#x2014;
Type of position embedding. Choose one of <code>&quot;absolute&quot;</code>, <code>&quot;relative_key&quot;</code>, <code>&quot;relative_key_query&quot;</code>. For
positional embeddings use <code>&quot;absolute&quot;</code>. For more information on <code>&quot;relative_key&quot;</code>, please refer to
<a href="https://arxiv.org/abs/1803.02155" rel="nofollow">Self-Attention with Relative Position Representations (Shaw et al.)</a>.
For more information on <code>&quot;relative_key_query&quot;</code>, please refer to <em>Method 4</em> in <a href="https://arxiv.org/abs/2009.13658" rel="nofollow">Improve Transformer Models
with Better Relative Position Embeddings (Huang et al.)</a>.`,name:"position_embedding_type"},{anchor:"transformers.ClapTextConfig.is_decoder",description:`<strong>is_decoder</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether the model is used as a decoder or not. If <code>False</code>, the model is used as an encoder.`,name:"is_decoder"},{anchor:"transformers.ClapTextConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models). Only
relevant if <code>config.is_decoder=True</code>.`,name:"use_cache"},{anchor:"transformers.ClapTextConfig.projection_hidden_act",description:`<strong>projection_hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the projection layer. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"projection_hidden_act"},{anchor:"transformers.ClapTextConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimension of the projection head of the <code>ClapTextModelWithProjection</code>.`,name:"projection_dim"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/configuration_clap.py#L27"}}),de=new re({props:{anchor:"transformers.ClapTextConfig.example",$$slots:{default:[za]},$$scope:{ctx:v}}}),Be=new Y({props:{title:"ClapAudioConfig",local:"transformers.ClapAudioConfig",headingTag:"h2"}}),Ae=new x({props:{name:"class transformers.ClapAudioConfig",anchor:"transformers.ClapAudioConfig",parameters:[{name:"window_size",val:" = 8"},{name:"num_mel_bins",val:" = 64"},{name:"spec_size",val:" = 256"},{name:"hidden_act",val:" = 'gelu'"},{name:"patch_size",val:" = 4"},{name:"patch_stride",val:" = [4, 4]"},{name:"num_classes",val:" = 527"},{name:"hidden_size",val:" = 768"},{name:"projection_dim",val:" = 512"},{name:"depths",val:" = [2, 2, 6, 2]"},{name:"num_attention_heads",val:" = [4, 8, 16, 32]"},{name:"enable_fusion",val:" = False"},{name:"hidden_dropout_prob",val:" = 0.1"},{name:"fusion_type",val:" = None"},{name:"patch_embed_input_channels",val:" = 1"},{name:"flatten_patch_embeds",val:" = True"},{name:"patch_embeds_hidden_size",val:" = 96"},{name:"enable_patch_layer_norm",val:" = True"},{name:"drop_path_rate",val:" = 0.0"},{name:"attention_probs_dropout_prob",val:" = 0.0"},{name:"qkv_bias",val:" = True"},{name:"mlp_ratio",val:" = 4.0"},{name:"aff_block_r",val:" = 4"},{name:"num_hidden_layers",val:" = 4"},{name:"projection_hidden_act",val:" = 'relu'"},{name:"layer_norm_eps",val:" = 1e-05"},{name:"initializer_factor",val:" = 1.0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ClapAudioConfig.window_size",description:`<strong>window_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Image size of the spectrogram`,name:"window_size"},{anchor:"transformers.ClapAudioConfig.num_mel_bins",description:`<strong>num_mel_bins</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Number of mel features used per frames. Should correspond to the value used in the <code>ClapProcessor</code> class.`,name:"num_mel_bins"},{anchor:"transformers.ClapAudioConfig.spec_size",description:`<strong>spec_size</strong> (<code>int</code>, <em>optional</em>, defaults to 256) &#x2014;
Desired input size of the spectrogram that the model supports. It can be different from the output of the
<code>ClapFeatureExtractor</code>, in which case the input features will be resized. Corresponds to the <code>image_size</code>
of the audio models.`,name:"spec_size"},{anchor:"transformers.ClapAudioConfig.hidden_act",description:`<strong>hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"hidden_act"},{anchor:"transformers.ClapAudioConfig.patch_size",description:`<strong>patch_size</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Patch size for the audio spectrogram`,name:"patch_size"},{anchor:"transformers.ClapAudioConfig.patch_stride",description:`<strong>patch_stride</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[4, 4]</code>) &#x2014;
Patch stride for the audio spectrogram`,name:"patch_stride"},{anchor:"transformers.ClapAudioConfig.num_classes",description:`<strong>num_classes</strong> (<code>int</code>, <em>optional</em>, defaults to 527) &#x2014;
Number of classes used for the head training`,name:"num_classes"},{anchor:"transformers.ClapAudioConfig.hidden_size",description:`<strong>hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Hidden size of the output of the audio encoder. Correspond to the dimension of the penultimate layer&#x2019;s
output,which is sent to the projection MLP layer.`,name:"hidden_size"},{anchor:"transformers.ClapAudioConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Hidden size of the projection layer.`,name:"projection_dim"},{anchor:"transformers.ClapAudioConfig.depths",description:`<strong>depths</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[2, 2, 6, 2]</code>) &#x2014;
Depths used for the Swin Layers of the audio model`,name:"depths"},{anchor:"transformers.ClapAudioConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>list</code>, <em>optional</em>, defaults to <code>[4, 8, 16, 32]</code>) &#x2014;
Number of attention heads used for the Swin Layers of the audio model`,name:"num_attention_heads"},{anchor:"transformers.ClapAudioConfig.enable_fusion",description:`<strong>enable_fusion</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to enable patch fusion. This is the main contribution of the authors, and should give the
best results.`,name:"enable_fusion"},{anchor:"transformers.ClapAudioConfig.hidden_dropout_prob",description:`<strong>hidden_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the encoder.`,name:"hidden_dropout_prob"},{anchor:"transformers.ClapAudioConfig.fusion_type",description:`<strong>fusion_type</strong> (<code>[type]</code>, <em>optional</em>) &#x2014;
Fusion type used for the patch fusion.`,name:"fusion_type"},{anchor:"transformers.ClapAudioConfig.patch_embed_input_channels",description:`<strong>patch_embed_input_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of channels used for the input spectrogram`,name:"patch_embed_input_channels"},{anchor:"transformers.ClapAudioConfig.flatten_patch_embeds",description:`<strong>flatten_patch_embeds</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to flatten the patch embeddings`,name:"flatten_patch_embeds"},{anchor:"transformers.ClapAudioConfig.patch_embeds_hidden_size",description:`<strong>patch_embeds_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 96) &#x2014;
Hidden size of the patch embeddings. It is used as the number of output channels.`,name:"patch_embeds_hidden_size"},{anchor:"transformers.ClapAudioConfig.enable_patch_layer_norm",description:`<strong>enable_patch_layer_norm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to enable layer normalization for the patch embeddings`,name:"enable_patch_layer_norm"},{anchor:"transformers.ClapAudioConfig.drop_path_rate",description:`<strong>drop_path_rate</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Drop path rate for the patch fusion`,name:"drop_path_rate"},{anchor:"transformers.ClapAudioConfig.attention_probs_dropout_prob",description:`<strong>attention_probs_dropout_prob</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The dropout ratio for the attention probabilities.`,name:"attention_probs_dropout_prob"},{anchor:"transformers.ClapAudioConfig.qkv_bias",description:`<strong>qkv_bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to add a bias to the query, key, value projections.`,name:"qkv_bias"},{anchor:"transformers.ClapAudioConfig.mlp_ratio",description:`<strong>mlp_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 4.0) &#x2014;
Ratio of the mlp hidden dim to embedding dim.`,name:"mlp_ratio"},{anchor:"transformers.ClapAudioConfig.aff_block_r",description:`<strong>aff_block_r</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
downsize_ratio used in the AudioFF block`,name:"aff_block_r"},{anchor:"transformers.ClapAudioConfig.num_hidden_layers",description:`<strong>num_hidden_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 4) &#x2014;
Number of hidden layers in the Transformer encoder.`,name:"num_hidden_layers"},{anchor:"transformers.ClapAudioConfig.projection_hidden_act",description:`<strong>projection_hidden_act</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;relu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the projection layer. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"projection_hidden_act"},{anchor:"transformers.ClapAudioConfig.layer_norm_eps",description:`<strong>layer_norm_eps</strong> (<code>[type]</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
The epsilon used by the layer normalization layers.`,name:"layer_norm_eps"},{anchor:"transformers.ClapAudioConfig.initializer_factor",description:`<strong>initializer_factor</strong> (<code>float</code>, <em>optional</em>, defaults to 1.0) &#x2014;
A factor for initializing all weight matrices (should be kept to 1, used internally for initialization
testing).`,name:"initializer_factor"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/configuration_clap.py#L159"}}),ce=new re({props:{anchor:"transformers.ClapAudioConfig.example",$$slots:{default:[Ja]},$$scope:{ctx:v}}}),Pe=new Y({props:{title:"ClapFeatureExtractor",local:"transformers.ClapFeatureExtractor",headingTag:"h2"}}),Re=new x({props:{name:"class transformers.ClapFeatureExtractor",anchor:"transformers.ClapFeatureExtractor",parameters:[{name:"feature_size",val:" = 64"},{name:"sampling_rate",val:" = 48000"},{name:"hop_length",val:" = 480"},{name:"max_length_s",val:" = 10"},{name:"fft_window_size",val:" = 1024"},{name:"padding_value",val:" = 0.0"},{name:"return_attention_mask",val:" = False"},{name:"frequency_min",val:": float = 0"},{name:"frequency_max",val:": float = 14000"},{name:"top_db",val:": int = None"},{name:"truncation",val:": str = 'fusion'"},{name:"padding",val:": str = 'repeatpad'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ClapFeatureExtractor.feature_size",description:`<strong>feature_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
The feature dimension of the extracted Mel spectrograms. This corresponds to the number of mel filters
(<code>n_mels</code>).`,name:"feature_size"},{anchor:"transformers.ClapFeatureExtractor.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 48000) &#x2014;
The sampling rate at which the audio files should be digitalized expressed in hertz (Hz). This only serves
to warn users if the audio fed to the feature extractor does not have the same sampling rate.`,name:"sampling_rate"},{anchor:"transformers.ClapFeatureExtractor.hop_length",description:`<strong>hop_length</strong> (<code>int</code>,<em>optional</em>, defaults to 480) &#x2014;
Length of the overlaping windows for the STFT used to obtain the Mel Spectrogram. The audio will be split
in smaller <code>frames</code> with a step of <code>hop_length</code> between each frame.`,name:"hop_length"},{anchor:"transformers.ClapFeatureExtractor.max_length_s",description:`<strong>max_length_s</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The maximum input length of the model in seconds. This is used to pad the audio.`,name:"max_length_s"},{anchor:"transformers.ClapFeatureExtractor.fft_window_size",description:`<strong>fft_window_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Size of the window (in samples) on which the Fourier transform is applied. This controls the frequency
resolution of the spectrogram. 400 means that the fourrier transform is computed on windows of 400 samples.`,name:"fft_window_size"},{anchor:"transformers.ClapFeatureExtractor.padding_value",description:`<strong>padding_value</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Padding value used to pad the audio. Should correspond to silences.`,name:"padding_value"},{anchor:"transformers.ClapFeatureExtractor.return_attention_mask",description:`<strong>return_attention_mask</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not the model should return the attention masks coresponding to the input.`,name:"return_attention_mask"},{anchor:"transformers.ClapFeatureExtractor.frequency_min",description:`<strong>frequency_min</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
The lowest frequency of interest. The STFT will not be computed for values below this.`,name:"frequency_min"},{anchor:"transformers.ClapFeatureExtractor.frequency_max",description:`<strong>frequency_max</strong> (<code>float</code>, <em>optional</em>, defaults to 14000) &#x2014;
The highest frequency of interest. The STFT will not be computed for values above this.`,name:"frequency_max"},{anchor:"transformers.ClapFeatureExtractor.top_db",description:`<strong>top_db</strong> (<code>float</code>, <em>optional</em>) &#x2014;
The highest decibel value used to convert the mel spectrogram to the log scale. For more details see the
<code>audio_utils.power_to_db</code> function`,name:"top_db"},{anchor:"transformers.ClapFeatureExtractor.truncation",description:`<strong>truncation</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;fusion&quot;</code>) &#x2014;
Truncation pattern for long audio inputs. Two patterns are available:<ul>
<li><code>fusion</code> will use <code>_random_mel_fusion</code>, which stacks 3 random crops from the mel spectrogram and a
downsampled version of the entire mel spectrogram.
If <code>config.fusion</code> is set to True, shorter audios also need to to return 4 mels, which will just be a copy
of the original mel obtained from the padded audio.</li>
<li><code>rand_trunc</code> will select a random crop of the mel spectrogram.</li>
</ul>`,name:"truncation"},{anchor:"transformers.ClapFeatureExtractor.padding",description:`<strong>padding</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;repeatpad&quot;</code>) &#x2014;
Padding pattern for shorter audio inputs. Three patterns were originally implemented:<ul>
<li><code>repeatpad</code>: the audio is repeated, and then padded to fit the <code>max_length</code>.</li>
<li><code>repeat</code>: the audio is repeated and then cut to fit the <code>max_length</code></li>
<li><code>pad</code>: the audio is padded.</li>
</ul>`,name:"padding"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/feature_extraction_clap.py#L32"}}),Xe=new x({props:{name:"to_dict",anchor:"transformers.ClapFeatureExtractor.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/feature_extraction_clap.py#L137",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of all the attributes that make up this configuration instance, excpet for the
mel filter banks, which do not need to be saved or printed as they are too long.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, Any]</code></p>
`}}),Ne=new Y({props:{title:"ClapProcessor",local:"transformers.ClapProcessor",headingTag:"h2"}}),He=new x({props:{name:"class transformers.ClapProcessor",anchor:"transformers.ClapProcessor",parameters:[{name:"feature_extractor",val:""},{name:"tokenizer",val:""}],parametersDescription:[{anchor:"transformers.ClapProcessor.feature_extractor",description:`<strong>feature_extractor</strong> (<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a>) &#x2014;
The audio processor is a required input.`,name:"feature_extractor"},{anchor:"transformers.ClapProcessor.tokenizer",description:`<strong>tokenizer</strong> (<code>RobertaTokenizerFast</code>) &#x2014;
The tokenizer is a required input.`,name:"tokenizer"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/processing_clap.py#L23"}}),Le=new x({props:{name:"batch_decode",anchor:"transformers.ClapProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/processing_clap.py#L99"}}),Ve=new x({props:{name:"decode",anchor:"transformers.ClapProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/processing_clap.py#L106"}}),Qe=new Y({props:{title:"ClapModel",local:"transformers.ClapModel",headingTag:"h2"}}),Ye=new x({props:{name:"class transformers.ClapModel",anchor:"transformers.ClapModel",parameters:[{name:"config",val:": ClapConfig"}],parametersDescription:[{anchor:"transformers.ClapModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig">ClapConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1920"}}),Se=new x({props:{name:"forward",anchor:"transformers.ClapModel.forward",parameters:[{name:"input_ids",val:": Optional = None"},{name:"input_features",val:": Optional = None"},{name:"is_longer",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"position_ids",val:": Optional = None"},{name:"return_loss",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapModel.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.ClapModel.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</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.ClapModel.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.ClapModel.forward.input_features",description:`<strong>input_features</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Input audio features. This should be returnes by the <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoFeatureExtractor">AutoFeatureExtractor</a>. See <code>ClapFeatureExtractor.__call__()</code> for details.`,name:"input_features"},{anchor:"transformers.ClapModel.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the contrastive loss.`,name:"return_loss"},{anchor:"transformers.ClapModel.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.ClapModel.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.ClapModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2050",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.clap.modeling_clap.ClapOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.clap.configuration_clap.ClapConfig'&gt;</code>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.FloatTensor</code> of shape <code>(1,)</code>, <em>optional</em>, returned when <code>return_loss</code> is <code>True</code>) — Contrastive loss for audio-text similarity.</li>
<li><strong>logits_per_audio:(<code>torch.FloatTensor</code></strong> of shape <code>(audio_batch_size, text_batch_size)</code>) — The scaled dot product scores between <code>audio_embeds</code> and <code>text_embeds</code>. This represents the audio-text
similarity scores.</li>
<li><strong>logits_per_text:(<code>torch.FloatTensor</code></strong> of shape <code>(text_batch_size, audio_batch_size)</code>) — The scaled dot product scores between <code>text_embeds</code> and <code>audio_embeds</code>. This represents the text-audio
similarity scores.</li>
<li><strong>text_embeds(<code>torch.FloatTensor</code></strong> of shape <code>(batch_size, output_dim</code>) — The text embeddings obtained by applying the projection layer to the pooled output of <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel"
>ClapTextModel</a>.</li>
<li><strong>audio_embeds(<code>torch.FloatTensor</code></strong> of shape <code>(batch_size, output_dim</code>) — The audio embeddings obtained by applying the projection layer to the pooled output of <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModel"
>ClapAudioModel</a>.</li>
<li><strong>text_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel"
>ClapTextModel</a>.</li>
<li><strong>audio_model_output(<code>BaseModelOutputWithPooling</code>):</strong>
The output of the <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModel"
>ClapAudioModel</a>.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.clap.modeling_clap.ClapOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),fe=new Dt({props:{$$slots:{default:[Fa]},$$scope:{ctx:v}}}),he=new re({props:{anchor:"transformers.ClapModel.forward.example",$$slots:{default:[Za]},$$scope:{ctx:v}}}),De=new x({props:{name:"get_text_features",anchor:"transformers.ClapModel.get_text_features",parameters:[{name:"input_ids",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"position_ids",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapModel.get_text_features.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.ClapModel.get_text_features.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</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.ClapModel.get_text_features.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.ClapModel.get_text_features.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.ClapModel.get_text_features.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.ClapModel.get_text_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1956",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The text embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapTextModel"
>ClapTextModel</a>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>text_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),ge=new Dt({props:{$$slots:{default:[Ua]},$$scope:{ctx:v}}}),_e=new re({props:{anchor:"transformers.ClapModel.get_text_features.example",$$slots:{default:[Ea]},$$scope:{ctx:v}}}),Oe=new x({props:{name:"get_audio_features",anchor:"transformers.ClapModel.get_audio_features",parameters:[{name:"input_features",val:": Optional = None"},{name:"is_longer",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapModel.get_audio_features.input_features",description:`<strong>input_features</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Input audio features. This should be returnes by the <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoFeatureExtractor">AutoFeatureExtractor</a>. See <code>ClapFeatureExtractor.__call__()</code> for details.`,name:"input_features"},{anchor:"transformers.ClapModel.get_audio_features.is_longer",description:`<strong>is_longer</strong> (<code>torch.FloatTensor</code>, of shape <code>(batch_size, 1)</code>, <em>optional</em>) &#x2014;
Whether the audio clip is longer than <code>max_length</code>. If <code>True</code>, a feature fusion will be enabled to enhance
the features.`,name:"is_longer"},{anchor:"transformers.ClapModel.get_audio_features.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.ClapModel.get_audio_features.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.ClapModel.get_audio_features.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2004",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The audio embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapAudioModel"
>ClapAudioModel</a>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>audio_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),be=new Dt({props:{$$slots:{default:[Ia]},$$scope:{ctx:v}}}),Ce=new re({props:{anchor:"transformers.ClapModel.get_audio_features.example",$$slots:{default:[qa]},$$scope:{ctx:v}}}),Ke=new Y({props:{title:"ClapTextModel",local:"transformers.ClapTextModel",headingTag:"h2"}}),et=new x({props:{name:"class transformers.ClapTextModel",anchor:"transformers.ClapTextModel",parameters:[{name:"config",val:""},{name:"add_pooling_layer",val:" = True"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1753"}}),tt=new x({props:{name:"forward",anchor:"transformers.ClapTextModel.forward",parameters:[{name:"input_ids",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"token_type_ids",val:": Optional = None"},{name:"position_ids",val:": Optional = None"},{name:"head_mask",val:": Optional = None"},{name:"inputs_embeds",val:": Optional = None"},{name:"encoder_hidden_states",val:": Optional = None"},{name:"encoder_attention_mask",val:": Optional = None"},{name:"past_key_values",val:": Optional = None"},{name:"use_cache",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1789"}}),ot=new Y({props:{title:"ClapTextModelWithProjection",local:"transformers.ClapTextModelWithProjection",headingTag:"h2"}}),nt=new x({props:{name:"class transformers.ClapTextModelWithProjection",anchor:"transformers.ClapTextModelWithProjection",parameters:[{name:"config",val:": ClapTextConfig"}],parametersDescription:[{anchor:"transformers.ClapTextModelWithProjection.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig">ClapConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2148"}}),at=new x({props:{name:"forward",anchor:"transformers.ClapTextModelWithProjection.forward",parameters:[{name:"input_ids",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"position_ids",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapTextModelWithProjection.forward.input_ids",description:`<strong>input_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>) &#x2014;
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
it.</p>
<p>Indices can be obtained using <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/pr_31031/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.__call__">PreTrainedTokenizer.<strong>call</strong>()</a> for details.</p>
<p><a href="../glossary#input-ids">What are input IDs?</a>`,name:"input_ids"},{anchor:"transformers.ClapTextModelWithProjection.forward.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.Tensor</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.ClapTextModelWithProjection.forward.position_ids",description:`<strong>position_ids</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, sequence_length)</code>, <em>optional</em>) &#x2014;
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range <code>[0, config.max_position_embeddings - 1]</code>.</p>
<p><a href="../glossary#position-ids">What are position IDs?</a>`,name:"position_ids"},{anchor:"transformers.ClapTextModelWithProjection.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.ClapTextModelWithProjection.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.ClapTextModelWithProjection.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2170",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.clap.modeling_clap.ClapTextModelOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.clap.configuration_clap.ClapTextConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>text_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim)</code> <em>optional</em> returned when model is initialized with <code>with_projection=True</code>) — The text embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.clap.modeling_clap.ClapTextModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Me=new Dt({props:{$$slots:{default:[Ga]},$$scope:{ctx:v}}}),Te=new re({props:{anchor:"transformers.ClapTextModelWithProjection.forward.example",$$slots:{default:[Ba]},$$scope:{ctx:v}}}),rt=new Y({props:{title:"ClapAudioModel",local:"transformers.ClapAudioModel",headingTag:"h2"}}),st=new x({props:{name:"class transformers.ClapAudioModel",anchor:"transformers.ClapAudioModel",parameters:[{name:"config",val:": ClapAudioConfig"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1695"}}),lt=new x({props:{name:"forward",anchor:"transformers.ClapAudioModel.forward",parameters:[{name:"input_features",val:": Optional = None"},{name:"is_longer",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapAudioModel.forward.input_features",description:`<strong>input_features</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Input audio features. This should be returnes by the <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoFeatureExtractor">AutoFeatureExtractor</a>. See <code>ClapFeatureExtractor.__call__()</code> for details.`,name:"input_features"},{anchor:"transformers.ClapAudioModel.forward.is_longer",description:`<strong>is_longer</strong> (<code>torch.FloatTensor</code>, of shape <code>(batch_size, 1)</code>, <em>optional</em>) &#x2014;
Whether the audio clip is longer than <code>max_length</code>. If <code>True</code>, a feature fusion will be enabled to enhance
the features.`,name:"is_longer"},{anchor:"transformers.ClapAudioModel.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.ClapAudioModel.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.ClapAudioModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L1708",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <a
  href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.clap.configuration_clap.ClapAudioConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>pooler_output</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) — Last layer hidden-state of the first token of the sequence (classification token) after further processing
through the layers used for the auxiliary pretraining task. E.g. for BERT-family of models, this returns
the classification token after processing through a linear layer and a tanh activation function. The linear
layer weights are trained from the next sentence prediction (classification) objective during pretraining.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
<li>
<p><strong>attentions</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_attentions=True</code> is passed or when <code>config.output_attentions=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for each layer) of shape <code>(batch_size, num_heads, sequence_length, sequence_length)</code>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),ye=new Dt({props:{$$slots:{default:[Aa]},$$scope:{ctx:v}}}),ve=new re({props:{anchor:"transformers.ClapAudioModel.forward.example",$$slots:{default:[Pa]},$$scope:{ctx:v}}}),it=new Y({props:{title:"ClapAudioModelWithProjection",local:"transformers.ClapAudioModelWithProjection",headingTag:"h2"}}),dt=new x({props:{name:"class transformers.ClapAudioModelWithProjection",anchor:"transformers.ClapAudioModelWithProjection",parameters:[{name:"config",val:": ClapAudioConfig"}],parametersDescription:[{anchor:"transformers.ClapAudioModelWithProjection.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapConfig">ClapConfig</a>) &#x2014; Model configuration class with all the parameters of the model.
Initializing with a config file does not load the weights associated with the model, only the
configuration. Check out the <a href="/docs/transformers/pr_31031/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2224"}}),ct=new x({props:{name:"forward",anchor:"transformers.ClapAudioModelWithProjection.forward",parameters:[{name:"input_features",val:": Optional = None"},{name:"is_longer",val:": Optional = None"},{name:"output_attentions",val:": Optional = None"},{name:"output_hidden_states",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ClapAudioModelWithProjection.forward.input_features",description:`<strong>input_features</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, height, width)</code>) &#x2014;
Input audio features. This should be returnes by the <a href="/docs/transformers/pr_31031/ja/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/pr_31031/ja/model_doc/auto#transformers.AutoFeatureExtractor">AutoFeatureExtractor</a>. See <code>ClapFeatureExtractor.__call__()</code> for details.`,name:"input_features"},{anchor:"transformers.ClapAudioModelWithProjection.forward.is_longer",description:`<strong>is_longer</strong> (<code>torch.FloatTensor</code>, of shape <code>(batch_size, 1)</code>, <em>optional</em>) &#x2014;
Whether the audio clip is longer than <code>max_length</code>. If <code>True</code>, a feature fusion will be enabled to enhance
the features.`,name:"is_longer"},{anchor:"transformers.ClapAudioModelWithProjection.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.ClapAudioModelWithProjection.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.ClapAudioModelWithProjection.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_31031/ja/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_31031/src/transformers/models/clap/modeling_clap.py#L2244",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.clap.modeling_clap.ClapAudioModelOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<code>&lt;class 'transformers.models.clap.configuration_clap.ClapAudioConfig'&gt;</code>) and inputs.</p>
<ul>
<li>
<p><strong>audio_embeds</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, hidden_size)</code>) — The Audio embeddings obtained by applying the projection layer to the pooler_output.</p>
</li>
<li>
<p><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, hidden_size)</code>) — Sequence of hidden-states at the output of the last layer of the model.</p>
</li>
<li>
<p><strong>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>.</p>
<p>Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
heads.</p>
</li>
<li>
<p><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>, returned when <code>output_hidden_states=True</code> is passed or when <code>config.output_hidden_states=True</code>) — Tuple of <code>torch.FloatTensor</code> (one for the output of the embeddings, if the model has an embedding layer, +
one for the output of each layer) of shape <code>(batch_size, sequence_length, hidden_size)</code>.</p>
<p>Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</p>
</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.clap.modeling_clap.ClapAudioModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),$e=new Dt({props:{$$slots:{default:[Ra]},$$scope:{ctx:v}}}),we=new re({props:{anchor:"transformers.ClapAudioModelWithProjection.forward.example",$$slots:{default:[Xa]},$$scope:{ctx:v}}}),pt=new ka({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/model_doc/clap.md"}}),{c(){o=c("meta"),T=a(),d=c("p"),i=a(),u(M.$$.fragment),t=a(),u(y.$$.fragment),Kt=a(),We=c("p"),We.innerHTML=qn,eo=a(),ze=c("p"),ze.textContent=Gn,to=a(),Je=c("p"),Je.textContent=Bn,oo=a(),Fe=c("p"),Fe.innerHTML=An,no=a(),Ze=c("p"),Ze.innerHTML=Pn,ao=a(),u(Ue.$$.fragment),ro=a(),k=c("div"),u(Ee.$$.fragment),Wo=a(),gt=c("p"),gt.innerHTML=Rn,zo=a(),_t=c("p"),_t.innerHTML=Xn,Jo=a(),u(le.$$.fragment),Fo=a(),ie=c("div"),u(Ie.$$.fragment),Zo=a(),bt=c("p"),bt.innerHTML=Nn,so=a(),u(qe.$$.fragment),lo=a(),I=c("div"),u(Ge.$$.fragment),Uo=a(),Ct=c("p"),Ct.innerHTML=Hn,Eo=a(),Mt=c("p"),Mt.innerHTML=Ln,Io=a(),u(de.$$.fragment),io=a(),u(Be.$$.fragment),co=a(),q=c("div"),u(Ae.$$.fragment),qo=a(),Tt=c("p"),Tt.innerHTML=Vn,Go=a(),yt=c("p"),yt.innerHTML=Qn,Bo=a(),u(ce.$$.fragment),po=a(),u(Pe.$$.fragment),mo=a(),W=c("div"),u(Re.$$.fragment),Ao=a(),vt=c("p"),vt.textContent=Yn,Po=a(),$t=c("p"),$t.innerHTML=Sn,Ro=a(),wt=c("p"),wt.innerHTML=Dn,Xo=a(),pe=c("div"),u(Xe.$$.fragment),No=a(),xt=c("p"),xt.textContent=On,uo=a(),u(Ne.$$.fragment),fo=a(),z=c("div"),u(He.$$.fragment),Ho=a(),jt=c("p"),jt.textContent=Kn,Lo=a(),kt=c("p"),kt.innerHTML=ea,Vo=a(),me=c("div"),u(Le.$$.fragment),Qo=a(),Wt=c("p"),Wt.innerHTML=ta,Yo=a(),ue=c("div"),u(Ve.$$.fragment),So=a(),zt=c("p"),zt.innerHTML=oa,ho=a(),u(Qe.$$.fragment),go=a(),j=c("div"),u(Ye.$$.fragment),Do=a(),Jt=c("p"),Jt.innerHTML=na,Oo=a(),Ft=c("p"),Ft.innerHTML=aa,Ko=a(),R=c("div"),u(Se.$$.fragment),en=a(),Zt=c("p"),Zt.innerHTML=ra,tn=a(),u(fe.$$.fragment),on=a(),u(he.$$.fragment),nn=a(),X=c("div"),u(De.$$.fragment),an=a(),Ut=c("p"),Ut.innerHTML=sa,rn=a(),u(ge.$$.fragment),sn=a(),u(_e.$$.fragment),ln=a(),N=c("div"),u(Oe.$$.fragment),dn=a(),Et=c("p"),Et.innerHTML=la,cn=a(),u(be.$$.fragment),pn=a(),u(Ce.$$.fragment),_o=a(),u(Ke.$$.fragment),bo=a(),J=c("div"),u(et.$$.fragment),mn=a(),It=c("p"),It.innerHTML=ia,un=a(),qt=c("p"),qt.innerHTML=da,fn=a(),Gt=c("p"),Gt.innerHTML=ca,hn=a(),H=c("div"),u(tt.$$.fragment),gn=a(),Bt=c("p"),Bt.innerHTML=pa,_n=a(),At=c("ul"),At.innerHTML=ma,bn=a(),Pt=c("p"),Pt.innerHTML=ua,Co=a(),u(ot.$$.fragment),Mo=a(),F=c("div"),u(nt.$$.fragment),Cn=a(),Rt=c("p"),Rt.textContent=fa,Mn=a(),Xt=c("p"),Xt.innerHTML=ha,Tn=a(),Nt=c("p"),Nt.innerHTML=ga,yn=a(),L=c("div"),u(at.$$.fragment),vn=a(),Ht=c("p"),Ht.innerHTML=_a,$n=a(),u(Me.$$.fragment),wn=a(),u(Te.$$.fragment),To=a(),u(rt.$$.fragment),yo=a(),ae=c("div"),u(st.$$.fragment),xn=a(),V=c("div"),u(lt.$$.fragment),jn=a(),Lt=c("p"),Lt.innerHTML=ba,kn=a(),u(ye.$$.fragment),Wn=a(),u(ve.$$.fragment),vo=a(),u(it.$$.fragment),$o=a(),Z=c("div"),u(dt.$$.fragment),zn=a(),Vt=c("p"),Vt.textContent=Ca,Jn=a(),Qt=c("p"),Qt.innerHTML=Ma,Fn=a(),Yt=c("p"),Yt.innerHTML=Ta,Zn=a(),Q=c("div"),u(ct.$$.fragment),Un=a(),St=c("p"),St.innerHTML=ya,En=a(),u($e.$$.fragment),In=a(),u(we.$$.fragment),wo=a(),u(pt.$$.fragment),xo=a(),Ot=c("p"),this.h()},l(e){const l=ja("svelte-u9bgzb",document.head);o=p(l,"META",{name:!0,content:!0}),l.forEach(s),T=r(e),d=p(e,"P",{}),$(d).forEach(s),i=r(e),f(M.$$.fragment,e),t=r(e),f(y.$$.fragment,e),Kt=r(e),We=p(e,"P",{"data-svelte-h":!0}),C(We)!=="svelte-1c9a0du"&&(We.innerHTML=qn),eo=r(e),ze=p(e,"P",{"data-svelte-h":!0}),C(ze)!=="svelte-1t5202e"&&(ze.textContent=Gn),to=r(e),Je=p(e,"P",{"data-svelte-h":!0}),C(Je)!=="svelte-1cv3nri"&&(Je.textContent=Bn),oo=r(e),Fe=p(e,"P",{"data-svelte-h":!0}),C(Fe)!=="svelte-1swpcls"&&(Fe.innerHTML=An),no=r(e),Ze=p(e,"P",{"data-svelte-h":!0}),C(Ze)!=="svelte-12mu65"&&(Ze.innerHTML=Pn),ao=r(e),f(Ue.$$.fragment,e),ro=r(e),k=p(e,"DIV",{class:!0});var G=$(k);f(Ee.$$.fragment,G),Wo=r(G),gt=p(G,"P",{"data-svelte-h":!0}),C(gt)!=="svelte-1o6q6fl"&&(gt.innerHTML=Rn),zo=r(G),_t=p(G,"P",{"data-svelte-h":!0}),C(_t)!=="svelte-z7653b"&&(_t.innerHTML=Xn),Jo=r(G),f(le.$$.fragment,G),Fo=r(G),ie=p(G,"DIV",{class:!0});var mt=$(ie);f(Ie.$$.fragment,mt),Zo=r(mt),bt=p(mt,"P",{"data-svelte-h":!0}),C(bt)!=="svelte-30ws5o"&&(bt.innerHTML=Nn),mt.forEach(s),G.forEach(s),so=r(e),f(qe.$$.fragment,e),lo=r(e),I=p(e,"DIV",{class:!0});var S=$(I);f(Ge.$$.fragment,S),Uo=r(S),Ct=p(S,"P",{"data-svelte-h":!0}),C(Ct)!=="svelte-1ruqsx"&&(Ct.innerHTML=Hn),Eo=r(S),Mt=p(S,"P",{"data-svelte-h":!0}),C(Mt)!=="svelte-z7653b"&&(Mt.innerHTML=Ln),Io=r(S),f(de.$$.fragment,S),S.forEach(s),io=r(e),f(Be.$$.fragment,e),co=r(e),q=p(e,"DIV",{class:!0});var D=$(q);f(Ae.$$.fragment,D),qo=r(D),Tt=p(D,"P",{"data-svelte-h":!0}),C(Tt)!=="svelte-84rvbw"&&(Tt.innerHTML=Vn),Go=r(D),yt=p(D,"P",{"data-svelte-h":!0}),C(yt)!=="svelte-z7653b"&&(yt.innerHTML=Qn),Bo=r(D),f(ce.$$.fragment,D),D.forEach(s),po=r(e),f(Pe.$$.fragment,e),mo=r(e),W=p(e,"DIV",{class:!0});var B=$(W);f(Re.$$.fragment,B),Ao=r(B),vt=p(B,"P",{"data-svelte-h":!0}),C(vt)!=="svelte-2rs2ud"&&(vt.textContent=Yn),Po=r(B),$t=p(B,"P",{"data-svelte-h":!0}),C($t)!=="svelte-10w9qqv"&&($t.innerHTML=Sn),Ro=r(B),wt=p(B,"P",{"data-svelte-h":!0}),C(wt)!=="svelte-5gq0sj"&&(wt.innerHTML=Dn),Xo=r(B),pe=p(B,"DIV",{class:!0});var ut=$(pe);f(Xe.$$.fragment,ut),No=r(ut),xt=p(ut,"P",{"data-svelte-h":!0}),C(xt)!=="svelte-1ww3wqq"&&(xt.textContent=On),ut.forEach(s),B.forEach(s),uo=r(e),f(Ne.$$.fragment,e),fo=r(e),z=p(e,"DIV",{class:!0});var A=$(z);f(He.$$.fragment,A),Ho=r(A),jt=p(A,"P",{"data-svelte-h":!0}),C(jt)!=="svelte-l868x"&&(jt.textContent=Kn),Lo=r(A),kt=p(A,"P",{"data-svelte-h":!0}),C(kt)!=="svelte-uhokys"&&(kt.innerHTML=ea),Vo=r(A),me=p(A,"DIV",{class:!0});var ft=$(me);f(Le.$$.fragment,ft),Qo=r(ft),Wt=p(ft,"P",{"data-svelte-h":!0}),C(Wt)!=="svelte-3opisq"&&(Wt.innerHTML=ta),ft.forEach(s),Yo=r(A),ue=p(A,"DIV",{class:!0});var ht=$(ue);f(Ve.$$.fragment,ht),So=r(ht),zt=p(ht,"P",{"data-svelte-h":!0}),C(zt)!=="svelte-kraj6c"&&(zt.innerHTML=oa),ht.forEach(s),A.forEach(s),ho=r(e),f(Qe.$$.fragment,e),go=r(e),j=p(e,"DIV",{class:!0});var U=$(j);f(Ye.$$.fragment,U),Do=r(U),Jt=p(U,"P",{"data-svelte-h":!0}),C(Jt)!=="svelte-1i9u3s6"&&(Jt.innerHTML=na),Oo=r(U),Ft=p(U,"P",{"data-svelte-h":!0}),C(Ft)!=="svelte-hswkmf"&&(Ft.innerHTML=aa),Ko=r(U),R=p(U,"DIV",{class:!0});var O=$(R);f(Se.$$.fragment,O),en=r(O),Zt=p(O,"P",{"data-svelte-h":!0}),C(Zt)!=="svelte-s1kpxf"&&(Zt.innerHTML=ra),tn=r(O),f(fe.$$.fragment,O),on=r(O),f(he.$$.fragment,O),O.forEach(s),nn=r(U),X=p(U,"DIV",{class:!0});var K=$(X);f(De.$$.fragment,K),an=r(K),Ut=p(K,"P",{"data-svelte-h":!0}),C(Ut)!=="svelte-s1kpxf"&&(Ut.innerHTML=sa),rn=r(K),f(ge.$$.fragment,K),sn=r(K),f(_e.$$.fragment,K),K.forEach(s),ln=r(U),N=p(U,"DIV",{class:!0});var ee=$(N);f(Oe.$$.fragment,ee),dn=r(ee),Et=p(ee,"P",{"data-svelte-h":!0}),C(Et)!=="svelte-s1kpxf"&&(Et.innerHTML=la),cn=r(ee),f(be.$$.fragment,ee),pn=r(ee),f(Ce.$$.fragment,ee),ee.forEach(s),U.forEach(s),_o=r(e),f(Ke.$$.fragment,e),bo=r(e),J=p(e,"DIV",{class:!0});var P=$(J);f(et.$$.fragment,P),mn=r(P),It=p(P,"P",{"data-svelte-h":!0}),C(It)!=="svelte-rehfhh"&&(It.innerHTML=ia),un=r(P),qt=p(P,"P",{"data-svelte-h":!0}),C(qt)!=="svelte-174erte"&&(qt.innerHTML=da),fn=r(P),Gt=p(P,"P",{"data-svelte-h":!0}),C(Gt)!=="svelte-p9qvd1"&&(Gt.innerHTML=ca),hn=r(P),H=p(P,"DIV",{class:!0});var te=$(H);f(tt.$$.fragment,te),gn=r(te),Bt=p(te,"P",{"data-svelte-h":!0}),C(Bt)!=="svelte-1h74cdd"&&(Bt.innerHTML=pa),_n=r(te),At=p(te,"UL",{"data-svelte-h":!0}),C(At)!=="svelte-1ouiqrx"&&(At.innerHTML=ma),bn=r(te),Pt=p(te,"P",{"data-svelte-h":!0}),C(Pt)!=="svelte-hzr4zl"&&(Pt.innerHTML=ua),te.forEach(s),P.forEach(s),Co=r(e),f(ot.$$.fragment,e),Mo=r(e),F=p(e,"DIV",{class:!0});var oe=$(F);f(nt.$$.fragment,oe),Cn=r(oe),Rt=p(oe,"P",{"data-svelte-h":!0}),C(Rt)!=="svelte-1kjof0d"&&(Rt.textContent=fa),Mn=r(oe),Xt=p(oe,"P",{"data-svelte-h":!0}),C(Xt)!=="svelte-1i9u3s6"&&(Xt.innerHTML=ha),Tn=r(oe),Nt=p(oe,"P",{"data-svelte-h":!0}),C(Nt)!=="svelte-hswkmf"&&(Nt.innerHTML=ga),yn=r(oe),L=p(oe,"DIV",{class:!0});var xe=$(L);f(at.$$.fragment,xe),vn=r(xe),Ht=p(xe,"P",{"data-svelte-h":!0}),C(Ht)!=="svelte-blsuwv"&&(Ht.innerHTML=_a),$n=r(xe),f(Me.$$.fragment,xe),wn=r(xe),f(Te.$$.fragment,xe),xe.forEach(s),oe.forEach(s),To=r(e),f(rt.$$.fragment,e),yo=r(e),ae=p(e,"DIV",{class:!0});var ko=$(ae);f(st.$$.fragment,ko),xn=r(ko),V=p(ko,"DIV",{class:!0});var je=$(V);f(lt.$$.fragment,je),jn=r(je),Lt=p(je,"P",{"data-svelte-h":!0}),C(Lt)!=="svelte-j5e9vx"&&(Lt.innerHTML=ba),kn=r(je),f(ye.$$.fragment,je),Wn=r(je),f(ve.$$.fragment,je),je.forEach(s),ko.forEach(s),vo=r(e),f(it.$$.fragment,e),$o=r(e),Z=p(e,"DIV",{class:!0});var ne=$(Z);f(dt.$$.fragment,ne),zn=r(ne),Vt=p(ne,"P",{"data-svelte-h":!0}),C(Vt)!=="svelte-vug57w"&&(Vt.textContent=Ca),Jn=r(ne),Qt=p(ne,"P",{"data-svelte-h":!0}),C(Qt)!=="svelte-1i9u3s6"&&(Qt.innerHTML=Ma),Fn=r(ne),Yt=p(ne,"P",{"data-svelte-h":!0}),C(Yt)!=="svelte-hswkmf"&&(Yt.innerHTML=Ta),Zn=r(ne),Q=p(ne,"DIV",{class:!0});var ke=$(Q);f(ct.$$.fragment,ke),Un=r(ke),St=p(ke,"P",{"data-svelte-h":!0}),C(St)!=="svelte-10t8we7"&&(St.innerHTML=ya),En=r(ke),f($e.$$.fragment,ke),In=r(ke),f(we.$$.fragment,ke),ke.forEach(s),ne.forEach(s),wo=r(e),f(pt.$$.fragment,e),xo=r(e),Ot=p(e,"P",{}),$(Ot).forEach(s),this.h()},h(){w(o,"name","hf:doc:metadata"),w(o,"content",Ha),w(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Z,"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,l){n(document.head,o),m(e,T,l),m(e,d,l),m(e,i,l),h(M,e,l),m(e,t,l),h(y,e,l),m(e,Kt,l),m(e,We,l),m(e,eo,l),m(e,ze,l),m(e,to,l),m(e,Je,l),m(e,oo,l),m(e,Fe,l),m(e,no,l),m(e,Ze,l),m(e,ao,l),h(Ue,e,l),m(e,ro,l),m(e,k,l),h(Ee,k,null),n(k,Wo),n(k,gt),n(k,zo),n(k,_t),n(k,Jo),h(le,k,null),n(k,Fo),n(k,ie),h(Ie,ie,null),n(ie,Zo),n(ie,bt),m(e,so,l),h(qe,e,l),m(e,lo,l),m(e,I,l),h(Ge,I,null),n(I,Uo),n(I,Ct),n(I,Eo),n(I,Mt),n(I,Io),h(de,I,null),m(e,io,l),h(Be,e,l),m(e,co,l),m(e,q,l),h(Ae,q,null),n(q,qo),n(q,Tt),n(q,Go),n(q,yt),n(q,Bo),h(ce,q,null),m(e,po,l),h(Pe,e,l),m(e,mo,l),m(e,W,l),h(Re,W,null),n(W,Ao),n(W,vt),n(W,Po),n(W,$t),n(W,Ro),n(W,wt),n(W,Xo),n(W,pe),h(Xe,pe,null),n(pe,No),n(pe,xt),m(e,uo,l),h(Ne,e,l),m(e,fo,l),m(e,z,l),h(He,z,null),n(z,Ho),n(z,jt),n(z,Lo),n(z,kt),n(z,Vo),n(z,me),h(Le,me,null),n(me,Qo),n(me,Wt),n(z,Yo),n(z,ue),h(Ve,ue,null),n(ue,So),n(ue,zt),m(e,ho,l),h(Qe,e,l),m(e,go,l),m(e,j,l),h(Ye,j,null),n(j,Do),n(j,Jt),n(j,Oo),n(j,Ft),n(j,Ko),n(j,R),h(Se,R,null),n(R,en),n(R,Zt),n(R,tn),h(fe,R,null),n(R,on),h(he,R,null),n(j,nn),n(j,X),h(De,X,null),n(X,an),n(X,Ut),n(X,rn),h(ge,X,null),n(X,sn),h(_e,X,null),n(j,ln),n(j,N),h(Oe,N,null),n(N,dn),n(N,Et),n(N,cn),h(be,N,null),n(N,pn),h(Ce,N,null),m(e,_o,l),h(Ke,e,l),m(e,bo,l),m(e,J,l),h(et,J,null),n(J,mn),n(J,It),n(J,un),n(J,qt),n(J,fn),n(J,Gt),n(J,hn),n(J,H),h(tt,H,null),n(H,gn),n(H,Bt),n(H,_n),n(H,At),n(H,bn),n(H,Pt),m(e,Co,l),h(ot,e,l),m(e,Mo,l),m(e,F,l),h(nt,F,null),n(F,Cn),n(F,Rt),n(F,Mn),n(F,Xt),n(F,Tn),n(F,Nt),n(F,yn),n(F,L),h(at,L,null),n(L,vn),n(L,Ht),n(L,$n),h(Me,L,null),n(L,wn),h(Te,L,null),m(e,To,l),h(rt,e,l),m(e,yo,l),m(e,ae,l),h(st,ae,null),n(ae,xn),n(ae,V),h(lt,V,null),n(V,jn),n(V,Lt),n(V,kn),h(ye,V,null),n(V,Wn),h(ve,V,null),m(e,vo,l),h(it,e,l),m(e,$o,l),m(e,Z,l),h(dt,Z,null),n(Z,zn),n(Z,Vt),n(Z,Jn),n(Z,Qt),n(Z,Fn),n(Z,Yt),n(Z,Zn),n(Z,Q),h(ct,Q,null),n(Q,Un),n(Q,St),n(Q,En),h($e,Q,null),n(Q,In),h(we,Q,null),m(e,wo,l),h(pt,e,l),m(e,xo,l),m(e,Ot,l),jo=!0},p(e,[l]){const G={};l&2&&(G.$$scope={dirty:l,ctx:e}),le.$set(G);const mt={};l&2&&(mt.$$scope={dirty:l,ctx:e}),de.$set(mt);const S={};l&2&&(S.$$scope={dirty:l,ctx:e}),ce.$set(S);const D={};l&2&&(D.$$scope={dirty:l,ctx:e}),fe.$set(D);const B={};l&2&&(B.$$scope={dirty:l,ctx:e}),he.$set(B);const ut={};l&2&&(ut.$$scope={dirty:l,ctx:e}),ge.$set(ut);const A={};l&2&&(A.$$scope={dirty:l,ctx:e}),_e.$set(A);const ft={};l&2&&(ft.$$scope={dirty:l,ctx:e}),be.$set(ft);const ht={};l&2&&(ht.$$scope={dirty:l,ctx:e}),Ce.$set(ht);const U={};l&2&&(U.$$scope={dirty:l,ctx:e}),Me.$set(U);const O={};l&2&&(O.$$scope={dirty:l,ctx:e}),Te.$set(O);const K={};l&2&&(K.$$scope={dirty:l,ctx:e}),ye.$set(K);const ee={};l&2&&(ee.$$scope={dirty:l,ctx:e}),ve.$set(ee);const P={};l&2&&(P.$$scope={dirty:l,ctx:e}),$e.$set(P);const te={};l&2&&(te.$$scope={dirty:l,ctx:e}),we.$set(te)},i(e){jo||(g(M.$$.fragment,e),g(y.$$.fragment,e),g(Ue.$$.fragment,e),g(Ee.$$.fragment,e),g(le.$$.fragment,e),g(Ie.$$.fragment,e),g(qe.$$.fragment,e),g(Ge.$$.fragment,e),g(de.$$.fragment,e),g(Be.$$.fragment,e),g(Ae.$$.fragment,e),g(ce.$$.fragment,e),g(Pe.$$.fragment,e),g(Re.$$.fragment,e),g(Xe.$$.fragment,e),g(Ne.$$.fragment,e),g(He.$$.fragment,e),g(Le.$$.fragment,e),g(Ve.$$.fragment,e),g(Qe.$$.fragment,e),g(Ye.$$.fragment,e),g(Se.$$.fragment,e),g(fe.$$.fragment,e),g(he.$$.fragment,e),g(De.$$.fragment,e),g(ge.$$.fragment,e),g(_e.$$.fragment,e),g(Oe.$$.fragment,e),g(be.$$.fragment,e),g(Ce.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(ot.$$.fragment,e),g(nt.$$.fragment,e),g(at.$$.fragment,e),g(Me.$$.fragment,e),g(Te.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(lt.$$.fragment,e),g(ye.$$.fragment,e),g(ve.$$.fragment,e),g(it.$$.fragment,e),g(dt.$$.fragment,e),g(ct.$$.fragment,e),g($e.$$.fragment,e),g(we.$$.fragment,e),g(pt.$$.fragment,e),jo=!0)},o(e){_(M.$$.fragment,e),_(y.$$.fragment,e),_(Ue.$$.fragment,e),_(Ee.$$.fragment,e),_(le.$$.fragment,e),_(Ie.$$.fragment,e),_(qe.$$.fragment,e),_(Ge.$$.fragment,e),_(de.$$.fragment,e),_(Be.$$.fragment,e),_(Ae.$$.fragment,e),_(ce.$$.fragment,e),_(Pe.$$.fragment,e),_(Re.$$.fragment,e),_(Xe.$$.fragment,e),_(Ne.$$.fragment,e),_(He.$$.fragment,e),_(Le.$$.fragment,e),_(Ve.$$.fragment,e),_(Qe.$$.fragment,e),_(Ye.$$.fragment,e),_(Se.$$.fragment,e),_(fe.$$.fragment,e),_(he.$$.fragment,e),_(De.$$.fragment,e),_(ge.$$.fragment,e),_(_e.$$.fragment,e),_(Oe.$$.fragment,e),_(be.$$.fragment,e),_(Ce.$$.fragment,e),_(Ke.$$.fragment,e),_(et.$$.fragment,e),_(tt.$$.fragment,e),_(ot.$$.fragment,e),_(nt.$$.fragment,e),_(at.$$.fragment,e),_(Me.$$.fragment,e),_(Te.$$.fragment,e),_(rt.$$.fragment,e),_(st.$$.fragment,e),_(lt.$$.fragment,e),_(ye.$$.fragment,e),_(ve.$$.fragment,e),_(it.$$.fragment,e),_(dt.$$.fragment,e),_(ct.$$.fragment,e),_($e.$$.fragment,e),_(we.$$.fragment,e),_(pt.$$.fragment,e),jo=!1},d(e){e&&(s(T),s(d),s(i),s(t),s(Kt),s(We),s(eo),s(ze),s(to),s(Je),s(oo),s(Fe),s(no),s(Ze),s(ao),s(ro),s(k),s(so),s(lo),s(I),s(io),s(co),s(q),s(po),s(mo),s(W),s(uo),s(fo),s(z),s(ho),s(go),s(j),s(_o),s(bo),s(J),s(Co),s(Mo),s(F),s(To),s(yo),s(ae),s(vo),s($o),s(Z),s(wo),s(xo),s(Ot)),s(o),b(M,e),b(y,e),b(Ue,e),b(Ee),b(le),b(Ie),b(qe,e),b(Ge),b(de),b(Be,e),b(Ae),b(ce),b(Pe,e),b(Re),b(Xe),b(Ne,e),b(He),b(Le),b(Ve),b(Qe,e),b(Ye),b(Se),b(fe),b(he),b(De),b(ge),b(_e),b(Oe),b(be),b(Ce),b(Ke,e),b(et),b(tt),b(ot,e),b(nt),b(at),b(Me),b(Te),b(rt,e),b(st),b(lt),b(ye),b(ve),b(it,e),b(dt),b(ct),b($e),b(we),b(pt,e)}}}const Ha='{"title":"CLAP","local":"clap","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"ClapConfig","local":"transformers.ClapConfig","sections":[],"depth":2},{"title":"ClapTextConfig","local":"transformers.ClapTextConfig","sections":[],"depth":2},{"title":"ClapAudioConfig","local":"transformers.ClapAudioConfig","sections":[],"depth":2},{"title":"ClapFeatureExtractor","local":"transformers.ClapFeatureExtractor","sections":[],"depth":2},{"title":"ClapProcessor","local":"transformers.ClapProcessor","sections":[],"depth":2},{"title":"ClapModel","local":"transformers.ClapModel","sections":[],"depth":2},{"title":"ClapTextModel","local":"transformers.ClapTextModel","sections":[],"depth":2},{"title":"ClapTextModelWithProjection","local":"transformers.ClapTextModelWithProjection","sections":[],"depth":2},{"title":"ClapAudioModel","local":"transformers.ClapAudioModel","sections":[],"depth":2},{"title":"ClapAudioModelWithProjection","local":"transformers.ClapAudioModelWithProjection","sections":[],"depth":2}],"depth":1}';function La(v){return $a(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class er extends wa{constructor(o){super(),xa(this,o,La,Na,va,{})}}export{er as component};
