Skip to content

Commit eb9b6e4

Browse files
lezwonBorda
lezwon
authored andcommitted
self.forward to self
1 parent a675cb8 commit eb9b6e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytorch_lightning/core/lightning.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,8 @@ def to_onnx(self, file_path: str, input_sample: Optional[Tensor] = None, **kwarg
17401740

17411741
if 'example_outputs' not in kwargs:
17421742
self.eval()
1743-
kwargs['example_outputs'] = self.forward(input_data)
1743+
kwargs['example_outputs'] = self(input_data)
1744+
17441745
torch.onnx.export(self, input_data, file_path, **kwargs)
17451746

17461747
@property

0 commit comments

Comments
 (0)