docformer icon indicating copy to clipboard operation
docformer copied to clipboard

Shape mismatch during sanity check

Open Akhilesh64 opened this issue 3 years ago • 1 comments

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.

Akhilesh64 avatar Aug 25 '22 10:08 Akhilesh64

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.

uakarsh avatar Aug 25 '22 15:08 uakarsh