Files
HuggingFace_transformer/tests
Mikkel Denker 70e7d1d656 Fixes torch jit tracing for LayoutLMv2 model (re-open) (#18313)
* Fixes torch jit tracing for LayoutLMv2 model.
Pytorch seems to reuse memory for input_shape which caused a mismatch in shapes later in the forward pass.

* Fixed code quality

* avoid unneeded allocation of vector for shape
2022-07-27 06:38:40 -04:00
..
2022-07-18 15:17:07 +02:00
2022-07-19 12:02:35 +02:00
2022-05-12 16:25:55 -04:00