projects
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe350ea
)
Update.
author
François Fleuret
<francois@fleuret.org>
Fri, 9 Dec 2022 05:51:33 +0000
(06:51 +0100)
committer
François Fleuret
<francois@fleuret.org>
Fri, 9 Dec 2022 05:51:33 +0000
(06:51 +0100)
tensorstack.py
patch
|
blob
|
history
diff --git
a/tensorstack.py
b/tensorstack.py
index
d7b0d89
..
c9a6c2f
100755
(executable)
--- a/
tensorstack.py
+++ b/
tensorstack.py
@@
-10,9
+10,9
@@
from torch import Tensor
import sys
def exception_hook(exc_type, exc_value, tb):
- r'''Hacks the call stack message
in case of RuntimeError to show all
- the local variables, and indicate for every tensor involved its
-
shape,
dtype and device.
+ r'''Hacks the call stack message
to show all the local variables in
+ case of RuntimeError or ValueError, and prints tensors as shape,
+ dtype and device.
'''