We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f146bb commit a0692acCopy full SHA for a0692ac
userbenchmark/dynamo/dynamobench/_dynamo/utils.py
@@ -95,6 +95,7 @@
95
import torch.utils._pytree as pytree
96
from torch import fx
97
from torch._dispatch.python import enable_python_dispatcher
98
+from torch._guards import TracingContext
99
from torch._subclasses.meta_utils import is_sparse_compressed
100
from torch._utils_internal import log_compilation_event
101
@@ -1152,6 +1153,7 @@ def set_example_value(node, example_value):
1152
1153
# this to accurately reflect what the state of the value was at the time
1154
# the program was traced).
1155
node.meta["example_value"] = example_value
1156
+ assert TracingContext.try_get() is not None
1157
1158
1159
def _get_fake_tensor(vt):
0 commit comments