Skip to content

Commit 2b124e8

Browse files
committed
Remove trust_input assignment for empty inputs in function definition
1 parent 7ee1add commit 2b124e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytensor/compile/function/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ def opt_log1p(node):
303303
"contained in a list, even when there is a single "
304304
"input."
305305
)
306-
if len(inputs) == 0:
307-
trust_input = True # we can trust the empty input (for speed)
306+
308307
# compute some features of the arguments:
309308
uses_tuple = any(isinstance(i, list | tuple) for i in inputs)
310309
uses_updates = bool(updates)

0 commit comments

Comments
 (0)