Skip to content

New 'bool' type doesn't support inversion in 1.1.0 #20024

@malmaud

Description

@malmaud
~torch.tensor(True).to(torch.bool)        

TypeError: ~ (operator.invert) is only implemented on byte tensors

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