Skip to content

torch.mm != torch.matmul #391

@AntonOfTheWoods

Description

@AntonOfTheWoods

Around 02:40:00 you say that that one is an alias of the other. That is not the case

https://pytorch.org/docs/stable/generated/torch.matmul.html#torch.matmul

https://pytorch.org/docs/stable/generated/torch.mm.html

They are different, in spite of the fact that in certain circumstances they might return the same thing. At the top of the mm docs they state

This function does not [broadcast](https://pytorch.org/docs/stable/notes/broadcasting.html#broadcasting-semantics). For broadcasting matrix products, see [torch.matmul()](https://pytorch.org/docs/stable/generated/torch.matmul.html#torch.matmul).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions