Skip to content

Commit 5e9b75b

Browse files
committed
Remove redundant trust_input check for empty args in Function class
1 parent 73adcba commit 5e9b75b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytensor/compile/function/types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,6 @@ def __call__(self, *args, output_subset=None, **kwargs):
883883
output_subset = [self.output_keys.index(key) for key in output_subset]
884884

885885
# Reinitialize each container's 'provided' counter
886-
if len(args) == 0: # for speed we trust the input for empty args
887-
trust_input = True
888886
if trust_input:
889887
for arg_container, arg in zip(input_storage, args, strict=False):
890888
arg_container.storage[0] = arg

0 commit comments

Comments
 (0)