Skip to content

Logsumexp is broken with out, as it is not inplace #9754

@t-vi

Description

@t-vi

Logsumexp is broken with out, as it is not inplace.

a = torch.randn(5,5)
c = torch.zeros(5,5)
b = c[0]
torch.logsumexp(a, 1, out=b)
print((c[0]==b).all())

compare with sum in place of logsumexp.
I'll have a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions