pub fn trace<I: Tree<Native>, O: Tree<Trace>>(
f: impl FnOnce(I::On<Trace>) -> O,
example: &I,
) -> TracedExpand description
Traces f on Trace values shaped like example (a Native pytree)
and returns the IR with the structures of the input and output.
ยงPanics
Panics if f uses traced values of another trace that is still in
progress (a function traced at the top level cannot capture values).