Skip to content

Commit 4077c47

Browse files
sudarsan2k5twiecki
authored andcommitted
Fix Argument name
1 parent 6c4d66c commit 4077c47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytensor/graph/basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,8 +1615,8 @@ def expand(o: Apply) -> List[Apply]:
16151615
)
16161616

16171617

1618-
def is_in_ancestors(l_apply: Apply, f_node: Apply) -> bool:
1619-
"""Determine if `f_node` is in the graph given by `l_apply`.
1618+
def is_in_ancestors(l_apply: Apply, f_apply: Apply) -> bool:
1619+
"""Determine if `f_apply` is in the graph given by `l_apply`.
16201620
16211621
Parameters
16221622
----------
@@ -1638,7 +1638,7 @@ def is_in_ancestors(l_apply: Apply, f_node: Apply) -> bool:
16381638
continue
16391639
if all(i in computed or i.owner is None for i in cur.inputs):
16401640
computed.update(cur.outputs)
1641-
if cur is f_node:
1641+
if cur is f_apply:
16421642
return True
16431643
else:
16441644
todo.append(cur)

0 commit comments

Comments
 (0)