pytorch/torch/csrc/jit/script
Peter Goldsborough f62bc01dfe Remove TORCH_ASSERT (#9575)
Summary:
I got some tensor->variable conversion exceptions from `torch/csrc/autograd/variable.h`, which used the `TORCH_ASSERTM` macros instead of `AT_CHECK`, so they didn't have backtraces. This was such a substantial loss for debugability that I decided to update the whole codebase to use the backtrace-enabled ATen macros instead of `TORCH_ASSERT` and `JIT_ASSERT`, the latter having been an alias of the former.

ezyang apaszke zdevito
Pull Request resolved: https://github.com/pytorch/pytorch/pull/9575

Differential Revision: D8924566

Pulled By: goldsborough

fbshipit-source-id: 7a4013b13eec9dbf024cef94cf49fca72f61d441
2018-07-24 18:10:06 -07:00
..
compiler.cpp Remove TORCH_ASSERT (#9575) 2018-07-24 18:10:06 -07:00
compiler.h Remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and fix CUDA 8 build on Windows (#9491) (#9491) 2018-07-23 06:40:39 -07:00
error_report.h Allow __constant__ values in a ScriptModule to be used as attributes for builtin functions (#7017) 2018-04-27 17:44:17 -07:00
init.cpp Switch interpreter to use IValue's primitive int/floats (#9718) 2018-07-23 14:11:11 -07:00
init.h [jit] Have ScriptModule inherit from Module (#5769) 2018-03-22 00:17:49 -04:00
lexer.cpp Remove TORCH_ASSERT (#9575) 2018-07-24 18:10:06 -07:00
lexer.h Remove TORCH_ASSERT (#9575) 2018-07-24 18:10:06 -07:00
module.cpp Remove TORCH_ASSERT (#9575) 2018-07-24 18:10:06 -07:00
module.h Remove TORCH_ASSERT (#9575) 2018-07-24 18:10:06 -07:00
parser.h Switch interpreter to use IValue's primitive int/floats (#9718) 2018-07-23 14:11:11 -07:00
python_tree_views.cpp Replace std::size_t with size_t (#8093) 2018-06-04 11:10:44 -04:00
python_tree_views.h Add workaround to fix include warnings in Python 2 builds. (#6716) 2018-04-24 12:30:19 -07:00
tree_views.h Switch interpreter to use IValue's primitive int/floats (#9718) 2018-07-23 14:11:11 -07:00
tree.h Add a Number node to the JIT AST and unify script syntax with Python (#5716) 2018-03-15 20:56:23 +01:00