Skip to content

Commit 9112f4e

Browse files
James Reedfacebook-github-bot
James Reed
authored andcommitted
[FX][docs] Indent forward (pytorch#51802)
Summary: Pull Request resolved: pytorch#51802 lol Test Plan: Imported from OSS Reviewed By: zou3519 Differential Revision: D26284311 Pulled By: jamesr66a fbshipit-source-id: 0d303d8c99131abb8d97e0acd0ac2d810e1e950c
1 parent 8c48af8 commit 9112f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/fx/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def __init__(self):
1717
self.param = torch.nn.Parameter(torch.rand(3, 4))
1818
self.linear = torch.nn.Linear(4, 5)
1919
20-
def forward(self, x):
21-
return self.linear(x + self.param).clamp(min=0.0, max=1.0)
20+
def forward(self, x):
21+
return self.linear(x + self.param).clamp(min=0.0, max=1.0)
2222
2323
module = MyModule()
2424

0 commit comments

Comments
 (0)