# torch 2.15.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Clamps the probabilities to be in the open interval `(0, 1)`.

    The probabilities would be clamped between `eps` and `1 - eps`,
    and `eps` would be the smallest representable positive number for the input data type.

    Args:
        probs (Tensor): A tensor of probabilities.

    Returns:
        Tensor: The clamped probabilities.

    Examples:
        >>> probs = torch.tensor([0.0, 0.5, 1.0])
        >>> clamp_probs(probs)
        tensor([1.1921e-07, 5.0000e-01, 1.0000e+00])

        >>> probs = torch.tensor([0.0, 0.5, 1.0], dtype=torch.float64)
        >>> clamp_probs(probs)
        tensor([2.2204e-16, 5.0000e-01, 1.0000e+00], dtype=torch.float64)

    
=== parse google
short_description: 'Clamps the probabilities to be in the open interval `(0, 1)`.'
long_description: |
  The probabilities would be clamped between `eps` and `1 - eps`,
  and `eps` would be the smallest representable positive number for the input data type.
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'A tensor of probabilities.'
  kind: param
  key: 'param'
  arg_name: 'probs'
  type_name: 'Tensor'
  is_optional: False
- DocstringReturns
  description: 'The clamped probabilities.'
  kind: returns
  key: 'returns'
  type_name: 'Tensor'
  is_generator: False
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> probs = torch.tensor([0.0, 0.5, 1.0])'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> clamp_probs(probs)
    tensor([1.1921e-07, 5.0000e-01, 1.0000e+00])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> probs = torch.tensor([0.0, 0.5, 1.0], dtype=torch.float64)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> clamp_probs(probs)
    tensor([2.2204e-16, 5.0000e-01, 1.0000e+00], dtype=torch.float64)
=== detect
google
=== compose google
Clamps the probabilities to be in the open interval `(0, 1)`.

The probabilities would be clamped between `eps` and `1 - eps`,
and `eps` would be the smallest representable positive number for the input data type.

Args:
    probs (Tensor): A tensor of probabilities.

Returns:
    Tensor: The clamped probabilities.

Examples:
    >>> probs = torch.tensor([0.0, 0.5, 1.0])
    >>> clamp_probs(probs)
    tensor([1.1921e-07, 5.0000e-01, 1.0000e+00])
    >>> probs = torch.tensor([0.0, 0.5, 1.0], dtype=torch.float64)
    >>> clamp_probs(probs)
    tensor([2.2204e-16, 5.0000e-01, 1.0000e+00], dtype=torch.float64)
