transformers/docs/source
Alex McKinney 5eeaef921f
Adds TRANSFORMERS_TEST_BACKEND (#25655)
* Adds `TRANSFORMERS_TEST_BACKEND`
Allows specifying arbitrary additional import following first `import torch`.
This is useful for some custom backends, that will require additional imports to trigger backend registration with upstream torch.
See https://github.com/pytorch/benchmark/pull/1805 for a similar change in `torchbench`.

* Update src/transformers/testing_utils.py

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>

* Adds real backend example to documentation

---------

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
2023-08-22 17:08:13 +02:00
..
de [TYPO] fix typo/format in quicktour.md (#25519) 2023-08-16 08:03:23 +02:00
en Adds TRANSFORMERS_TEST_BACKEND (#25655) 2023-08-22 17:08:13 +02:00
es [TYPO] fix typo/format in quicktour.md (#25519) 2023-08-16 08:03:23 +02:00
fr [TYPO] fix typo/format in quicktour.md (#25519) 2023-08-16 08:03:23 +02:00
it [Docs] Fix un-rendered images (#25561) 2023-08-17 12:08:11 +02:00
ja Migrate doc files to Markdown. (#24376) 2023-06-20 18:07:47 -04:00
ko 🌐 [i18n-KO] Translated perf_train_tpu_tf.md to Korean (#25433) 2023-08-18 23:08:34 +02:00
ms Migrate doc files to Markdown. (#24376) 2023-06-20 18:07:47 -04:00
pt [TYPO] fix typo/format in quicktour.md (#25519) 2023-08-16 08:03:23 +02:00
zh [TYPO] fix typo/format in quicktour.md (#25519) 2023-08-16 08:03:23 +02:00
_config.py Adding evaluate to the list of libraries required in generated notebooks (#20850) 2022-12-21 14:04:08 +01:00