import{s as ys,o as Ts,n as I}from"../chunks/scheduler.9bc65507.js";import{S as ws,i as Ms,g as r,s as l,u as g,A as xs,h as s,f as n,c as i,j as f,v as _,y as u,k as h,o as t,a as m,w as b,d as v,t as C,x as y}from"../chunks/index.78c82d43.js";import{T as Io}from"../chunks/Tip.87d55b76.js";import{D as $}from"../chunks/Docstring.4e7352e2.js";import{C as me}from"../chunks/CodeBlock.73e038be.js";import{I as X}from"../chunks/IconCopyLink.bedaa44d.js";import{E as pe}from"../chunks/ExampleCodeBlock.872b014d.js";function $s(x){let a,w="Example:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-11lpom8"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function js(x){let a,w="Examples:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function ks(x){let a,w="Example:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-11lpom8"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Js(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function Ws(x){let a,w="Examples:",p,c,T;return c=new me({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBDbGFwTW9kZWwlMEElMEFkYXRhc2V0JTIwJTNEJTIwbG9hZF9kYXRhc2V0KCUyMmFzaHJhcSUyRmVzYzUwJTIyKSUwQWF1ZGlvX3NhbXBsZSUyMCUzRCUyMGRhdGFzZXQlNUIlMjJ0cmFpbiUyMiU1RCU1QiUyMmF1ZGlvJTIyJTVEJTVCMCU1RCU1QiUyMmFycmF5JTIyJTVEJTBBJTBBbW9kZWwlMjAlM0QlMjBDbGFwTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmxhaW9uJTJGY2xhcC1odHNhdC11bmZ1c2VkJTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmxhaW9uJTJGY2xhcC1odHNhdC11bmZ1c2VkJTIyKSUwQSUwQWlucHV0X3RleHQlMjAlM0QlMjAlNUIlMjJTb3VuZCUyMG9mJTIwYSUyMGRvZyUyMiUyQyUyMCUyMlNvdW5kJTIwb2YlMjB2YWNjdW0lMjBjbGVhbmVyJTIyJTVEJTBBJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKHRleHQlM0RpbnB1dF90ZXh0JTJDJTIwYXVkaW9zJTNEYXVkaW9fc2FtcGxlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiUyQyUyMHBhZGRpbmclM0RUcnVlKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsb2dpdHNfcGVyX2F1ZGlvJTIwJTNEJTIwb3V0cHV0cy5sb2dpdHNfcGVyX2F1ZGlvJTIwJTIwJTIzJTIwdGhpcyUyMGlzJTIwdGhlJTIwYXVkaW8tdGV4dCUyMHNpbWlsYXJpdHklMjBzY29yZSUwQXByb2JzJTIwJTNEJTIwbG9naXRzX3Blcl9hdWRpby5zb2Z0bWF4KGRpbSUzRC0xKSUyMCUyMCUyMyUyMHdlJTIwY2FuJTIwdGFrZSUyMHRoZSUyMHNvZnRtYXglMjB0byUyMGdldCUyMHRoZSUyMGxhYmVsJTIwcHJvYmFiaWxpdGllcw==",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;ashraq/esc50&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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function zs(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function Fs(x){let a,w="Examples:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Es(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function Is(x){let a,w="Examples:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Zs(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function As(x){let a,w="Examples:",p,c,T;return c=new me({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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Ps(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function qs(x){let a,w="Examples:",p,c,T;return c=new me({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Qcm9jZXNzb3IlMkMlMjBDbGFwQXVkaW9Nb2RlbCUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyYXNocmFxJTJGZXNjNTAlMjIpJTBBYXVkaW9fc2FtcGxlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRyYWluJTIyJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIwJTVEJTVCJTIyYXJyYXklMjIlNUQlMEElMEFtb2RlbCUyMCUzRCUyMENsYXBBdWRpb01vZGVsLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRmNsYXAtaHRzYXQtZnVzZWQlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQXV0b1Byb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LWZ1c2VkJTIyKSUwQSUwQWlucHV0cyUyMCUzRCUyMHByb2Nlc3NvcihhdWRpb3MlM0RhdWRpb19zYW1wbGUlMkMlMjByZXR1cm5fdGVuc29ycyUzRCUyMnB0JTIyKSUwQSUwQW91dHB1dHMlMjAlM0QlMjBtb2RlbCgqKmlucHV0cyklMEFsYXN0X2hpZGRlbl9zdGF0ZSUyMCUzRCUyMG91dHB1dHMubGFzdF9oaWRkZW5fc3RhdGU=",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;ashraq/esc50&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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Us(x){let a,w=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){a=r("p"),a.innerHTML=w},l(p){a=s(p,"P",{"data-svelte-h":!0}),u(a)!=="svelte-fincs2"&&(a.innerHTML=w)},m(p,c){m(p,a,c)},p:I,d(p){p&&n(a)}}}function Ns(x){let a,w="Examples:",p,c,T;return c=new me({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMENsYXBBdWRpb01vZGVsV2l0aFByb2plY3Rpb24lMkMlMjBDbGFwUHJvY2Vzc29yJTBBJTBBbW9kZWwlMjAlM0QlMjBDbGFwQXVkaW9Nb2RlbFdpdGhQcm9qZWN0aW9uLmZyb21fcHJldHJhaW5lZCglMjJsYWlvbiUyRmNsYXAtaHRzYXQtZnVzZWQlMjIpJTBBcHJvY2Vzc29yJTIwJTNEJTIwQ2xhcFByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIybGFpb24lMkZjbGFwLWh0c2F0LWZ1c2VkJTIyKSUwQSUwQWRhdGFzZXQlMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyYXNocmFxJTJGZXNjNTAlMjIpJTBBYXVkaW9fc2FtcGxlJTIwJTNEJTIwZGF0YXNldCU1QiUyMnRyYWluJTIyJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIwJTVEJTVCJTIyYXJyYXklMjIlNUQlMEElMEFpbnB1dHMlMjAlM0QlMjBwcm9jZXNzb3IoYXVkaW9zJTNEYXVkaW9fc2FtcGxlJTJDJTIwcmV0dXJuX3RlbnNvcnMlM0QlMjJwdCUyMiklMEFvdXRwdXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpJTBBYXVkaW9fZW1iZWRzJTIwJTNEJTIwb3V0cHV0cy5hdWRpb19lbWJlZHM=",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;ashraq/esc50&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(){a=r("p"),a.textContent=w,p=l(),g(c.$$.fragment)},l(o){a=s(o,"P",{"data-svelte-h":!0}),u(a)!=="svelte-kvfsh7"&&(a.textContent=w),p=i(o),_(c.$$.fragment,o)},m(o,M){m(o,a,M),m(o,p,M),b(c,o,M),T=!0},p:I,i(o){T||(v(c.$$.fragment,o),T=!0)},o(o){C(c.$$.fragment,o),T=!1},d(o){o&&(n(a),n(p)),y(c,o)}}}function Bs(x){let a,w,p,c,T,o,M,De,Gn,Nt,lr="CLAP",tn,K,he,Zo,Oe,Hn,Bt,ir="Overview",on,Ke,dr=`The CLAP model was proposed in <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> by Yusong Wu, Ke Chen, Tianyu Zhang, Yuchen Hui, Taylor Berg-Kirkpatrick, Shlomo Dubnov.`,nn,et,cr="CLAP (Contrastive Language-Audio Pretraining) is a neural network trained on a variety of (audio, text) pairs. It can be instructed in to predict the most relevant text snippet, given an audio, without directly optimizing for the task. The CLAP model uses a SWINTransformer to get audio features from a log-Mel spectrogram input, and a RoBERTa model to get text features. Both the text and audio features are then projected to a latent space with identical dimension. The dot product between the projected audio and text features is then used as a similar score.",an,tt,pr="The abstract from the paper is the following:",rn,ot,mr="<em>Contrastive learning has shown remarkable success in the field of multimodal representation learning. In this paper, we propose a pipeline of contrastive language-audio pretraining to develop an audio representation by combining audio data with natural language descriptions. To accomplish this target, we first release LAION-Audio-630K, a large collection of 633,526 audio-text pairs from different data sources. Second, we construct a contrastive language-audio pretraining model by considering different audio encoders and text encoders. We incorporate the feature fusion mechanism and keyword-to-caption augmentation into the model design to further enable the model to process audio inputs of variable lengths and enhance the performance. Third, we perform comprehensive experiments to evaluate our model across three tasks: text-to-audio retrieval, zero-shot audio classification, and supervised audio classification. The results demonstrate that our model achieves superior performance in text-to-audio retrieval task. In audio classification tasks, the model achieves state-of-the-art performance in the zeroshot setting and is able to obtain performance comparable to models’ results in the non-zero-shot setting. LAION-Audio-6</em>",sn,nt,hr=`This model was contributed by <a href="https://huggingface.co/ybelkada" rel="nofollow">Younes Belkada</a> and <a href="https://huggingface.co/ArtZucker" rel="nofollow">Arthur Zucker</a> .
The original code can be found <a href="https://github.com/LAION-AI/Clap" rel="nofollow">here</a>.`,ln,ee,ue,Ao,at,Rn,Gt,ur="ClapConfig",dn,k,rt,Vn,Ht,fr=`<a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapConfig">ClapConfig</a> is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/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.`,Xn,Rt,gr=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ln,fe,Sn,ge,st,Yn,Vt,_r=`Instantiate a <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapConfig">ClapConfig</a> (or a derived class) from clap text model configuration and clap audio model
configuration.`,cn,te,_e,Po,lt,Qn,Xt,br="ClapTextConfig",pn,Z,it,Dn,Lt,vr=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/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.`,On,St,Cr=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Kn,be,mn,oe,ve,qo,dt,ea,Yt,yr="ClapAudioConfig",hn,A,ct,ta,Qt,Tr=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.34.0/en/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.`,oa,Dt,wr=`Configuration objects inherit from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/v4.34.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,na,Ce,un,ne,ye,Uo,pt,aa,Ot,Mr="ClapFeatureExtractor",fn,J,mt,ra,Kt,xr="Constructs a CLAP feature extractor.",sa,eo,$r=`This feature extractor inherits from <a href="/docs/transformers/v4.34.0/en/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.`,la,to,jr=`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.`,ia,Te,ht,da,oo,kr="Serializes this instance to a Python dictionary.",gn,ae,we,No,ut,ca,no,Jr="ClapProcessor",_n,W,ft,pa,ao,Wr="Constructs a CLAP processor which wraps a CLAP feature extractor and a RoBerta tokenizer into a single processor.",ma,ro,zr=`<a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapProcessor">ClapProcessor</a> offers all the functionalities of <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> and <a href="/docs/transformers/v4.34.0/en/model_doc/roberta#transformers.RobertaTokenizerFast">RobertaTokenizerFast</a>. See the
<code>__call__()</code> and <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapProcessor.decode">decode()</a> for more information.`,ha,Me,gt,ua,so,Fr=`This method forwards all its arguments to RobertaTokenizerFast’s <a href="/docs/transformers/v4.34.0/en/model_doc/speecht5#transformers.SpeechT5Tokenizer.batch_decode">batch_decode()</a>. Please
refer to the docstring of this method for more information.`,fa,xe,_t,ga,lo,Er=`This method forwards all its arguments to RobertaTokenizerFast’s <a href="/docs/transformers/v4.34.0/en/model_doc/speecht5#transformers.SpeechT5Tokenizer.decode">decode()</a>. Please refer
to the docstring of this method for more information.`,bn,re,$e,Bo,bt,_a,io,Ir="ClapModel",vn,j,vt,ba,co,Zr=`This model inherits from <a href="/docs/transformers/v4.34.0/en/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.)`,va,po,Ar=`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.`,Ca,q,Ct,ya,mo,Pr='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',Ta,je,wa,ke,Ma,U,yt,xa,ho,qr='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',$a,Je,ja,We,ka,N,Tt,Ja,uo,Ur='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapModel">ClapModel</a> forward method, overrides the <code>__call__</code> special method.',Wa,ze,za,Fe,Cn,se,Ee,Go,wt,Fa,fo,Nr="ClapTextModel",yn,z,Mt,Ea,go,Br=`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.`,Ia,_o,Gr=`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.`,Za,bo,Hr='.. _<em>Attention is all you need</em>: <a href="https://arxiv.org/abs/1706.03762" rel="nofollow">https://arxiv.org/abs/1706.03762</a>',Aa,B,xt,Pa,vo,Rr=`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>:`,qa,Co,Vr=`<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>`,Ua,yo,Xr=`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>).`,Tn,le,Ie,Ho,$t,Na,To,Lr="ClapTextModelWithProjection",wn,F,jt,Ba,wo,Sr="CLAP Text Model with a projection layer on top (a linear layer on top of the pooled output).",Ga,Mo,Yr=`This model inherits from <a href="/docs/transformers/v4.34.0/en/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.)`,Ha,xo,Qr=`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.`,Ra,G,kt,Va,$o,Dr='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapTextModelWithProjection">ClapTextModelWithProjection</a> forward method, overrides the <code>__call__</code> special method.',Xa,Ze,La,Ae,Mn,ie,Pe,Ro,Jt,Sa,jo,Or="ClapAudioModel",xn,de,Wt,Ya,H,zt,Qa,ko,Kr='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapAudioModel">ClapAudioModel</a> forward method, overrides the <code>__call__</code> special method.',Da,qe,Oa,Ue,$n,ce,Ne,Vo,Ft,Ka,Jo,es="ClapAudioModelWithProjection",jn,E,Et,er,Wo,ts="CLAP Audio Model with a projection layer on top (a linear layer on top of the pooled output).",tr,zo,os=`This model inherits from <a href="/docs/transformers/v4.34.0/en/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.)`,or,Fo,ns=`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.`,nr,R,It,ar,Eo,as='The <a href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapAudioModelWithProjection">ClapAudioModelWithProjection</a> forward method, overrides the <code>__call__</code> special method.',rr,Be,sr,Ge,kn,Xo,Jn;return De=new X({}),Oe=new X({}),at=new X({}),rt=new $({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/v4.34.0/en/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/v4.34.0/en/model_doc/clap#transformers.ClapAudioConfig">ClapAudioConfig</a>.`,name:"audio_config"},{anchor:"transformers.ClapConfig.projection_dim",description:`<strong>projection_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Dimentionality of text and audio projection layers.`,name:"projection_dim"},{anchor:"transformers.ClapConfig.logit_scale_init_value",description:`<strong>logit_scale_init_value</strong> (<code>float</code>, <em>optional</em>, defaults to 2.6592) &#x2014;
The inital value of the <em>logit_scale</em> paramter. Default is used as per the original CLAP implementation.`,name:"logit_scale_init_value"},{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/v4.34.0/src/transformers/models/clap/configuration_clap.py#L333"}}),fe=new pe({props:{anchor:"transformers.ClapConfig.example",$$slots:{default:[$s]},$$scope:{ctx:x}}}),st=new $({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/v4.34.0/src/transformers/models/clap/configuration_clap.py#L421",returnDescription:`
<p>An instance of a configuration object</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapConfig"
>ClapConfig</a></p>
`}}),lt=new X({}),it=new $({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/v4.34.0/en/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/v4.34.0/en/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/v4.34.0/src/transformers/models/clap/configuration_clap.py#L32"}}),be=new pe({props:{anchor:"transformers.ClapTextConfig.example",$$slots:{default:[js]},$$scope:{ctx:x}}}),dt=new X({}),ct=new $({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 probabilitiy 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 <code>1e-5</code>) &#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/v4.34.0/src/transformers/models/clap/configuration_clap.py#L163"}}),Ce=new pe({props:{anchor:"transformers.ClapAudioConfig.example",$$slots:{default:[ks]},$$scope:{ctx:x}}}),pt=new X({}),mt=new $({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>, 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>, defaults to 48_000) &#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>, 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>, 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>, 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>, default 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>, default to 14_000) &#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>, default to <code>&quot;fusions&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/v4.34.0/src/transformers/models/clap/feature_extraction_clap.py#L33"}}),ht=new $({props:{name:"to_dict",anchor:"transformers.ClapFeatureExtractor.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/feature_extraction_clap.py#L138",returnDescription:`
<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:`
<p><code>Dict[str, Any]</code></p>
`}}),ut=new X({}),ft=new $({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/v4.34.0/en/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> (<a href="/docs/transformers/v4.34.0/en/model_doc/roberta#transformers.RobertaTokenizerFast">RobertaTokenizerFast</a>) &#x2014;
The tokenizer is a required input.`,name:"tokenizer"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/processing_clap.py#L23"}}),gt=new $({props:{name:"batch_decode",anchor:"transformers.ClapProcessor.batch_decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/processing_clap.py#L98"}}),_t=new $({props:{name:"decode",anchor:"transformers.ClapProcessor.decode",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/processing_clap.py#L105"}}),bt=new X({}),vt=new $({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/v4.34.0/en/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/v4.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1937"}}),Ct=new $({props:{name:"forward",anchor:"transformers.ClapModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"input_features",val:": typing.Optional[torch.FloatTensor] = None"},{name:"is_longer",val:": typing.Optional[torch.BoolTensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_loss",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.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/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__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/v4.34.0/en/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/v4.34.0/en/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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2066",returnDescription:`
<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/v4.34.0/en/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/v4.34.0/en/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/v4.34.0/en/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/v4.34.0/en/model_doc/clap#transformers.ClapAudioModel"
>ClapAudioModel</a>.</li>
</ul>
`,returnType:`
<p><code>transformers.models.clap.modeling_clap.ClapOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),je=new Io({props:{$$slots:{default:[Js]},$$scope:{ctx:x}}}),ke=new pe({props:{anchor:"transformers.ClapModel.forward.example",$$slots:{default:[Ws]},$$scope:{ctx:x}}}),yt=new $({props:{name:"get_text_features",anchor:"transformers.ClapModel.get_text_features",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.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/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1972",returnDescription:`
<p>The text embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapTextModel"
>ClapTextModel</a>.</p>
`,returnType:`
<p>text_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),Je=new Io({props:{$$slots:{default:[zs]},$$scope:{ctx:x}}}),We=new pe({props:{anchor:"transformers.ClapModel.get_text_features.example",$$slots:{default:[Fs]},$$scope:{ctx:x}}}),Tt=new $({props:{name:"get_audio_features",anchor:"transformers.ClapModel.get_audio_features",parameters:[{name:"input_features",val:": typing.Optional[torch.Tensor] = None"},{name:"is_longer",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/v4.34.0/en/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/v4.34.0/en/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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2020",returnDescription:`
<p>The audio embeddings obtained by
applying the projection layer to the pooled output of <a
  href="/docs/transformers/v4.34.0/en/model_doc/clap#transformers.ClapAudioModel"
>ClapAudioModel</a>.</p>
`,returnType:`
<p>audio_features (<code>torch.FloatTensor</code> of shape <code>(batch_size, output_dim</code>)</p>
`}}),ze=new Io({props:{$$slots:{default:[Es]},$$scope:{ctx:x}}}),Fe=new pe({props:{anchor:"transformers.ClapModel.get_audio_features.example",$$slots:{default:[Is]},$$scope:{ctx:x}}}),wt=new X({}),Mt=new $({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/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1767"}}),xt=new $({props:{name:"forward",anchor:"transformers.ClapTextModel.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"token_type_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"head_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"inputs_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_hidden_states",val:": typing.Optional[torch.Tensor] = None"},{name:"encoder_attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"past_key_values",val:": typing.Optional[typing.List[torch.FloatTensor]] = None"},{name:"use_cache",val:": typing.Optional[bool] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1805"}}),$t=new X({}),jt=new $({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/v4.34.0/en/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/v4.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2170"}}),kt=new $({props:{name:"forward",anchor:"transformers.ClapTextModelWithProjection.forward",parameters:[{name:"input_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"attention_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"position_ids",val:": typing.Optional[torch.Tensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.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/v4.34.0/en/model_doc/auto#transformers.AutoTokenizer">AutoTokenizer</a>. See <a href="/docs/transformers/v4.34.0/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.encode">PreTrainedTokenizer.encode()</a> and
<a href="/docs/transformers/v4.34.0/en/model_doc/vits#transformers.VitsTokenizer.__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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2186",returnDescription:`
<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:`
<p><code>transformers.models.clap.modeling_clap.ClapTextModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Ze=new Io({props:{$$slots:{default:[Zs]},$$scope:{ctx:x}}}),Ae=new pe({props:{anchor:"transformers.ClapTextModelWithProjection.forward.example",$$slots:{default:[As]},$$scope:{ctx:x}}}),Jt=new X({}),Wt=new $({props:{name:"class transformers.ClapAudioModel",anchor:"transformers.ClapAudioModel",parameters:[{name:"config",val:": ClapAudioConfig"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1709"}}),zt=new $({props:{name:"forward",anchor:"transformers.ClapAudioModel.forward",parameters:[{name:"input_features",val:": typing.Optional[torch.FloatTensor] = None"},{name:"is_longer",val:": typing.Optional[torch.BoolTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.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/v4.34.0/en/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/v4.34.0/en/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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L1722",returnDescription:`
<p>A <a
  href="/docs/transformers/v4.34.0/en/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:`
<p><a
  href="/docs/transformers/v4.34.0/en/main_classes/output#transformers.modeling_outputs.BaseModelOutputWithPooling"
>transformers.modeling_outputs.BaseModelOutputWithPooling</a> or <code>tuple(torch.FloatTensor)</code></p>
`}}),qe=new Io({props:{$$slots:{default:[Ps]},$$scope:{ctx:x}}}),Ue=new pe({props:{anchor:"transformers.ClapAudioModel.forward.example",$$slots:{default:[qs]},$$scope:{ctx:x}}}),Ft=new X({}),Et=new $({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/v4.34.0/en/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/v4.34.0/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2246"}}),It=new $({props:{name:"forward",anchor:"transformers.ClapAudioModelWithProjection.forward",parameters:[{name:"input_features",val:": typing.Optional[torch.FloatTensor] = None"},{name:"is_longer",val:": typing.Optional[torch.BoolTensor] = None"},{name:"output_attentions",val:": typing.Optional[bool] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.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/v4.34.0/en/model_doc/clap#transformers.ClapFeatureExtractor">ClapFeatureExtractor</a> class that you can also
retrieve from <a href="/docs/transformers/v4.34.0/en/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/v4.34.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.34.0/src/transformers/models/clap/modeling_clap.py#L2260",returnDescription:`
<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:`
<p><code>transformers.models.clap.modeling_clap.ClapAudioModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),Be=new Io({props:{$$slots:{default:[Us]},$$scope:{ctx:x}}}),Ge=new pe({props:{anchor:"transformers.ClapAudioModelWithProjection.forward.example",$$slots:{default:[Ns]},$$scope:{ctx:x}}}),{c(){a=r("meta"),w=l(),p=r("p"),c=l(),T=r("h1"),o=r("a"),M=r("span"),g(De.$$.fragment),Gn=l(),Nt=r("span"),Nt.textContent=lr,tn=l(),K=r("h2"),he=r("a"),Zo=r("span"),g(Oe.$$.fragment),Hn=l(),Bt=r("span"),Bt.textContent=ir,on=l(),Ke=r("p"),Ke.innerHTML=dr,nn=l(),et=r("p"),et.textContent=cr,an=l(),tt=r("p"),tt.textContent=pr,rn=l(),ot=r("p"),ot.innerHTML=mr,sn=l(),nt=r("p"),nt.innerHTML=hr,ln=l(),ee=r("h2"),ue=r("a"),Ao=r("span"),g(at.$$.fragment),Rn=l(),Gt=r("span"),Gt.textContent=ur,dn=l(),k=r("div"),g(rt.$$.fragment),Vn=l(),Ht=r("p"),Ht.innerHTML=fr,Xn=l(),Rt=r("p"),Rt.innerHTML=gr,Ln=l(),g(fe.$$.fragment),Sn=l(),ge=r("div"),g(st.$$.fragment),Yn=l(),Vt=r("p"),Vt.innerHTML=_r,cn=l(),te=r("h2"),_e=r("a"),Po=r("span"),g(lt.$$.fragment),Qn=l(),Xt=r("span"),Xt.textContent=br,pn=l(),Z=r("div"),g(it.$$.fragment),Dn=l(),Lt=r("p"),Lt.innerHTML=vr,On=l(),St=r("p"),St.innerHTML=Cr,Kn=l(),g(be.$$.fragment),mn=l(),oe=r("h2"),ve=r("a"),qo=r("span"),g(dt.$$.fragment),ea=l(),Yt=r("span"),Yt.textContent=yr,hn=l(),A=r("div"),g(ct.$$.fragment),ta=l(),Qt=r("p"),Qt.innerHTML=Tr,oa=l(),Dt=r("p"),Dt.innerHTML=wr,na=l(),g(Ce.$$.fragment),un=l(),ne=r("h2"),ye=r("a"),Uo=r("span"),g(pt.$$.fragment),aa=l(),Ot=r("span"),Ot.textContent=Mr,fn=l(),J=r("div"),g(mt.$$.fragment),ra=l(),Kt=r("p"),Kt.textContent=xr,sa=l(),eo=r("p"),eo.innerHTML=$r,la=l(),to=r("p"),to.innerHTML=jr,ia=l(),Te=r("div"),g(ht.$$.fragment),da=l(),oo=r("p"),oo.textContent=kr,gn=l(),ae=r("h2"),we=r("a"),No=r("span"),g(ut.$$.fragment),ca=l(),no=r("span"),no.textContent=Jr,_n=l(),W=r("div"),g(ft.$$.fragment),pa=l(),ao=r("p"),ao.textContent=Wr,ma=l(),ro=r("p"),ro.innerHTML=zr,ha=l(),Me=r("div"),g(gt.$$.fragment),ua=l(),so=r("p"),so.innerHTML=Fr,fa=l(),xe=r("div"),g(_t.$$.fragment),ga=l(),lo=r("p"),lo.innerHTML=Er,bn=l(),re=r("h2"),$e=r("a"),Bo=r("span"),g(bt.$$.fragment),_a=l(),io=r("span"),io.textContent=Ir,vn=l(),j=r("div"),g(vt.$$.fragment),ba=l(),co=r("p"),co.innerHTML=Zr,va=l(),po=r("p"),po.innerHTML=Ar,Ca=l(),q=r("div"),g(Ct.$$.fragment),ya=l(),mo=r("p"),mo.innerHTML=Pr,Ta=l(),g(je.$$.fragment),wa=l(),g(ke.$$.fragment),Ma=l(),U=r("div"),g(yt.$$.fragment),xa=l(),ho=r("p"),ho.innerHTML=qr,$a=l(),g(Je.$$.fragment),ja=l(),g(We.$$.fragment),ka=l(),N=r("div"),g(Tt.$$.fragment),Ja=l(),uo=r("p"),uo.innerHTML=Ur,Wa=l(),g(ze.$$.fragment),za=l(),g(Fe.$$.fragment),Cn=l(),se=r("h2"),Ee=r("a"),Go=r("span"),g(wt.$$.fragment),Fa=l(),fo=r("span"),fo.textContent=Nr,yn=l(),z=r("div"),g(Mt.$$.fragment),Ea=l(),go=r("p"),go.innerHTML=Br,Ia=l(),_o=r("p"),_o.innerHTML=Gr,Za=l(),bo=r("p"),bo.innerHTML=Hr,Aa=l(),B=r("div"),g(xt.$$.fragment),Pa=l(),vo=r("p"),vo.innerHTML=Rr,qa=l(),Co=r("ul"),Co.innerHTML=Vr,Ua=l(),yo=r("p"),yo.innerHTML=Xr,Tn=l(),le=r("h2"),Ie=r("a"),Ho=r("span"),g($t.$$.fragment),Na=l(),To=r("span"),To.textContent=Lr,wn=l(),F=r("div"),g(jt.$$.fragment),Ba=l(),wo=r("p"),wo.textContent=Sr,Ga=l(),Mo=r("p"),Mo.innerHTML=Yr,Ha=l(),xo=r("p"),xo.innerHTML=Qr,Ra=l(),G=r("div"),g(kt.$$.fragment),Va=l(),$o=r("p"),$o.innerHTML=Dr,Xa=l(),g(Ze.$$.fragment),La=l(),g(Ae.$$.fragment),Mn=l(),ie=r("h2"),Pe=r("a"),Ro=r("span"),g(Jt.$$.fragment),Sa=l(),jo=r("span"),jo.textContent=Or,xn=l(),de=r("div"),g(Wt.$$.fragment),Ya=l(),H=r("div"),g(zt.$$.fragment),Qa=l(),ko=r("p"),ko.innerHTML=Kr,Da=l(),g(qe.$$.fragment),Oa=l(),g(Ue.$$.fragment),$n=l(),ce=r("h2"),Ne=r("a"),Vo=r("span"),g(Ft.$$.fragment),Ka=l(),Jo=r("span"),Jo.textContent=es,jn=l(),E=r("div"),g(Et.$$.fragment),er=l(),Wo=r("p"),Wo.textContent=ts,tr=l(),zo=r("p"),zo.innerHTML=os,or=l(),Fo=r("p"),Fo.innerHTML=ns,nr=l(),R=r("div"),g(It.$$.fragment),ar=l(),Eo=r("p"),Eo.innerHTML=as,rr=l(),g(Be.$$.fragment),sr=l(),g(Ge.$$.fragment),kn=l(),Xo=r("p"),this.h()},l(e){const d=xs("svelte-1phssyn",document.head);a=s(d,"META",{name:!0,content:!0}),d.forEach(n),w=i(e),p=s(e,"P",{}),f(p).forEach(n),c=i(e),T=s(e,"H1",{class:!0});var Zt=f(T);o=s(Zt,"A",{id:!0,class:!0,href:!0});var Lo=f(o);M=s(Lo,"SPAN",{});var So=f(M);_(De.$$.fragment,So),So.forEach(n),Lo.forEach(n),Gn=i(Zt),Nt=s(Zt,"SPAN",{"data-svelte-h":!0}),u(Nt)!=="svelte-o8gl03"&&(Nt.textContent=lr),Zt.forEach(n),tn=i(e),K=s(e,"H2",{class:!0});var At=f(K);he=s(At,"A",{id:!0,class:!0,href:!0});var Yo=f(he);Zo=s(Yo,"SPAN",{});var Qo=f(Zo);_(Oe.$$.fragment,Qo),Qo.forEach(n),Yo.forEach(n),Hn=i(At),Bt=s(At,"SPAN",{"data-svelte-h":!0}),u(Bt)!=="svelte-1jsw1pg"&&(Bt.textContent=ir),At.forEach(n),on=i(e),Ke=s(e,"P",{"data-svelte-h":!0}),u(Ke)!=="svelte-1rgr5k6"&&(Ke.innerHTML=dr),nn=i(e),et=s(e,"P",{"data-svelte-h":!0}),u(et)!=="svelte-1hchyqh"&&(et.textContent=cr),an=i(e),tt=s(e,"P",{"data-svelte-h":!0}),u(tt)!=="svelte-vfdo9a"&&(tt.textContent=pr),rn=i(e),ot=s(e,"P",{"data-svelte-h":!0}),u(ot)!=="svelte-yqbs9j"&&(ot.innerHTML=mr),sn=i(e),nt=s(e,"P",{"data-svelte-h":!0}),u(nt)!=="svelte-10bi66m"&&(nt.innerHTML=hr),ln=i(e),ee=s(e,"H2",{class:!0});var Pt=f(ee);ue=s(Pt,"A",{id:!0,class:!0,href:!0});var Do=f(ue);Ao=s(Do,"SPAN",{});var Oo=f(Ao);_(at.$$.fragment,Oo),Oo.forEach(n),Do.forEach(n),Rn=i(Pt),Gt=s(Pt,"SPAN",{"data-svelte-h":!0}),u(Gt)!=="svelte-ev3sv1"&&(Gt.textContent=ur),Pt.forEach(n),dn=i(e),k=s(e,"DIV",{class:!0});var P=f(k);_(rt.$$.fragment,P),Vn=i(P),Ht=s(P,"P",{"data-svelte-h":!0}),u(Ht)!=="svelte-1j1zser"&&(Ht.innerHTML=fr),Xn=i(P),Rt=s(P,"P",{"data-svelte-h":!0}),u(Rt)!=="svelte-10kqkkl"&&(Rt.innerHTML=gr),Ln=i(P),_(fe.$$.fragment,P),Sn=i(P),ge=s(P,"DIV",{class:!0});var qt=f(ge);_(st.$$.fragment,qt),Yn=i(qt),Vt=s(qt,"P",{"data-svelte-h":!0}),u(Vt)!=="svelte-t18a9a"&&(Vt.innerHTML=_r),qt.forEach(n),P.forEach(n),cn=i(e),te=s(e,"H2",{class:!0});var Ut=f(te);_e=s(Ut,"A",{id:!0,class:!0,href:!0});var Ko=f(_e);Po=s(Ko,"SPAN",{});var en=f(Po);_(lt.$$.fragment,en),en.forEach(n),Ko.forEach(n),Qn=i(Ut),Xt=s(Ut,"SPAN",{"data-svelte-h":!0}),u(Xt)!=="svelte-eaj328"&&(Xt.textContent=br),Ut.forEach(n),pn=i(e),Z=s(e,"DIV",{class:!0});var L=f(Z);_(it.$$.fragment,L),Dn=i(L),Lt=s(L,"P",{"data-svelte-h":!0}),u(Lt)!=="svelte-peasqn"&&(Lt.innerHTML=vr),On=i(L),St=s(L,"P",{"data-svelte-h":!0}),u(St)!=="svelte-10kqkkl"&&(St.innerHTML=Cr),Kn=i(L),_(be.$$.fragment,L),L.forEach(n),mn=i(e),oe=s(e,"H2",{class:!0});var Wn=f(oe);ve=s(Wn,"A",{id:!0,class:!0,href:!0});var rs=f(ve);qo=s(rs,"SPAN",{});var ss=f(qo);_(dt.$$.fragment,ss),ss.forEach(n),rs.forEach(n),ea=i(Wn),Yt=s(Wn,"SPAN",{"data-svelte-h":!0}),u(Yt)!=="svelte-a197bp"&&(Yt.textContent=yr),Wn.forEach(n),hn=i(e),A=s(e,"DIV",{class:!0});var He=f(A);_(ct.$$.fragment,He),ta=i(He),Qt=s(He,"P",{"data-svelte-h":!0}),u(Qt)!=="svelte-15lrseg"&&(Qt.innerHTML=Tr),oa=i(He),Dt=s(He,"P",{"data-svelte-h":!0}),u(Dt)!=="svelte-10kqkkl"&&(Dt.innerHTML=wr),na=i(He),_(Ce.$$.fragment,He),He.forEach(n),un=i(e),ne=s(e,"H2",{class:!0});var zn=f(ne);ye=s(zn,"A",{id:!0,class:!0,href:!0});var ls=f(ye);Uo=s(ls,"SPAN",{});var is=f(Uo);_(pt.$$.fragment,is),is.forEach(n),ls.forEach(n),aa=i(zn),Ot=s(zn,"SPAN",{"data-svelte-h":!0}),u(Ot)!=="svelte-18casqp"&&(Ot.textContent=Mr),zn.forEach(n),fn=i(e),J=s(e,"DIV",{class:!0});var S=f(J);_(mt.$$.fragment,S),ra=i(S),Kt=s(S,"P",{"data-svelte-h":!0}),u(Kt)!=="svelte-2rs2ud"&&(Kt.textContent=xr),sa=i(S),eo=s(S,"P",{"data-svelte-h":!0}),u(eo)!=="svelte-bnr2z1"&&(eo.innerHTML=$r),la=i(S),to=s(S,"P",{"data-svelte-h":!0}),u(to)!=="svelte-5gq0sj"&&(to.innerHTML=jr),ia=i(S),Te=s(S,"DIV",{class:!0});var Fn=f(Te);_(ht.$$.fragment,Fn),da=i(Fn),oo=s(Fn,"P",{"data-svelte-h":!0}),u(oo)!=="svelte-1ww3wqq"&&(oo.textContent=kr),Fn.forEach(n),S.forEach(n),gn=i(e),ae=s(e,"H2",{class:!0});var En=f(ae);we=s(En,"A",{id:!0,class:!0,href:!0});var ds=f(we);No=s(ds,"SPAN",{});var cs=f(No);_(ut.$$.fragment,cs),cs.forEach(n),ds.forEach(n),ca=i(En),no=s(En,"SPAN",{"data-svelte-h":!0}),u(no)!=="svelte-1doxz89"&&(no.textContent=Jr),En.forEach(n),_n=i(e),W=s(e,"DIV",{class:!0});var Y=f(W);_(ft.$$.fragment,Y),pa=i(Y),ao=s(Y,"P",{"data-svelte-h":!0}),u(ao)!=="svelte-l868x"&&(ao.textContent=Wr),ma=i(Y),ro=s(Y,"P",{"data-svelte-h":!0}),u(ro)!=="svelte-1gyzmof"&&(ro.innerHTML=zr),ha=i(Y),Me=s(Y,"DIV",{class:!0});var In=f(Me);_(gt.$$.fragment,In),ua=i(In),so=s(In,"P",{"data-svelte-h":!0}),u(so)!=="svelte-1xr37ir"&&(so.innerHTML=Fr),In.forEach(n),fa=i(Y),xe=s(Y,"DIV",{class:!0});var Zn=f(xe);_(_t.$$.fragment,Zn),ga=i(Zn),lo=s(Zn,"P",{"data-svelte-h":!0}),u(lo)!=="svelte-iymkwl"&&(lo.innerHTML=Er),Zn.forEach(n),Y.forEach(n),bn=i(e),re=s(e,"H2",{class:!0});var An=f(re);$e=s(An,"A",{id:!0,class:!0,href:!0});var ps=f($e);Bo=s(ps,"SPAN",{});var ms=f(Bo);_(bt.$$.fragment,ms),ms.forEach(n),ps.forEach(n),_a=i(An),io=s(An,"SPAN",{"data-svelte-h":!0}),u(io)!=="svelte-lsgx8o"&&(io.textContent=Ir),An.forEach(n),vn=i(e),j=s(e,"DIV",{class:!0});var V=f(j);_(vt.$$.fragment,V),ba=i(V),co=s(V,"P",{"data-svelte-h":!0}),u(co)!=="svelte-hmtw9k"&&(co.innerHTML=Zr),va=i(V),po=s(V,"P",{"data-svelte-h":!0}),u(po)!=="svelte-hswkmf"&&(po.innerHTML=Ar),Ca=i(V),q=s(V,"DIV",{class:!0});var Re=f(q);_(Ct.$$.fragment,Re),ya=i(Re),mo=s(Re,"P",{"data-svelte-h":!0}),u(mo)!=="svelte-a6eg9b"&&(mo.innerHTML=Pr),Ta=i(Re),_(je.$$.fragment,Re),wa=i(Re),_(ke.$$.fragment,Re),Re.forEach(n),Ma=i(V),U=s(V,"DIV",{class:!0});var Ve=f(U);_(yt.$$.fragment,Ve),xa=i(Ve),ho=s(Ve,"P",{"data-svelte-h":!0}),u(ho)!=="svelte-a6eg9b"&&(ho.innerHTML=qr),$a=i(Ve),_(Je.$$.fragment,Ve),ja=i(Ve),_(We.$$.fragment,Ve),Ve.forEach(n),ka=i(V),N=s(V,"DIV",{class:!0});var Xe=f(N);_(Tt.$$.fragment,Xe),Ja=i(Xe),uo=s(Xe,"P",{"data-svelte-h":!0}),u(uo)!=="svelte-a6eg9b"&&(uo.innerHTML=Ur),Wa=i(Xe),_(ze.$$.fragment,Xe),za=i(Xe),_(Fe.$$.fragment,Xe),Xe.forEach(n),V.forEach(n),Cn=i(e),se=s(e,"H2",{class:!0});var Pn=f(se);Ee=s(Pn,"A",{id:!0,class:!0,href:!0});var hs=f(Ee);Go=s(hs,"SPAN",{});var us=f(Go);_(wt.$$.fragment,us),us.forEach(n),hs.forEach(n),Fa=i(Pn),fo=s(Pn,"SPAN",{"data-svelte-h":!0}),u(fo)!=="svelte-d5wqf1"&&(fo.textContent=Nr),Pn.forEach(n),yn=i(e),z=s(e,"DIV",{class:!0});var Q=f(z);_(Mt.$$.fragment,Q),Ea=i(Q),go=s(Q,"P",{"data-svelte-h":!0}),u(go)!=="svelte-rehfhh"&&(go.innerHTML=Br),Ia=i(Q),_o=s(Q,"P",{"data-svelte-h":!0}),u(_o)!=="svelte-174erte"&&(_o.innerHTML=Gr),Za=i(Q),bo=s(Q,"P",{"data-svelte-h":!0}),u(bo)!=="svelte-p9qvd1"&&(bo.innerHTML=Hr),Aa=i(Q),B=s(Q,"DIV",{class:!0});var Le=f(B);_(xt.$$.fragment,Le),Pa=i(Le),vo=s(Le,"P",{"data-svelte-h":!0}),u(vo)!=="svelte-1h74cdd"&&(vo.innerHTML=Rr),qa=i(Le),Co=s(Le,"UL",{"data-svelte-h":!0}),u(Co)!=="svelte-1ouiqrx"&&(Co.innerHTML=Vr),Ua=i(Le),yo=s(Le,"P",{"data-svelte-h":!0}),u(yo)!=="svelte-hzr4zl"&&(yo.innerHTML=Xr),Le.forEach(n),Q.forEach(n),Tn=i(e),le=s(e,"H2",{class:!0});var qn=f(le);Ie=s(qn,"A",{id:!0,class:!0,href:!0});var fs=f(Ie);Ho=s(fs,"SPAN",{});var gs=f(Ho);_($t.$$.fragment,gs),gs.forEach(n),fs.forEach(n),Na=i(qn),To=s(qn,"SPAN",{"data-svelte-h":!0}),u(To)!=="svelte-bm0law"&&(To.textContent=Lr),qn.forEach(n),wn=i(e),F=s(e,"DIV",{class:!0});var D=f(F);_(jt.$$.fragment,D),Ba=i(D),wo=s(D,"P",{"data-svelte-h":!0}),u(wo)!=="svelte-1kjof0d"&&(wo.textContent=Sr),Ga=i(D),Mo=s(D,"P",{"data-svelte-h":!0}),u(Mo)!=="svelte-hmtw9k"&&(Mo.innerHTML=Yr),Ha=i(D),xo=s(D,"P",{"data-svelte-h":!0}),u(xo)!=="svelte-hswkmf"&&(xo.innerHTML=Qr),Ra=i(D),G=s(D,"DIV",{class:!0});var Se=f(G);_(kt.$$.fragment,Se),Va=i(Se),$o=s(Se,"P",{"data-svelte-h":!0}),u($o)!=="svelte-k6vnmb"&&($o.innerHTML=Dr),Xa=i(Se),_(Ze.$$.fragment,Se),La=i(Se),_(Ae.$$.fragment,Se),Se.forEach(n),D.forEach(n),Mn=i(e),ie=s(e,"H2",{class:!0});var Un=f(ie);Pe=s(Un,"A",{id:!0,class:!0,href:!0});var _s=f(Pe);Ro=s(_s,"SPAN",{});var bs=f(Ro);_(Jt.$$.fragment,bs),bs.forEach(n),_s.forEach(n),Sa=i(Un),jo=s(Un,"SPAN",{"data-svelte-h":!0}),u(jo)!=="svelte-1qi137q"&&(jo.textContent=Or),Un.forEach(n),xn=i(e),de=s(e,"DIV",{class:!0});var Nn=f(de);_(Wt.$$.fragment,Nn),Ya=i(Nn),H=s(Nn,"DIV",{class:!0});var Ye=f(H);_(zt.$$.fragment,Ye),Qa=i(Ye),ko=s(Ye,"P",{"data-svelte-h":!0}),u(ko)!=="svelte-1cdxe99"&&(ko.innerHTML=Kr),Da=i(Ye),_(qe.$$.fragment,Ye),Oa=i(Ye),_(Ue.$$.fragment,Ye),Ye.forEach(n),Nn.forEach(n),$n=i(e),ce=s(e,"H2",{class:!0});var Bn=f(ce);Ne=s(Bn,"A",{id:!0,class:!0,href:!0});var vs=f(Ne);Vo=s(vs,"SPAN",{});var Cs=f(Vo);_(Ft.$$.fragment,Cs),Cs.forEach(n),vs.forEach(n),Ka=i(Bn),Jo=s(Bn,"SPAN",{"data-svelte-h":!0}),u(Jo)!=="svelte-j6p1gt"&&(Jo.textContent=es),Bn.forEach(n),jn=i(e),E=s(e,"DIV",{class:!0});var O=f(E);_(Et.$$.fragment,O),er=i(O),Wo=s(O,"P",{"data-svelte-h":!0}),u(Wo)!=="svelte-vug57w"&&(Wo.textContent=ts),tr=i(O),zo=s(O,"P",{"data-svelte-h":!0}),u(zo)!=="svelte-hmtw9k"&&(zo.innerHTML=os),or=i(O),Fo=s(O,"P",{"data-svelte-h":!0}),u(Fo)!=="svelte-hswkmf"&&(Fo.innerHTML=ns),nr=i(O),R=s(O,"DIV",{class:!0});var Qe=f(R);_(It.$$.fragment,Qe),ar=i(Qe),Eo=s(Qe,"P",{"data-svelte-h":!0}),u(Eo)!=="svelte-pl4kb7"&&(Eo.innerHTML=as),rr=i(Qe),_(Be.$$.fragment,Qe),sr=i(Qe),_(Ge.$$.fragment,Qe),Qe.forEach(n),O.forEach(n),kn=i(e),Xo=s(e,"P",{}),f(Xo).forEach(n),this.h()},h(){h(a,"name","hf:doc:metadata"),h(a,"content",JSON.stringify(Gs)),h(o,"id","clap"),h(o,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(o,"href","#clap"),h(T,"class","relative group"),h(he,"id","overview"),h(he,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(he,"href","#overview"),h(K,"class","relative group"),h(ue,"id","transformers.ClapConfig"),h(ue,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ue,"href","#transformers.ClapConfig"),h(ee,"class","relative group"),h(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(_e,"id","transformers.ClapTextConfig"),h(_e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(_e,"href","#transformers.ClapTextConfig"),h(te,"class","relative group"),h(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ve,"id","transformers.ClapAudioConfig"),h(ve,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ve,"href","#transformers.ClapAudioConfig"),h(oe,"class","relative group"),h(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(ye,"id","transformers.ClapFeatureExtractor"),h(ye,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(ye,"href","#transformers.ClapFeatureExtractor"),h(ne,"class","relative group"),h(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(we,"id","transformers.ClapProcessor"),h(we,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(we,"href","#transformers.ClapProcessor"),h(ae,"class","relative group"),h(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h($e,"id","transformers.ClapModel"),h($e,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h($e,"href","#transformers.ClapModel"),h(re,"class","relative group"),h(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ee,"id","transformers.ClapTextModel"),h(Ee,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ee,"href","#transformers.ClapTextModel"),h(se,"class","relative group"),h(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ie,"id","transformers.ClapTextModelWithProjection"),h(Ie,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ie,"href","#transformers.ClapTextModelWithProjection"),h(le,"class","relative group"),h(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Pe,"id","transformers.ClapAudioModel"),h(Pe,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Pe,"href","#transformers.ClapAudioModel"),h(ie,"class","relative group"),h(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(Ne,"id","transformers.ClapAudioModelWithProjection"),h(Ne,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(Ne,"href","#transformers.ClapAudioModelWithProjection"),h(ce,"class","relative group"),h(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),h(E,"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,d){t(document.head,a),m(e,w,d),m(e,p,d),m(e,c,d),m(e,T,d),t(T,o),t(o,M),b(De,M,null),t(T,Gn),t(T,Nt),m(e,tn,d),m(e,K,d),t(K,he),t(he,Zo),b(Oe,Zo,null),t(K,Hn),t(K,Bt),m(e,on,d),m(e,Ke,d),m(e,nn,d),m(e,et,d),m(e,an,d),m(e,tt,d),m(e,rn,d),m(e,ot,d),m(e,sn,d),m(e,nt,d),m(e,ln,d),m(e,ee,d),t(ee,ue),t(ue,Ao),b(at,Ao,null),t(ee,Rn),t(ee,Gt),m(e,dn,d),m(e,k,d),b(rt,k,null),t(k,Vn),t(k,Ht),t(k,Xn),t(k,Rt),t(k,Ln),b(fe,k,null),t(k,Sn),t(k,ge),b(st,ge,null),t(ge,Yn),t(ge,Vt),m(e,cn,d),m(e,te,d),t(te,_e),t(_e,Po),b(lt,Po,null),t(te,Qn),t(te,Xt),m(e,pn,d),m(e,Z,d),b(it,Z,null),t(Z,Dn),t(Z,Lt),t(Z,On),t(Z,St),t(Z,Kn),b(be,Z,null),m(e,mn,d),m(e,oe,d),t(oe,ve),t(ve,qo),b(dt,qo,null),t(oe,ea),t(oe,Yt),m(e,hn,d),m(e,A,d),b(ct,A,null),t(A,ta),t(A,Qt),t(A,oa),t(A,Dt),t(A,na),b(Ce,A,null),m(e,un,d),m(e,ne,d),t(ne,ye),t(ye,Uo),b(pt,Uo,null),t(ne,aa),t(ne,Ot),m(e,fn,d),m(e,J,d),b(mt,J,null),t(J,ra),t(J,Kt),t(J,sa),t(J,eo),t(J,la),t(J,to),t(J,ia),t(J,Te),b(ht,Te,null),t(Te,da),t(Te,oo),m(e,gn,d),m(e,ae,d),t(ae,we),t(we,No),b(ut,No,null),t(ae,ca),t(ae,no),m(e,_n,d),m(e,W,d),b(ft,W,null),t(W,pa),t(W,ao),t(W,ma),t(W,ro),t(W,ha),t(W,Me),b(gt,Me,null),t(Me,ua),t(Me,so),t(W,fa),t(W,xe),b(_t,xe,null),t(xe,ga),t(xe,lo),m(e,bn,d),m(e,re,d),t(re,$e),t($e,Bo),b(bt,Bo,null),t(re,_a),t(re,io),m(e,vn,d),m(e,j,d),b(vt,j,null),t(j,ba),t(j,co),t(j,va),t(j,po),t(j,Ca),t(j,q),b(Ct,q,null),t(q,ya),t(q,mo),t(q,Ta),b(je,q,null),t(q,wa),b(ke,q,null),t(j,Ma),t(j,U),b(yt,U,null),t(U,xa),t(U,ho),t(U,$a),b(Je,U,null),t(U,ja),b(We,U,null),t(j,ka),t(j,N),b(Tt,N,null),t(N,Ja),t(N,uo),t(N,Wa),b(ze,N,null),t(N,za),b(Fe,N,null),m(e,Cn,d),m(e,se,d),t(se,Ee),t(Ee,Go),b(wt,Go,null),t(se,Fa),t(se,fo),m(e,yn,d),m(e,z,d),b(Mt,z,null),t(z,Ea),t(z,go),t(z,Ia),t(z,_o),t(z,Za),t(z,bo),t(z,Aa),t(z,B),b(xt,B,null),t(B,Pa),t(B,vo),t(B,qa),t(B,Co),t(B,Ua),t(B,yo),m(e,Tn,d),m(e,le,d),t(le,Ie),t(Ie,Ho),b($t,Ho,null),t(le,Na),t(le,To),m(e,wn,d),m(e,F,d),b(jt,F,null),t(F,Ba),t(F,wo),t(F,Ga),t(F,Mo),t(F,Ha),t(F,xo),t(F,Ra),t(F,G),b(kt,G,null),t(G,Va),t(G,$o),t(G,Xa),b(Ze,G,null),t(G,La),b(Ae,G,null),m(e,Mn,d),m(e,ie,d),t(ie,Pe),t(Pe,Ro),b(Jt,Ro,null),t(ie,Sa),t(ie,jo),m(e,xn,d),m(e,de,d),b(Wt,de,null),t(de,Ya),t(de,H),b(zt,H,null),t(H,Qa),t(H,ko),t(H,Da),b(qe,H,null),t(H,Oa),b(Ue,H,null),m(e,$n,d),m(e,ce,d),t(ce,Ne),t(Ne,Vo),b(Ft,Vo,null),t(ce,Ka),t(ce,Jo),m(e,jn,d),m(e,E,d),b(Et,E,null),t(E,er),t(E,Wo),t(E,tr),t(E,zo),t(E,or),t(E,Fo),t(E,nr),t(E,R),b(It,R,null),t(R,ar),t(R,Eo),t(R,rr),b(Be,R,null),t(R,sr),b(Ge,R,null),m(e,kn,d),m(e,Xo,d),Jn=!0},p(e,[d]){const Zt={};d&2&&(Zt.$$scope={dirty:d,ctx:e}),fe.$set(Zt);const Lo={};d&2&&(Lo.$$scope={dirty:d,ctx:e}),be.$set(Lo);const So={};d&2&&(So.$$scope={dirty:d,ctx:e}),Ce.$set(So);const At={};d&2&&(At.$$scope={dirty:d,ctx:e}),je.$set(At);const Yo={};d&2&&(Yo.$$scope={dirty:d,ctx:e}),ke.$set(Yo);const Qo={};d&2&&(Qo.$$scope={dirty:d,ctx:e}),Je.$set(Qo);const Pt={};d&2&&(Pt.$$scope={dirty:d,ctx:e}),We.$set(Pt);const Do={};d&2&&(Do.$$scope={dirty:d,ctx:e}),ze.$set(Do);const Oo={};d&2&&(Oo.$$scope={dirty:d,ctx:e}),Fe.$set(Oo);const P={};d&2&&(P.$$scope={dirty:d,ctx:e}),Ze.$set(P);const qt={};d&2&&(qt.$$scope={dirty:d,ctx:e}),Ae.$set(qt);const Ut={};d&2&&(Ut.$$scope={dirty:d,ctx:e}),qe.$set(Ut);const Ko={};d&2&&(Ko.$$scope={dirty:d,ctx:e}),Ue.$set(Ko);const en={};d&2&&(en.$$scope={dirty:d,ctx:e}),Be.$set(en);const L={};d&2&&(L.$$scope={dirty:d,ctx:e}),Ge.$set(L)},i(e){Jn||(v(De.$$.fragment,e),v(Oe.$$.fragment,e),v(at.$$.fragment,e),v(rt.$$.fragment,e),v(fe.$$.fragment,e),v(st.$$.fragment,e),v(lt.$$.fragment,e),v(it.$$.fragment,e),v(be.$$.fragment,e),v(dt.$$.fragment,e),v(ct.$$.fragment,e),v(Ce.$$.fragment,e),v(pt.$$.fragment,e),v(mt.$$.fragment,e),v(ht.$$.fragment,e),v(ut.$$.fragment,e),v(ft.$$.fragment,e),v(gt.$$.fragment,e),v(_t.$$.fragment,e),v(bt.$$.fragment,e),v(vt.$$.fragment,e),v(Ct.$$.fragment,e),v(je.$$.fragment,e),v(ke.$$.fragment,e),v(yt.$$.fragment,e),v(Je.$$.fragment,e),v(We.$$.fragment,e),v(Tt.$$.fragment,e),v(ze.$$.fragment,e),v(Fe.$$.fragment,e),v(wt.$$.fragment,e),v(Mt.$$.fragment,e),v(xt.$$.fragment,e),v($t.$$.fragment,e),v(jt.$$.fragment,e),v(kt.$$.fragment,e),v(Ze.$$.fragment,e),v(Ae.$$.fragment,e),v(Jt.$$.fragment,e),v(Wt.$$.fragment,e),v(zt.$$.fragment,e),v(qe.$$.fragment,e),v(Ue.$$.fragment,e),v(Ft.$$.fragment,e),v(Et.$$.fragment,e),v(It.$$.fragment,e),v(Be.$$.fragment,e),v(Ge.$$.fragment,e),Jn=!0)},o(e){C(De.$$.fragment,e),C(Oe.$$.fragment,e),C(at.$$.fragment,e),C(rt.$$.fragment,e),C(fe.$$.fragment,e),C(st.$$.fragment,e),C(lt.$$.fragment,e),C(it.$$.fragment,e),C(be.$$.fragment,e),C(dt.$$.fragment,e),C(ct.$$.fragment,e),C(Ce.$$.fragment,e),C(pt.$$.fragment,e),C(mt.$$.fragment,e),C(ht.$$.fragment,e),C(ut.$$.fragment,e),C(ft.$$.fragment,e),C(gt.$$.fragment,e),C(_t.$$.fragment,e),C(bt.$$.fragment,e),C(vt.$$.fragment,e),C(Ct.$$.fragment,e),C(je.$$.fragment,e),C(ke.$$.fragment,e),C(yt.$$.fragment,e),C(Je.$$.fragment,e),C(We.$$.fragment,e),C(Tt.$$.fragment,e),C(ze.$$.fragment,e),C(Fe.$$.fragment,e),C(wt.$$.fragment,e),C(Mt.$$.fragment,e),C(xt.$$.fragment,e),C($t.$$.fragment,e),C(jt.$$.fragment,e),C(kt.$$.fragment,e),C(Ze.$$.fragment,e),C(Ae.$$.fragment,e),C(Jt.$$.fragment,e),C(Wt.$$.fragment,e),C(zt.$$.fragment,e),C(qe.$$.fragment,e),C(Ue.$$.fragment,e),C(Ft.$$.fragment,e),C(Et.$$.fragment,e),C(It.$$.fragment,e),C(Be.$$.fragment,e),C(Ge.$$.fragment,e),Jn=!1},d(e){e&&(n(w),n(p),n(c),n(T),n(tn),n(K),n(on),n(Ke),n(nn),n(et),n(an),n(tt),n(rn),n(ot),n(sn),n(nt),n(ln),n(ee),n(dn),n(k),n(cn),n(te),n(pn),n(Z),n(mn),n(oe),n(hn),n(A),n(un),n(ne),n(fn),n(J),n(gn),n(ae),n(_n),n(W),n(bn),n(re),n(vn),n(j),n(Cn),n(se),n(yn),n(z),n(Tn),n(le),n(wn),n(F),n(Mn),n(ie),n(xn),n(de),n($n),n(ce),n(jn),n(E),n(kn),n(Xo)),n(a),y(De),y(Oe),y(at),y(rt),y(fe),y(st),y(lt),y(it),y(be),y(dt),y(ct),y(Ce),y(pt),y(mt),y(ht),y(ut),y(ft),y(gt),y(_t),y(bt),y(vt),y(Ct),y(je),y(ke),y(yt),y(Je),y(We),y(Tt),y(ze),y(Fe),y(wt),y(Mt),y(xt),y($t),y(jt),y(kt),y(Ze),y(Ae),y(Jt),y(Wt),y(zt),y(qe),y(Ue),y(Ft),y(Et),y(It),y(Be),y(Ge)}}}const Gs={local:"clap",sections:[{local:"overview",title:"Overview"},{local:"transformers.ClapConfig",title:"ClapConfig"},{local:"transformers.ClapTextConfig",title:"ClapTextConfig"},{local:"transformers.ClapAudioConfig",title:"ClapAudioConfig"},{local:"transformers.ClapFeatureExtractor",title:"ClapFeatureExtractor"},{local:"transformers.ClapProcessor",title:"ClapProcessor"},{local:"transformers.ClapModel",title:"ClapModel"},{local:"transformers.ClapTextModel",title:"ClapTextModel"},{local:"transformers.ClapTextModelWithProjection",title:"ClapTextModelWithProjection"},{local:"transformers.ClapAudioModel",title:"ClapAudioModel"},{local:"transformers.ClapAudioModelWithProjection",title:"ClapAudioModelWithProjection"}],title:"CLAP"};function Hs(x){return Ts(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ds extends ws{constructor(a){super(),Ms(this,a,Hs,Bs,ys,{})}}export{Ds as component};
