mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
As discussed in the review of https://github.com/pytorch/pytorch/pull/106211, remove several noops (https://github.com/pytorch/pytorch/pull/106211#pullrequestreview-1559806543 and https://github.com/pytorch/pytorch/pull/106211#pullrequestreview-1559809287). Pull Request resolved: https://github.com/pytorch/pytorch/pull/107596 Approved by: https://github.com/lezcano
14 lines
246 B
Python
14 lines
246 B
Python
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)
|