pytorch/torch/csrc/jit/script
Yangqing Jia 713e706618 Move exception to C10 (#12354)
Summary:
There are still a few work to be done:

- Move logging and unify AT_WARN with LOG(ERROR).
- A few header files are still being plumbed through, need cleaning.
- caffe2::EnforceNotMet aliasing is not done yet.
- need to unify the macros. See c10/util/Exception.h

This is mainly a codemod and not causing functional changes. If you find your job failing and trace back to this diff, usually it can be fixed by the following approaches:

(1) add //caffe2/c10:c10 to your dependency (or transitive dependency).
(2) change objects such as at::Error, at::Optional to the c10 namespace.
(3) change functions to the c10 namespace. Especially, caffe2::MakeString is not overridden by the unified c10::str function. Nothing else changes.

Please kindly consider not reverting this diff - it involves multiple rounds of rebasing and the fix is usually simple. Contact jiayq@ or AI Platform Dev for details.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/12354

Reviewed By: orionr

Differential Revision: D10238910

Pulled By: Yangqing

fbshipit-source-id: 7794d5bf2797ab0ca6ebaccaa2f7ebbd50ff8f32
2018-10-15 13:33:18 -07:00
..
builtin_functions.cpp Get rid of emitApplyIdent (#12504) 2018-10-11 10:53:53 -07:00
builtin_functions.h Introduce builtin script functions (#12141) 2018-09-28 10:55:08 -07:00
compiler.cpp Move exception to C10 (#12354) 2018-10-15 13:33:18 -07:00
compiler.h Move exception to C10 (#12354) 2018-10-15 13:33:18 -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 Move exception to C10 (#12354) 2018-10-15 13:33:18 -07:00
init.h [jit] Have ScriptModule inherit from Module (#5769) 2018-03-22 00:17:49 -04:00
lexer.cpp Add reminder % to the jit 2018-09-12 12:40:38 -07:00
lexer.h Diff against master and enable bugprone-* checks (#12378) 2018-10-10 07:23:57 -07:00
module.cpp Move exception to C10 (#12354) 2018-10-15 13:33:18 -07:00
module.h Move exception to C10 (#12354) 2018-10-15 13:33:18 -07:00
parser.h (Very small) allow trailing commas in assign or tuples (#11723) 2018-10-01 10:10:13 -07:00
python_tree_views.cpp Unified type annotation parsing for script frontends (#10279) 2018-08-14 18:13:15 -07: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 Add reminder % to the jit 2018-09-12 12:40:38 -07:00
tree.h Match parameter names and = default (#9737) 2018-07-30 14:10:00 -07:00