KEMBAR78
Dimensions of GRU's hidden state mismatch but doesn't throw an error · Issue #3259 · pytorch/pytorch · GitHub
Skip to content

Dimensions of GRU's hidden state mismatch but doesn't throw an error #3259

@bainjamain

Description

@bainjamain

When the input h0 to an instance of nn.GRU has a wrong shape it doesn’t raise an error (at least in some cases). For instance, if it expects a hidden state of shape (2, n, p) but receives one of shape (4, n, p) it will not complain. I didn't check with LSTM if the same happens.

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