legate.core.track_provenance#
- legate.core.track_provenance(context: Context, nested: bool = False) Callable[[AnyCallable], AnyCallable] #
Decorator that adds provenance tracking to functions. Provenance of each operation issued within the wrapped function will be tracked automatically.
- Parameters:
context (Context) – Context that the function uses to issue operations
nested (bool) – If
True
, each invocation to a wrapped function within another wrapped function updates the provenance string. Otherwise, the provenance is tracked only for the outermost wrapped function.
- Returns:
Function that takes a function and returns a one with provenance tracking
- Return type:
Decorator