mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
[Tune] Changes for Pytorch Lightning 1.0 (#11375)
This commit is contained in:
@@ -34,7 +34,7 @@ class _MockModule(pl.LightningModule):
|
||||
def forward(self, *args, **kwargs):
|
||||
return self.loss
|
||||
|
||||
def backward(self, trainer, loss, optimizer, optimizer_idx):
|
||||
def backward(self, loss, optimizer, optimizer_idx):
|
||||
return None
|
||||
|
||||
def training_step(self, train_batch, batch_idx):
|
||||
|
||||
Reference in New Issue
Block a user