pytorch/test/cpp
goldenxuett e71f4e7958 [JIT] Implement may_contain_alias in FunctionSchema (#81352)
- Created may_contain_alias method in FunctionSchema to publicize more detailed aliasing information about inputs and outputs of a schema. This method returns whether the first argument may contain an alias to the second argument (ie if the first argument is a list[Tensor], it can contain an alias to the second argument of the second argument is Tensor(*)) and vice versa if bidirectional = true.
- Created helper methods are explained more thoroughly in detail in function_schema.h
-Tested may_contain_alias methods for basic functionality, bidirectional functionality, wildcard functionality and dual container functionality in test_schema_info.cpp.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81352
Approved by: https://github.com/davidberard98, https://github.com/Gamrix
2022-07-15 21:57:37 +00:00
..
api Fix retains grad behavior after in-place (#79996) 2022-07-08 19:13:28 +00:00
c10d Build example_allreduce only for GLOO (#81062) 2022-07-08 02:25:54 +00:00
common
dist_autograd [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
jit [JIT] Implement may_contain_alias in FunctionSchema (#81352) 2022-07-15 21:57:37 +00:00
lazy reinstate size and shape returning symints (#79560) 2022-07-08 01:17:33 +00:00
lite_interpreter_runtime Back out "[profiling] Adding targets file for test_mobile_profiler" (#80789) 2022-07-05 23:34:15 +00:00
monitor
profiler [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
rpc [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
tensorexpr [BE] Use CamelCase for enum class members (#79772) 2022-06-17 05:53:57 +00:00
__init__.py