Skip to content

torch.any and torch.all map uint8 -> uint8 but should map uint8 -> bool #50342

@mruberry

Description

@mruberry

This historic behavior was preserved in recent updates to torch.any and torch.all because it's relied upon by some PyTorch programs. Changing this is BC-breaking and requires a torchscript adapter be written.

cc @ezyang @gchanan @mruberry @rgommers @heitorschueroff

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: bc-breakingRelated to a BC-breaking changemodule: numpyRelated to numpy support, and also numpy compatibility of our operatorsmodule: reductionstopic: bc breakingtopic categorytriagedThis 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