8000 groupby · pytorch/pytorch@8269a85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8269a85

Browse files
committed
groupby
1 parent 412e1e1 commit 8269a85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torch/_dynamo/variables/iter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ def retrieve_const_key(key):
179179
gb_type="Unsupported key type for itertools.groupby",
180180
context=f"call_function {self} {args} {kwargs}",
181181
explanation="Dynamo does not know how to trace "
182-
f"itertools.groupby with key type: {str(type(key))}",
182+
f"itertools.groupby with key type: {str(type(key))}. "
183+
"We only support grouping keys that are constants (int, float, str, etc.)",
183184
hints=[*graph_break_hints.SUPPORTABLE],
184185
)
185186

0 commit comments

Comments
 (0)
0