X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tensorstack.py;fp=tensorstack.py;h=c9a6c2f301ad50b8ea75ff05b01dcf89b8578db9;hb=ca897077ed89fbc3c7e8d812ad262146a0c72b71;hp=d7b0d89f4cf97fadee232b427fbe67a728e2e584;hpb=fe350ea557cec0d9f2b9e9c6c88dd9633cd2e879;p=pytorch.git diff --git a/tensorstack.py b/tensorstack.py index d7b0d89..c9a6c2f 100755 --- 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. '''