Sign in
android
/
platform
/
external
/
pytorch
/
f31b8bbc5b8834cdac83d1b92e36a8896ed2e4b9
/
.
/
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
)