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

    Audio preprocessing for Perceiver Encoder.

    Args:
        config ([*PerceiverConfig*]):
            Model configuration.
        prep_type (`str`, *optional*, defaults to `"patches"`):
            Preprocessor type to use. Only "patches" is supported.
        samples_per_patch (`int`, *optional*, defaults to 96):
            Number of samples per patch.
        position_encoding_type (`str`, *optional*, defaults to `"fourier"`):
            Type of position encoding to use. Can be "trainable" or "fourier".
        concat_or_add_pos (`str`, *optional*, defaults to `"concat"`):
            How to concatenate the position encoding to the input. Can be "concat" or "add".
        out_channels (`int`, *optional*, defaults to 64):
            Number of channels in the output.
        project_pos_dim (`int`, *optional*, defaults to -1):
            Dimension of the position encoding to project to. If -1, no projection is applied.
        **position_encoding_kwargs (`Dict`, *optional*):
            Keyword arguments for the position encoding.
    
=== parse google
short_description: 'Audio preprocessing for Perceiver Encoder.'
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'Model configuration.'
  kind: param
  key: 'param'
  arg_name: 'config'
  type_name: '[*PerceiverConfig*]'
  is_optional: False
- DocstringParam
  description: 'Preprocessor type to use. Only "patches" is supported.'
  kind: param
  key: 'param'
  arg_name: 'prep_type'
  type_name: '`str`'
  is_optional: True
  default: '"patches"'
  raw_type_name: '`str`, *optional*, defaults to `"patches"`'
- DocstringParam
  description: 'Number of samples per patch.'
  kind: param
  key: 'param'
  arg_name: 'samples_per_patch'
  type_name: '`int`'
  is_optional: True
  default: '96'
  raw_type_name: '`int`, *optional*, defaults to 96'
- DocstringParam
  description: 'Type of position encoding to use. Can be "trainable" or "fourier".'
  kind: param
  key: 'param'
  arg_name: 'position_encoding_type'
  type_name: '`str`'
  is_optional: True
  default: '"fourier"'
  raw_type_name: '`str`, *optional*, defaults to `"fourier"`'
- DocstringParam
  description: 'How to concatenate the position encoding to the input. Can be "concat" or "add".'
  kind: param
  key: 'param'
  arg_name: 'concat_or_add_pos'
  type_name: '`str`'
  is_optional: True
  default: '"concat"'
  raw_type_name: '`str`, *optional*, defaults to `"concat"`'
- DocstringParam
  description: 'Number of channels in the output.'
  kind: param
  key: 'param'
  arg_name: 'out_channels'
  type_name: '`int`'
  is_optional: True
  default: '64'
  raw_type_name: '`int`, *optional*, defaults to 64'
- DocstringParam
  description: 'Dimension of the position encoding to project to. If -1, no projection is applied.'
  kind: param
  key: 'param'
  arg_name: 'project_pos_dim'
  type_name: '`int`'
  is_optional: True
  default: '-1'
  raw_type_name: '`int`, *optional*, defaults to -1'
- DocstringParam
  description: 'Keyword arguments for the position encoding.'
  kind: param
  key: 'param'
  arg_name: '**position_encoding_kwargs'
  type_name: '`Dict`'
  is_optional: True
  raw_type_name: '`Dict`, *optional*'
=== detect
google
=== compose google
Audio preprocessing for Perceiver Encoder.

Args:
    config ([*PerceiverConfig*]): Model configuration.
    prep_type (`str`, *optional*, defaults to `"patches"`): Preprocessor type to use. Only "patches" is supported.
    samples_per_patch (`int`, *optional*, defaults to 96): Number of samples per patch.
    position_encoding_type (`str`, *optional*, defaults to `"fourier"`): Type of position encoding to use. Can be "trainable" or "fourier".
    concat_or_add_pos (`str`, *optional*, defaults to `"concat"`): How to concatenate the position encoding to the input. Can be "concat" or "add".
    out_channels (`int`, *optional*, defaults to 64): Number of channels in the output.
    project_pos_dim (`int`, *optional*, defaults to -1): Dimension of the position encoding to project to. If -1, no projection is applied.
    **position_encoding_kwargs (`Dict`, *optional*): Keyword arguments for the position encoding.
