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 6c3e420 commit fd69bedCopy full SHA for fd69bed
pytensor/compile/builders.py
@@ -401,7 +401,7 @@ def __init__(
401
inline.
402
"""
403
ignore_unused_inputs = kwargs.get("on_unused_input", False) == "ignore"
404
- if len(inputs) != len(set(inputs)) and not ignore_unused_inputs:
+ if not ignore_unused_inputs and len(inputs) != len(set(inputs)):
405
var_counts = {var: inputs.count(var) for var in inputs}
406
duplicated_inputs = [var for var, count in var_counts.items() if count > 1]
407
raise ValueError(
0 commit comments