8000 func · pytorch/pytorch@412e1e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 412e1e1

Browse files
committed
func
1 parent 32f625c commit 412e1e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

torch/_dynamo/variables/iter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ def call_function(
9898
unimplemented_v2(
9999
gb_type="Unsupported `func` in itertools.accumulate",
100100
context=f"call_function {self} {args} {kwargs}",
101-
explanation="itertools.accumulate can only accept "
102-
"one of: `func` kwarg, pos 2 arg",
101+
explanation="Dynamo does not know how to get the "
102+
"function to use for itertools.accumulate. "
103+
"itertools.accumulate expects the `func` as the second "
104+
"argument or as a keyword argument.",
103105
hints=[*graph_break_hints.USER_ERROR],
104106
)
105107
else:

0 commit comments

Comments
 (0)
0