"vscode:/vscode.git/clone" did not exist on "1cd01b0af3911004d37a1423c4cdae6438e1e928"
Adds `TRANSFORMERS_TEST_DEVICE` (#25506)
* Adds `TRANSFORMERS_TEST_DEVICE` Mirrors the same API in the diffusers library. Useful in transformers too. * replace backend checking with trying `torch.device` * Adds better error message for unknown test devices * `make style` * adds documentation showing `TRANSFORMERS_TEST_DEVICE` usage.
Showing
Please register or sign in to comment