def min_value_of_dtype(dtype: torch.dtype):
    """
    Returns the minimum value of a given PyTorch data type. Does not allow torch.bool.
    """
    return info_value_of_dtype(dtype).min
Returns the minimum value of a given PyTorch data type. Does not allow torch.bool.
allennlp/nn/util.py