transformers/tests/models/layoutlm
Ankur Goyal 5c4c869014
Add LayoutLMForQuestionAnswering model (#18407)
* Add LayoutLMForQuestionAnswering model

* Fix output

* Remove TF TODOs

* Add test cases

* Add docs

* TF implementation

* Fix PT/TF equivalence

* Fix loss

* make fixup

* Fix up documentation code examples

* Fix up documentation examples + test them

* Remove LayoutLMForQuestionAnswering from the auto mapping

* Docstrings

* Add better docstrings

* Undo whitespace changes

* Update tokenizers in comments

* Fixup code and remove `from_pt=True`

* Fix tests

* Revert some unexpected docstring changes

* Fix tests by overriding _prepare_for_class

Co-authored-by: Ankur Goyal <ankur@impira.com>
2022-08-31 10:05:33 +02:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_modeling_layoutlm.py Add LayoutLMForQuestionAnswering model (#18407) 2022-08-31 10:05:33 +02:00
test_modeling_tf_layoutlm.py Add LayoutLMForQuestionAnswering model (#18407) 2022-08-31 10:05:33 +02:00
test_tokenization_layoutlm.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00