thunder.core.transforms.replace_inplace

thunder.core.transforms.replace_inplace(trc, idx, fn)[source]

Removes idx-th BoundSymbol of trc and replace it bsyms representing fn.

Parameters:
Return type:

None

Note

This operation is inplace. It will modify the given trc’s bound_symbols.

Note

Because this operation is explicitly inplace, it will disregard whether or not mark_complete() has been called on trc already.