Files
HuggingFace_transformer/tests/models
ghlai9665 e9fd583ce0 LayoutLMv2Processor: ensure 1-to-1 mapping between images and samples in case of overflowing tokens (#17092)
* add get_overflowing_images function to ensure 1-to-1 mapping between samples and images in LayoutLMv2Processor

* make style

* add test for overflowing_tokens, change assert to ValueError, avoiding unrelated formatting changes

* change line length by passing --preview into black
2022-05-09 07:39:08 -04:00
..
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00