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
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]
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: