projects
/
platform
/
upstream
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df7116
)
Fix the CI
author
Lu Fang
<lufang@fb.com>
Thu, 14 Mar 2019 00:26:01 +0000
(17:26 -0700)
committer
Facebook Github Bot
<facebook-github-bot@users.noreply.github.com>
Thu, 14 Mar 2019 00:28:50 +0000
(17:28 -0700)
Summary: https://github.com/pytorch/pytorch/pull/17995 's CI has verified it should fix the CI.
Reviewed By: bddppq
Differential Revision:
D14447674
fbshipit-source-id:
50085db9ae7421b5be216ed0a2216234babfdf6c
test/test_torch.py
patch
|
blob
|
history
diff --git
a/test/test_torch.py
b/test/test_torch.py
index
02171df
..
88f230b
100644
(file)
--- a/
test/test_torch.py
+++ b/
test/test_torch.py
@@
-4468,7
+4468,7
@@
class _TestTorchMixin(object):
def test_linspace(self):
devices = ['cpu'] if not torch.cuda.is_available() else ['cpu', 'cuda']
- for
_
device in devices:
+ for device in devices:
_from = random.random()
to = _from + random.random()
res1 = torch.linspace(_from, to, 137, device=device)