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:
82175f3
)
fix enable_cpu_fuser
author
Zachary DeVito
<zdevito@fb.com>
Wed, 28 Nov 2018 03:11:47 +0000
(19:11 -0800)
committer
Facebook Github Bot
<facebook-github-bot@users.noreply.github.com>
Wed, 28 Nov 2018 03:14:10 +0000
(19:14 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14440
Differential Revision:
D13226354
Pulled By: zdevito
fbshipit-source-id:
e4ed023eece8b5b670a4a27d24a8688907b36b90
test/test_jit.py
patch
|
blob
|
history
diff --git
a/test/test_jit.py
b/test/test_jit.py
index
6c81284
..
c66700b
100644
(file)
--- a/
test/test_jit.py
+++ b/
test/test_jit.py
@@
-207,9
+207,8
@@
def enable_cpu_fuser(fn):
torch._C._jit_override_can_fuse_on_cpu(True)
try:
fn(*args, **kwargs)
-
except Exception
:
+
finally
:
torch._C._jit_override_can_fuse_on_cpu(False)
- raise
return wrapper