Skip to content

Commit

Permalink
[ez][doc] Fix sample code in onnx_dynamo.rst (#114770)
Browse files Browse the repository at this point in the history
By adding `import torch.nn as nn`

Pull Request resolved: #114770
Approved by: https://github.com/atalman, https://github.com/thiagocrepaldi
  • Loading branch information
malfet authored and pytorchmergebot committed Nov 29, 2023
1 parent ffa974b commit a9d5133
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/onnx_dynamo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ See below a demonstration of exporter API in action with a simple Multilayer Per
.. code-block:: python
import torch
import torch.nn as nn
class MLPModel(nn.Module):
def __init__(self):
Expand Down

0 comments on commit a9d5133

Please sign in to comment.