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 f83c05b commit 619fe66Copy full SHA for 619fe66
pytensor/tensor/variable.py
@@ -614,8 +614,7 @@ def __iter__(self):
614
# This prevents accidental iteration via sum(self)
615
raise TypeError(
616
"TensorType does not support iteration.\n"
617
- "\tDid you pass a PyTensor variable to a function that expects a list?\n"
618
- "\tMaybe you are using builtins.sum instead of pytensor.tensor.sum?"
+ "\tDid you try to unpack a Variable or used a function that expects a list?\n"
619
)
620
621
@property
0 commit comments