pytorch/torch/_dynamo/variables
lezcano 47ccf04885 Split SymNode into its own file (#112037)
This PR:

- Moves TrueDiv, LShift, RShift, IsNonOverlappingAndDenseIndicator to `_sympy.functions.py`
- Moves SymNode to `fx.experimental.sym_node`.
  - This file does not have any SymPy dependencies at import time
  - It installs the magic methods in Sym{Bool,Int,Float}.
  - N.b. With this split, we may be able to move Sym{Bool,Int,Float} to this file, and remove quite a few of the hacks around these classes
- Imports `sym_node` in `torch/__init__.py` rather than the whole `symbolic_shapes.py`.
  This breaks the import-time dependency between torch and SymPy

Pull Request resolved: https://github.com/pytorch/pytorch/pull/112037
Approved by: https://github.com/peterbell10
ghstack dependencies: #112035, #112036
2023-10-26 23:32:27 +00:00
..
__init__.py [dynamo][stream]support device-agnostic stream in dynamo and capture stream/event method in fx graph (#108312) 2023-10-22 13:22:58 +00:00
base.py Revert "[dynamo] Properly track user-defined types for type() (#110794)" 2023-10-24 20:42:26 +00:00
builder.py [dynamo] Ensure Dynamo uses this graph's fakes for Tensor example_values (#111954) 2023-10-25 23:54:18 +00:00
builtin.py Revert "[dynamo] Properly track user-defined types for type() (#110794)" 2023-10-24 20:42:26 +00:00
constant.py Revert "[user errors] compulsory case names, allow multiple (#110878)" 2023-10-10 04:44:40 +00:00
ctx_manager.py [dynamo] Fix context wrapping grad mode variable (#111534) 2023-10-22 20:55:48 +00:00
dicts.py [dynamo] Add specialized variable tracker for sys.modules (#110990) 2023-10-13 20:08:40 +00:00
distributed.py [Easy] ConstantVariable() -> .create (#109896) 2023-09-22 22:30:15 +00:00
functions.py [dynamo] Forward fix a bunch of distributed collective allow fixes (#111171) 2023-10-13 15:49:04 +00:00
higher_order_ops.py [dynamo] ExecutorchCallDelegateHigherOrderVariable - add sanity check that input and output tensors are disjoint (#111960) 2023-10-26 21:13:05 +00:00
lists.py Support tracing base torch_function impl (#111731) 2023-10-23 07:11:32 +00:00
misc.py Support tracing base torch_function impl (#111731) 2023-10-23 07:11:32 +00:00
nn_module.py [dynamo] Expand _nonvar_fields names (#111749) 2023-10-23 02:58:16 +00:00
optimizer.py Fix typo under torch/_dynamo directory (#110459) 2023-10-04 16:05:05 +00:00
tensor.py Convert evaluate_expr GuardOnDataDependentSymNode into graph break (#111919) 2023-10-26 16:28:00 +00:00
torch_function.py Support tracing base torch_function impl (#111731) 2023-10-23 07:11:32 +00:00
torch.py Split SymNode into its own file (#112037) 2023-10-26 23:32:27 +00:00
user_defined.py Revert "[dynamo] Properly track user-defined types for type() (#110794)" 2023-10-24 20:42:26 +00:00