Skip to content

Commit

Permalink
add lines between code block
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Jul 16, 2020
1 parent c7ff87b commit 6249630
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1728,10 +1728,12 @@ def to_onnx(self, file_path: str, input_sample: Optional[Tensor] = None, **kwarg
Example:
.. code-block:: python
file_path = './model.onnx'
model = MyLightningModule(...)
input_sample = torch.randn((1, 28 * 28))
model.to_onnx(file_path, input_sample, export_params=True)
"""

if isinstance(input_sample, Tensor):
Expand Down

0 comments on commit 6249630

Please sign in to comment.