Skip to content

mean/sum(dtype) arg matching gives bad error message with positional dtype arg #25775

@ssnl

Description

@ssnl

🐛 Bug

t.sum(torch.float) is broken yet t.sum(dtype=dtype) works. The error message is confusing as well.

Screenshot 2019-09-06 11 11 08

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: error checkingBugs related to incorrect/lacking error checkingmodule: reductionstriagedThis 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