import torch


def is_torch(x) -> bool: # pragma: no
    """
    Helper function to check whether the input is a torch tensor.

    Parameters
    ----------
    x : [type]
        Input data

    Returns
    -------
    bool
        Boolean value indicating whether the input is a torch tensor
    """
    return isinstance(x, torch.Tensor)