pytorch/torch/_dynamo/variables
Jon Chuang 0093e23e52 [dynamo] GradModeVariable should only be eagerly initialized when doing the equivalent of set_grad_enabled (#113293)
Grad mode variable was previously initialized eagerly when called - which is wrong when not explicitly using it in `set_grad_enabled`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/113293
Approved by: https://github.com/jansel
2023-11-09 06:00:14 +00:00
..
__init__.py [dynamo] Add LazyVariableTracker (#111306) 2023-11-07 19:55:19 +00:00
base.py [dynamo] Refactor OrderedDict to dict (#113234) 2023-11-08 09:27:08 +00:00
builder.py [dynamo] use APIs to use device interface instead of raw object in dynamo capture (#113000) 2023-11-08 01:45:00 +00:00
builtin.py Revert "[dynamo] Graph break on setattr(Tensor, "data", Tensor) (#113043)" (#113297) 2023-11-09 00:26:21 +00:00
constant.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
ctx_manager.py [dynamo] GradModeVariable should only be eagerly initialized when doing the equivalent of set_grad_enabled (#113293) 2023-11-09 06:00:14 +00:00
dicts.py [dynamo] Refactor OrderedDict to dict (#113234) 2023-11-08 09:27:08 +00:00
distributed.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
functions.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
higher_order_ops.py [dynamo] GradModeVariable should only be eagerly initialized when doing the equivalent of set_grad_enabled (#113293) 2023-11-09 06:00:14 +00:00
iter.py [dynamo] Remove VariableTracker.add_options (#111725) 2023-11-07 19:55:19 +00:00
lazy.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
lists.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
misc.py [dynamo] Refactor OrderedDict to dict (#113234) 2023-11-08 09:27:08 +00:00
nn_module.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
optimizer.py [dynamo] Eagerly install guards (#111415) 2023-11-07 19:55:19 +00:00
tensor.py [dynamo] Remove VariableTracker.propagate (#111726) 2023-11-07 19:55:19 +00:00
torch_function.py [dynamo] Eagerly install guards (#111415) 2023-11-07 19:55:19 +00:00
torch.py [dynamo] GradModeVariable should only be eagerly initialized when doing the equivalent of set_grad_enabled (#113293) 2023-11-09 06:00:14 +00:00
user_defined.py [dynamo] Avoid eager imports of classes with custom VariableTrackers (#112319) 2023-11-07 22:45:54 +00:00