Skip to content

Commit 6392713

Browse files
蔡舒起facebook-github-bot
蔡舒起
authored andcommitted
add spaces in .md annotation for python indent (#41260)
Summary: Pull Request resolved: #41260 Reviewed By: ezyang Differential Revision: D22504634 Pulled By: ailzhang fbshipit-source-id: 9d2d605dc19b07896ee4b1811fcd34d4dcb9b0c7
1 parent b6e1944 commit 6392713

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

torch/jit/_script.py

+7-7
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
return False
945945

0 commit comments

Comments
 (0)