Skip to content

Expose a dtype.is_signed #29475

@nairbv

Description

@nairbv

🚀 Feature

I think it would be helpful to expose a dtype.is_signed, similar to dtype.is_floating_point. e.g. torch.uint8.is_signed==False.

Motivation

would have been helpful when writing tests for:
#29231

I think we could update the tests once adding this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: internalsRelated to internal abstractions in c10 and ATentriagedThis 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