pytorch/torch/csrc/jit/python
Richard Zou ef380f7b8e [real tensor prop] Add some asserts for custom ops (#139212)
When we see a custom op:
- check that its mutation annotations are correct
- check that its aliasing constraints matches our constraints for custom
  ops.

Otherwise, there may be undefined behavior.

Test Plan:
- new tests

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139212
Approved by: https://github.com/angelayi
2024-10-30 19:29:11 +00:00
..
init.cpp [real tensor prop] Add some asserts for custom ops (#139212) 2024-10-30 19:29:11 +00:00
init.h
module_python.h Upgrade pybind11 API calls for 3.13t (#136370) 2024-09-20 23:09:55 +00:00
pybind_utils.cpp Avoid unnecessary tensor constructions (#139039) 2024-10-29 02:23:23 +00:00
pybind_utils.h Remove deprecated alias macro(1/3) (#137556) 2024-10-21 17:32:32 +00:00
pybind.h [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_custom_class.h [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_dict.cpp
python_dict.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_interpreter.cpp [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_ir.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_ir.h [codemod] c10:optional -> std::optional (#126135) 2024-05-14 19:35:51 +00:00
python_ivalue.h Upgrade pybind11 API calls for 3.13t (#136370) 2024-09-20 23:09:55 +00:00
python_list.cpp C10_UNUSED to [[maybe_unused]] (#6357) (#138364) 2024-10-19 13:17:43 +00:00
python_list.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_sugared_value.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_sugared_value.h [4/N] Fix clang-tidy warnings in jit (#131903) 2024-07-27 08:08:14 +00:00
python_tracer.cpp Remove deprecated alias macro(1/3) (#137556) 2024-10-21 17:32:32 +00:00
python_tracer.h [3/N] Fix clang-tidy warnings in jit (#131830) 2024-07-26 15:46:28 +00:00
python_tree_views.cpp [6/N] Fix clang-tidy warnings in jit (#131986) 2024-07-29 00:49:08 +00:00
python_tree_views.h
script_init.cpp Fix clang-tidy warnings in jit code (#138974) 2024-10-29 04:33:40 +00:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h
utf8_decoding_ignore.cpp
utf8_decoding_ignore.h