tl_optimize_graph

Function tl_optimize_graph 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tl_optimize_graph( graph_json: *const c_char, level: i32, ) -> *mut TLOptimizationResult
Expand description

Optimize a compiled graph

§Parameters

  • graph_json: The graph as JSON string
  • level: Optimization level (0=none, 1=basic, 2=standard, 3=aggressive)

§Returns

A pointer to TLOptimizationResult that must be freed with tl_free_optimization_result

§Safety

The caller must ensure that graph_json is a valid null-terminated string.