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

        Args:
            hidden_states (`torch.Tensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
            original_hidden_states (`torch.Tensor`): word embedding output that will be concatenated with
            hidden activations to form the input of the shared transformer layer.
            layer_idx (`int`): layer number.
            attention_mask (`torch.Tensor`, *optional*): attention mask of size
                `(batch, sequence_length)` where padding elements are indicated by 0.
            cache (`Cache`, *optional*): cached past key and value projection states
            use_cache (`bool`, *optional*):
                If set to `True`, `cache` key value states are returned and can be used to speed up decoding
                (see `cache`).
        
=== parse google
blank_after_short_description: False
blank_after_long_description: False
style: google
- DocstringParam
  description: 'input to the layer of shape `(batch, seq_len, embed_dim)`'
  kind: param
  key: 'param'
  arg_name: 'hidden_states'
  type_name: '`torch.Tensor`'
  is_optional: False
- DocstringParam
  description: |
    word embedding output that will be concatenated with
    hidden activations to form the input of the shared transformer layer.
  kind: param
  key: 'param'
  arg_name: 'original_hidden_states'
  type_name: '`torch.Tensor`'
  is_optional: False
- DocstringParam
  description: 'layer number.'
  kind: param
  key: 'param'
  arg_name: 'layer_idx'
  type_name: '`int`'
  is_optional: False
- DocstringParam
  description: |
    attention mask of size
    `(batch, sequence_length)` where padding elements are indicated by 0.
  kind: param
  key: 'param'
  arg_name: 'attention_mask'
  type_name: '`torch.Tensor`'
  is_optional: True
  raw_type_name: '`torch.Tensor`, *optional*'
- DocstringParam
  description: 'cached past key and value projection states'
  kind: param
  key: 'param'
  arg_name: 'cache'
  type_name: '`Cache`'
  is_optional: True
  raw_type_name: '`Cache`, *optional*'
- DocstringParam
  description: |
    If set to `True`, `cache` key value states are returned and can be used to speed up decoding
    (see `cache`).
  kind: param
  key: 'param'
  arg_name: 'use_cache'
  type_name: '`bool`'
  is_optional: True
  raw_type_name: '`bool`, *optional*'
=== detect
google
=== compose google
Args:
    hidden_states (`torch.Tensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
    original_hidden_states (`torch.Tensor`): word embedding output that will be concatenated with
        hidden activations to form the input of the shared transformer layer.
    layer_idx (`int`): layer number.
    attention_mask (`torch.Tensor`, *optional*): attention mask of size
        `(batch, sequence_length)` where padding elements are indicated by 0.
    cache (`Cache`, *optional*): cached past key and value projection states
    use_cache (`bool`, *optional*): If set to `True`, `cache` key value states are returned and can be used to speed up decoding
        (see `cache`).
