mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[FX][docs] Indent forward (#51802)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/51802 lol Test Plan: Imported from OSS Reviewed By: zou3519 Differential Revision: D26284311 Pulled By: jamesr66a fbshipit-source-id: 0d303d8c99131abb8d97e0acd0ac2d810e1e950c
This commit is contained in:
parent
8c48af822e
commit
9112f4eded
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ demonstration of these components in action:
|
|||
self.param = torch.nn.Parameter(torch.rand(3, 4))
|
||||
self.linear = torch.nn.Linear(4, 5)
|
||||
|
||||
def forward(self, x):
|
||||
return self.linear(x + self.param).clamp(min=0.0, max=1.0)
|
||||
def forward(self, x):
|
||||
return self.linear(x + self.param).clamp(min=0.0, max=1.0)
|
||||
|
||||
module = MyModule()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue