Open
Description
Description
If we only have on instance of the same OpFromGraph Op we should move constant inputs inside, to allow a simpler internal graph at compilation time.
We shoud also remove any unused inputs/outputs. This was already noted as a todo in the the docstrings:
pytensor/pytensor/compile/builders.py
Line 173 in 30b760f