Skip to content

Issue with query reshaping (RuntimeError) #1

Description

@youngyoon911

RuntimeError: shape '[80, -1, 8, 40]' is invalid for input of size 20971520

Image

Because of this setting, transformer input's (hidden state) batch size turns into 16, but text embedding's (encoder_hidden_state) batch size remains 80, then causes that error.

How can I fix it?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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