Files
HuggingFace_transformer/docs/source/en
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
..
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2023-08-21 16:35:00 +01:00
2022-04-04 10:25:46 -04:00
2023-08-04 14:56:29 +02:00
2023-07-25 22:10:06 +02:00