thunder.core.transforms.insert_inplace
- thunder.core.transforms.insert_inplace(trc, idx, fn)[source]
Calls
fnand record any symbols called intotrc, starting atidx.- Parameters:
trc (
TraceCtx) – Trace to insertBoundSymbols representingfn.idx (
int) – Starting index oftrc.bound_symbolsto insertBoundSymbols representingfn.trc (TraceCtx) –
idx (int) –
- Return type:
Note
This operation is inplace. It will modify the given
trc’sbound_symbols.Note
Because this operation is explicitly inplace, it will disregard whether or not
mark_complete()has been called ontrcalready.
Was this page helpful?
Thanks for the feedback.