# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input

    window_size (`int`, *optional*, defaults to 8):
        Image size of the spectrogram
    spec_size (`int`, *optional*, defaults to 256):
        Desired input size of the spectrogram that the model supports. It can be different from the output of the
        `ClapFeatureExtractor`, in which case the input features will be resized. Corresponds to the `image_size`
        of the audio models.
    patch_stride (`list`, *optional*, defaults to `[4, 4]`):
        Patch stride for the audio spectrogram
    num_classes (`int`, *optional*, defaults to 527):
        Number of classes used for the head training
    enable_fusion (`bool`, *optional*, defaults to `False`):
        Whether or not to enable patch fusion. This is the main contribution of the authors, and should give the
        best results.
    fusion_type (`[type]`, *optional*):
        Fusion type used for the patch fusion.
    patch_embed_input_channels (`int`, *optional*, defaults to 1):
        Number of channels used for the input spectrogram
    flatten_patch_embeds (`bool`, *optional*, defaults to `True`):
        Whether or not to flatten the patch embeddings
    patch_embeds_hidden_size (`int`, *optional*, defaults to 96):
        Hidden size of the patch embeddings. It is used as the number of output channels.
    enable_patch_layer_norm (`bool`, *optional*, defaults to `True`):
        Whether or not to enable layer normalization for the patch embeddings
    aff_block_r (`int`, *optional*, defaults to 4):
        downsize_ratio used in the AudioFF block

    Example:

    ```python
    >>> from transformers import ClapAudioConfig, ClapAudioModel

    >>> # Initializing a ClapAudioConfig with laion/clap-htsat-fused style configuration
    >>> configuration = ClapAudioConfig()

    >>> # Initializing a ClapAudioModel (with random weights) from the laion/clap-htsat-fused style configuration
    >>> model = ClapAudioModel(configuration)

    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```
=== parse google
short_description: 'window_size (`int`, *optional*, defaults to 8):'
long_description: |
      Image size of the spectrogram
  spec_size (`int`, *optional*, defaults to 256):
      Desired input size of the spectrogram that the model supports. It can be different from the output of the
      `ClapFeatureExtractor`, in which case the input features will be resized. Corresponds to the `image_size`
      of the audio models.
  patch_stride (`list`, *optional*, defaults to `[4, 4]`):
      Patch stride for the audio spectrogram
  num_classes (`int`, *optional*, defaults to 527):
      Number of classes used for the head training
  enable_fusion (`bool`, *optional*, defaults to `False`):
      Whether or not to enable patch fusion. This is the main contribution of the authors, and should give the
      best results.
  fusion_type (`[type]`, *optional*):
      Fusion type used for the patch fusion.
  patch_embed_input_channels (`int`, *optional*, defaults to 1):
      Number of channels used for the input spectrogram
  flatten_patch_embeds (`bool`, *optional*, defaults to `True`):
      Whether or not to flatten the patch embeddings
  patch_embeds_hidden_size (`int`, *optional*, defaults to 96):
      Hidden size of the patch embeddings. It is used as the number of output channels.
  enable_patch_layer_norm (`bool`, *optional*, defaults to `True`):
      Whether or not to enable layer normalization for the patch embeddings
  aff_block_r (`int`, *optional*, defaults to 4):
      downsize_ratio used in the AudioFF block
  
  ```python
  >>> from transformers import ClapAudioConfig, ClapAudioModel
  
  >>> # Initializing a ClapAudioConfig with laion/clap-htsat-fused style configuration
  >>> configuration = ClapAudioConfig()
  
  >>> # Initializing a ClapAudioModel (with random weights) from the laion/clap-htsat-fused style configuration
  >>> model = ClapAudioModel(configuration)
  
  >>> # Accessing the model configuration
  >>> configuration = model.config
  ```
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringExample
  kind: examples
  key: 'examples'
=== detect
google
=== compose google
window_size (`int`, *optional*, defaults to 8):

    Image size of the spectrogram
spec_size (`int`, *optional*, defaults to 256):
    Desired input size of the spectrogram that the model supports. It can be different from the output of the
    `ClapFeatureExtractor`, in which case the input features will be resized. Corresponds to the `image_size`
    of the audio models.
patch_stride (`list`, *optional*, defaults to `[4, 4]`):
    Patch stride for the audio spectrogram
num_classes (`int`, *optional*, defaults to 527):
    Number of classes used for the head training
enable_fusion (`bool`, *optional*, defaults to `False`):
    Whether or not to enable patch fusion. This is the main contribution of the authors, and should give the
    best results.
fusion_type (`[type]`, *optional*):
    Fusion type used for the patch fusion.
patch_embed_input_channels (`int`, *optional*, defaults to 1):
    Number of channels used for the input spectrogram
flatten_patch_embeds (`bool`, *optional*, defaults to `True`):
    Whether or not to flatten the patch embeddings
patch_embeds_hidden_size (`int`, *optional*, defaults to 96):
    Hidden size of the patch embeddings. It is used as the number of output channels.
enable_patch_layer_norm (`bool`, *optional*, defaults to `True`):
    Whether or not to enable layer normalization for the patch embeddings
aff_block_r (`int`, *optional*, defaults to 4):
    downsize_ratio used in the AudioFF block

```python
>>> from transformers import ClapAudioConfig, ClapAudioModel

>>> # Initializing a ClapAudioConfig with laion/clap-htsat-fused style configuration
>>> configuration = ClapAudioConfig()

>>> # Initializing a ClapAudioModel (with random weights) from the laion/clap-htsat-fused style configuration
>>> model = ClapAudioModel(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```

Examples:
