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

        Get relative positional embeddings according to the relative positions of
            query and key sizes.

        Args:
            q_size (int):
                size of the query.
            k_size (int):
                size of key k.
            rel_pos (`torch.Tensor`):
                relative position embeddings (L, channel).

        Returns:
            Extracted positional embeddings according to relative positions.
        
=== parse google
short_description: 'Get relative positional embeddings according to the relative positions of'
long_description: '    query and key sizes.'
blank_after_short_description: False
blank_after_long_description: True
style: google
- DocstringParam
  description: 'size of the query.'
  kind: param
  key: 'param'
  arg_name: 'q_size'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: 'size of key k.'
  kind: param
  key: 'param'
  arg_name: 'k_size'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: 'relative position embeddings (L, channel).'
  kind: param
  key: 'param'
  arg_name: 'rel_pos'
  type_name: '`torch.Tensor`'
  is_optional: False
- DocstringReturns
  description: 'Extracted positional embeddings according to relative positions.'
  kind: returns
  key: 'returns'
  is_generator: False
=== detect
google
=== compose google
Get relative positional embeddings according to the relative positions of
    query and key sizes.

Args:
    q_size (int): size of the query.
    k_size (int): size of key k.
    rel_pos (`torch.Tensor`): relative position embeddings (L, channel).

Returns:
    Extracted positional embeddings according to relative positions.
