mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
correct (#13304)
This commit is contained in:
parent
4046e66e40
commit
4362ee298a
@ -988,6 +988,9 @@ class RagModelIntegrationTests(unittest.TestCase):
|
||||
torch_device
|
||||
)
|
||||
|
||||
if torch_device == "cuda":
|
||||
rag_token.half()
|
||||
|
||||
input_dict = tokenizer(
|
||||
self.test_data_questions,
|
||||
return_tensors="pt",
|
||||
|
Loading…
Reference in New Issue
Block a user