Skip to content

[feature request] Useful repr for torch.finfo/iinfo #39991

@vadimkantorov

Description

@vadimkantorov

Currently:

>>> torch.finfo(torch.float16)
finfo(type=Half)
>>> torch.iinfo(torch.int16)
iinfo(type=Short)

It would be nice to include directly min/max/eps/tiny values in repr for inspection

Also, capitalized "Half", "Short" do not correspond to names in other places, maybe instead it should read torch.float16 / torch.int16...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNot as big of a feature, but technically not a bug. Should be easy to fixtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions