team-10/env/Lib/site-packages/torch/_numpy/_getlimits.py
2025-08-02 07:34:44 +02:00

15 lines
269 B
Python

# mypy: ignore-errors
import torch
from . import _dtypes
def finfo(dtyp):
torch_dtype = _dtypes.dtype(dtyp).torch_dtype
return torch.finfo(torch_dtype)
def iinfo(dtyp):
torch_dtype = _dtypes.dtype(dtyp).torch_dtype
return torch.iinfo(torch_dtype)