Fix the lint (#15973)
authorLu Fang <lufang@fb.com>
Fri, 11 Jan 2019 23:57:12 +0000 (15:57 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Jan 2019 23:59:59 +0000 (15:59 -0800)
Summary:
Fix the lint error introduced in https://github.com/pytorch/pytorch/pull/15965
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15973

Differential Revision: D13640856

Pulled By: houseroad

fbshipit-source-id: 3f14d9898dcfb0fc469468f63fa1461c88b66b2e

torch/onnx/symbolic.py

index 8655d33..30091ec 100644 (file)
@@ -1082,20 +1082,22 @@ scalar_name_to_pytorch = {
     'int16_t': 'Short',
 }
 
+
 # This indicates each scalar type's corresponding
 # torch type. Related source:
 # https://github.com/pytorch/pytorch/blob/da7468853ae322252270bbb58032668bd21b7457/c10/core/ScalarType.h
 scalar_type_to_pytorch_type = [
-        torch.uint8,    # 0
-        torch.int8,     # 1
-        torch.short,    # 2
-        torch.int,      # 3
-        torch.int64,    # 4
-        torch.half,     # 5
-        torch.float,    # 6
-        torch.double,   # 7
+    torch.uint8,    # 0
+    torch.int8,     # 1
+    torch.short,    # 2
+    torch.int,      # 3
+    torch.int64,    # 4
+    torch.half,     # 5
+    torch.float,    # 6
+    torch.double,   # 7
 ]
 
+
 def _cast_func_template(to_i, g, input, non_blocking):
     return g.op("Cast", input, to_i=to_i)