Skip to content

triu not implemented for Bool #24035

@calincru

Description

@calincru

I'm getting the error [title] with the latest nightly build. I was doing

torch.ones(n, m, dtype=torch.uint8).triu_() 

to get an upper-triangular mask, but now I'm getting a deprecation warning about using tensors other than booleans in torch.masked_scatter, so I changed the above to

torch.ones(n, m, dtype=torch.bool).triu_()

which now fails with RuntimeError: "triu" not implemented for 'Bool'. Is this known and/or WIP?

Metadata

Metadata

Assignees

No one assigned

    Labels

    high prioritymodule: boolean tensortriagedThis 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