Sign in
android
/
platform
/
external
/
pytorch
/
848e7ac42a3c121d03bcff6cb53c1afb9b76164e
/
.
/
torch
/
_numpy
/
_getlimits.py
blob: b0c46094e8782f8309ba6cfa15cb59f93cf667a0 [
file
] [
log
] [
blame
]
# 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
)