pytorch/torch/_dynamo/variables
David Berard ad6dad810e [dynamo][profiler] More verbose profiler warning (#105362)
torch.profiler.record_function and torch.profiler.profile are ignored by dynamo. In the common case, users have `record_function` in the middle of their program in order to annotate a section of the profile.

The previous error message was `Profiler will be ignored`. Users would think that profiling would be completely ignored.

Now the message will look like `Profiler function <class 'torch.autograd.profiler.record_function'> will be ignored`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/105362
Approved by: https://github.com/yanboliang, https://github.com/aaronenyeshi
2023-07-18 04:42:13 +00:00
..
__init__.py Revert "Revert "SetVariable in dynamo (#103205)"" + Fix for improved graph breaks (#105345) 2023-07-17 23:21:30 +00:00
base.py [HigherOrderOp] Fall back on all new side effects in speculate_subgraph (#104077) 2023-06-28 14:20:37 +00:00
builder.py [dynamo] Support defaults for namedtuples (#105341) 2023-07-17 23:52:57 +00:00
builtin.py Revert "Revert "SetVariable in dynamo (#103205)"" + Fix for improved graph breaks (#105345) 2023-07-17 23:21:30 +00:00
constant.py [BE] Enable C419 rule for any all shortcircuiting (#99890) 2023-04-25 15:02:13 +00:00
ctx_manager.py [dynamo] Simulate torch function enablement state (#105091) 2023-07-13 17:42:20 +00:00
dicts.py Simulate treespec flattening/unflattening (#101896) 2023-06-23 10:53:15 +00:00
functions.py [dynamo] Support defaults for namedtuples (#105341) 2023-07-17 23:52:57 +00:00
higher_order_ops.py Revert "Add torch.ops.out_dtype (#103333)" 2023-07-14 17:59:25 +00:00
lists.py Revert "Revert "SetVariable in dynamo (#103205)"" + Fix for improved graph breaks (#105345) 2023-07-17 23:21:30 +00:00
misc.py [retry][dynamo][numpy] Add support for np.dtype (#105034) 2023-07-14 21:36:36 +00:00
nn_module.py Include nn.ParameterDict in dynamo __getitem__ (#99771) 2023-07-11 08:19:04 +00:00
optimizer.py Enable fused foreach Adam compilation (#104121) 2023-07-05 23:40:03 +00:00
tensor.py [dynamo] Support wrapping + returning tensor subclasses (#104802) 2023-07-09 22:16:10 +00:00
torch.py [dynamo][profiler] More verbose profiler warning (#105362) 2023-07-18 04:42:13 +00:00
user_defined.py [dynamo] Support defaults for namedtuples (#105341) 2023-07-17 23:52:57 +00:00