We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f08ef3 commit dd25263Copy full SHA for dd25263
pytorch_lightning/plugins/training_type/tpu_spawn.py
@@ -20,6 +20,7 @@
20
21
import torch
22
import torch.multiprocessing as mp
23
+from torch.nn import Module
24
from torch.utils.data import DataLoader
25
26
import pytorch_lightning as pl
@@ -118,6 +119,9 @@ def pre_dispatch(self):
118
119
def setup(self) -> None:
120
self.create_mp_queue()
121
122
+ def _setup_model(self, model: Module) -> Module:
123
+ return model
124
+
125
def create_mp_queue(self):
126
self.start_method = "fork"
127
smp = mp.get_context(self.start_method)
0 commit comments