TransformValuesMapping.on_change_input(fgraph, node, i, var, new_var, reason=None)#

Called whenever node.inputs[i] is changed from var to new_var. At the moment the callback is done, the change has already taken place.

If you raise an exception in this function, the state of the graph might be broken for all intents and purposes.