Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6392713

Browse files
蔡舒起facebook-github-bot
蔡舒起
authored andcommitted
add spaces in .md annotation for python indent (#41260)
Summary: Pull Requestresolved:#41260Reviewed By: ezyangDifferential Revision: D22504634Pulled By: ailzhangfbshipit-source-id: 9d2d605dc19b07896ee4b1811fcd34d4dcb9b0c7
1 parentb6e1944 commit6392713

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎torch/jit/_script.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ def __init__(self):
821821
self.conv2 = torch.jit.trace(nn.Conv2d(20, 20, 5), torch.rand(1, 20, 16, 16))
822822
823823
def forward(self, input):
824-
input = F.relu(self.conv1(input))
825-
input = F.relu(self.conv2(input))
826-
return input
824+
input = F.relu(self.conv1(input))
825+
input = F.relu(self.conv2(input))
826+
return input
827827
828828
scripted_module = torch.jit.script(MyModule())
829829
@@ -936,10 +936,10 @@ def unsupported_linear_op(x):
936936
return x
937937
938938
def linear(x):
939-
if not torch.jit.is_scripting():
940-
return torch.linear(x)
941-
else:
942-
return unsupported_linear_op(x)
939+
if not torch.jit.is_scripting():
940+
return torch.linear(x)
941+
else:
942+
return unsupported_linear_op(x)
943943
"""
944944
returnFalse
945945

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp