MCPcopy Create free account
hub / github.com/NVIDIA/DALI / origin_trace

Function origin_trace

dali/test/python/operator_1/test_operator_origin_trace.py:84–93  ·  view source on GitHub ↗

Either return trace using test operator or capture it via Python API

()

Source from the content-addressed store, hash-verified

82
83
84def origin_trace():
85 """Either return trace using test operator or capture it via Python API"""
86 if op_mode == "dali.fn":
87 return fn.origin_trace_dump()
88 if op_mode == "dali.ops":
89 return ops.OriginTraceDump()() # Yup, super obvious __init__ + __call__
90 # elif op_mode == "python":
91 # Skip last frame as it differs from calling the fn.origin_trace_dump above.
92 extracted_stacks.append(traceback.extract_stack()[base_frame:-1])
93 return None
94
95
96def origin_trace_glob(op_mode):

Callers 5

pipeFunction · 0.85
test_trace_scopeFunction · 0.85
test_trace_push_currentFunction · 0.85
recursive_helperFunction · 0.85
trace_augFunction · 0.85

Calls 2

OriginTraceDumpMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected