fn
canonicalize_executable
int canonicalize_executable(const CompiledExecutable * exe, const TraceIdMap & id_map)Return a copy of exe whose input_ids and output_ids have been translated from the trace's raw TensorId space into canonical indices via id_map.to_canonical. Returns an empty pointer if exe is null or any id is absent from id_map.