Skip to content

Commit 6249630

Browse files
author
lezwon
committed
add lines between code block
1 parent c7ff87b commit 6249630

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytorch_lightning/core/lightning.py

+2
Original file line numberDiff line numberDiff line change
@@ -1728,10 +1728,12 @@ def to_onnx(self, file_path: str, input_sample: Optional[Tensor] = None, **kwarg
17281728
17291729
Example:
17301730
.. code-block:: python
1731+
17311732
file_path = './model.onnx'
17321733
model = MyLightningModule(...)
17331734
input_sample = torch.randn((1, 28 * 28))
17341735
model.to_onnx(file_path, input_sample, export_params=True)
1736+
17351737
"""
17361738

17371739
if isinstance(input_sample, Tensor):

0 commit comments

Comments
 (0)