Skip to content

Commit 48a2234

Browse files
committed
cuda manual_seed is not necessary
1 parent 705c719 commit 48a2234

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytorch_lightning/trainer/seed.py

-2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ def seed_everything(seed: int = None):
2727
random.seed(seed)
2828
np.random.seed(seed)
2929
torch.manual_seed(seed)
30-
if torch.cuda.is_available():
31-
torch.cuda.manual_seed(seed)

0 commit comments

Comments
 (0)