tl_execute_graph

Function tl_execute_graph 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tl_execute_graph( graph_json: *const c_char, backend: *const c_char, ) -> *mut TLExecutionResult
Expand description

Execute a compiled graph

§Parameters

  • graph_json: The graph as JSON string
  • backend: The backend name (e.g., “cpu”, “parallel”)

§Returns

A pointer to TLExecutionResult that must be freed with tl_free_execution_result

§Safety

The caller must ensure that graph_json and backend are valid null-terminated strings.