Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 17, 2021
1 parent d905317 commit 5209f47
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pytorch_lightning/accelerators/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,6 @@ def validation_step_end(self, output):
"""
return self.training_type_plugin.validation_step_end(output)

def predict(self, args):
"""The prediction step.
Args:
args: the arguments for the models predict step. Can consist of the following:
batch (:class:`~torch.Tensor` | (:class:`~torch.Tensor`, ...) | [:class:`~torch.Tensor`, ...]):
The output of your :class:`~torch.utils.data.DataLoader`. A tensor, tuple or list.
batch_idx (int): Integer displaying index of this batch
optimizer_idx (int): When using multiple optimizers, this argument will also be present.
hiddens(:class:`~torch.Tensor`): Passed in if
:paramref:`~pytorch_lightning.trainer.trainer.Trainer.truncated_bptt_steps` > 0.
"""
batch = self.to_device(args[0])
args[0] = batch
return self.training_type_plugin.predict(*args)

def backward(
self,
closure_loss: torch.Tensor,
Expand Down

0 comments on commit 5209f47

Please sign in to comment.