From 52decab371259bba640342e157f9836496557eed Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Wed, 21 Oct 2020 19:06:23 +0200 Subject: [PATCH] fix test (#7947) --- tests/test_modeling_gpt2.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_modeling_gpt2.py b/tests/test_modeling_gpt2.py index f7fe21e048..2fd4256f6b 100644 --- a/tests/test_modeling_gpt2.py +++ b/tests/test_modeling_gpt2.py @@ -446,7 +446,6 @@ class GPT2ModelTest(ModelTesterMixin, unittest.TestCase): inputs = tokenizer(sentences, return_tensors="pt", padding=True) - torch.manual_seed(0) outputs = model.generate( input_ids=inputs["input_ids"].to(torch_device), attention_mask=inputs["attention_mask"].to(torch_device),