Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape mismatch during sanity check #40

Open
Akhilesh64 opened this issue Aug 25, 2022 · 1 comment
Open

Shape mismatch during sanity check #40

Akhilesh64 opened this issue Aug 25, 2022 · 1 comment

Comments

@Akhilesh64
Copy link

Akhilesh64 commented Aug 25, 2022

Can the target size be changed. Currently when I try to change it throws mat1 and mat2 shapes cannot be multiplied (3072x768 and 192x128) . I tried with target size (1000, 768). Tried setting max_position_embeddings to 768 and it throws stack expects each tensor to be equal size, but got [767, 8] at entry 0 and [768, 8] at entry 2. I am trying to replicate document classification task from the notebook provided.

@uakarsh
Copy link
Collaborator

uakarsh commented Aug 25, 2022

Yep, it is a bit hardcoded. You need to see the ResNet Feature Extractor in modeling.py for the changes. Rest all as far as I know, would be handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants