Fix lint errors introduced in pytorch/pytorch@ceece5d (#16454)
authorJunjie Bai <bai@in.tum.de>
Mon, 28 Jan 2019 19:10:18 +0000 (11:10 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 28 Jan 2019 19:29:11 +0000 (11:29 -0800)
Summary:
ifedan

```
./test/common_utils.py:748:1: E302 expected 2 blank lines, found 1
./test/test_torch.py:1235:5: E303 too many blank lines (2)
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16454

Differential Revision: D13844905

Pulled By: bddppq

fbshipit-source-id: 3dc7c740d86310a8efc9864d7c7798fda8257a21

test/common_utils.py
test/test_torch.py

index f83f9e4..ae258ec 100644 (file)
@@ -745,6 +745,7 @@ def brute_pdist(inp, p=2):
     inds[torch.arange(n - 1, 1, -1, dtype=torch.int).cumsum(0)] += torch.arange(2, n, dtype=torch.int)
     return unroll[..., inds.cumsum(0)]
 
+
 def brute_cdist(x, y, p=2):
     r1 = x.shape[-2]
     r2 = y.shape[-2]
index 70ed959..5bf6a4a 100644 (file)
@@ -1231,7 +1231,6 @@ class _TestTorchMixin(object):
             for dtype in [torch.float32, torch.float64]:
                 test_pdist_single((1000, 2), device, 2, dtype, False)
 
-
     def test_cdist_empty(self):
         devices = ['cpu'] if not torch.cuda.is_available() else ['cpu', 'cuda']
         for device in devices: