8000 iter.acc · pytorch/pytorch@32f625c · GitHub
[go: up one dir, main page]

Skip to content

Commit 32f625c

Browse files
committed
iter.acc
1 parent af1c2eb commit 32f625c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

torch/_dynamo/variables/iter.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,14 @@ def call_function(
107107
gb_type="Unsupported arguments for itertools.accumulate",
108108
context=f"call_function {self} {args} {kwargs}",
109109
explanation="Dynamo does not know how to trace "
110-
f"itertools.accumulate with args: {args}",
111-
hints=[*graph_break_hints.USER_ERROR],
110+
f"itertools.accumulate with args: {args} and kwargs: {kwargs}. "
111+
"itertools.accumulate expects an iterable, an optional "
112+
"binary function for accumulation, and an optional initial "
113+
"value to set the starting state.",
114+
hints=[
115+
"Make sure the arguments to itertools.accumulate are correct.",
116+
*graph_break_hints.SUPPORTABLE,
117+
],
112118
)
113119

114120
items = []

0 commit comments

Comments
 (0)
0