# torch 2.15.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Returns True if `obj` is a PyTorch storage object.

    Args:
        obj (Object): Object to test
    Example::

        >>> import torch
        >>> # UntypedStorage (recommended)
        >>> tensor = torch.tensor([1, 2, 3])
        >>> storage = tensor.untyped_storage()
        >>> torch.is_storage(storage)
        True
        >>>
        >>> # TypedStorage (legacy)
        >>> warnings.filterwarnings("ignore", message=".*TypedStorage is deprecated")  # docs: hide
        >>> typed_storage = torch.TypedStorage(5, dtype=torch.float32)
        >>> torch.is_storage(typed_storage)
        True
        >>>
        >>> # regular tensor (should return False)
        >>> torch.is_storage(tensor)
        False
        >>>
        >>> # non-storage object
        >>> torch.is_storage([1, 2, 3])
        False
    
=== parse google
short_description: 'Returns True if `obj` is a PyTorch storage object.'
long_description: |
  Example::
  
      >>> import torch
      >>> # UntypedStorage (recommended)
      >>> tensor = torch.tensor([1, 2, 3])
      >>> storage = tensor.untyped_storage()
      >>> torch.is_storage(storage)
      True
      >>>
      >>> # TypedStorage (legacy)
      >>> warnings.filterwarnings("ignore", message=".*TypedStorage is deprecated")  # docs: hide
      >>> typed_storage = torch.TypedStorage(5, dtype=torch.float32)
      >>> torch.is_storage(typed_storage)
      True
      >>>
      >>> # regular tensor (should return False)
      >>> torch.is_storage(tensor)
      False
      >>>
      >>> # non-storage object
      >>> torch.is_storage([1, 2, 3])
      False
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'Object to test'
  kind: param
  key: 'param'
  arg_name: 'obj'
  type_name: 'Object'
  is_optional: False
=== detect
google
=== compose google
Returns True if `obj` is a PyTorch storage object.

Example::

    >>> import torch
    >>> # UntypedStorage (recommended)
    >>> tensor = torch.tensor([1, 2, 3])
    >>> storage = tensor.untyped_storage()
    >>> torch.is_storage(storage)
    True
    >>>
    >>> # TypedStorage (legacy)
    >>> warnings.filterwarnings("ignore", message=".*TypedStorage is deprecated")  # docs: hide
    >>> typed_storage = torch.TypedStorage(5, dtype=torch.float32)
    >>> torch.is_storage(typed_storage)
    True
    >>>
    >>> # regular tensor (should return False)
    >>> torch.is_storage(tensor)
    False
    >>>
    >>> # non-storage object
    >>> torch.is_storage([1, 2, 3])
    False

Args:
    obj (Object): Object to test
