Skip to main content

trace

family

Declared in clika_rt/clika_rt_core.h.

Members

NameDescription
trace_abortdiscard the capture without building anything; consumes session (contract §6; NULL is a no-op); also the session's release road
trace_beginopen a scoped capture ON THIS THREAD: one data-free stand-in per signature spec (returned as a tensor list, caller-released); ops called on the stand-ins between begin and end record into the graph instead of computing. options NULL = defaults
trace_endfinish the capture: outputs are BORROWED (the graph's declared outputs, positionally); 0 names = positional defaults. consumes session (contract §6) in every outcome, success and failure alike

Functions

trace_abort

void(* trace_abort)(clika_rt_trace_session *session)

discard the capture without building anything; consumes session (contract §6; NULL is a no-op); also the session's release road

Declared in clika_rt/clika_rt_core.h, line 773

trace_begin

clika_rt_error*(* trace_begin)(const clika_rt_tensor_spec *signature, size_t signature_count, const char *graph_name, size_t graph_name_len, const clika_rt_trace_options *options, clika_rt_tensor_list **stand_ins, clika_rt_trace_session **out)

open a scoped capture ON THIS THREAD: one data-free stand-in per signature spec (returned as a tensor list, caller-released); ops called on the stand-ins between begin and end record into the graph instead of computing. options NULL = defaults

Declared in clika_rt/clika_rt_core.h, line 757

trace_end

clika_rt_error*(* trace_end)(clika_rt_trace_session *session, clika_rt_tensor *const *outputs, size_t outputs_count, const char *const *output_names, const size_t *output_name_lens, size_t output_names_count, clika_rt_model_graph **out)

finish the capture: outputs are BORROWED (the graph's declared outputs, positionally); 0 names = positional defaults. consumes session (contract §6) in every outcome, success and failure alike

Declared in clika_rt/clika_rt_core.h, line 765