generate_source_code(mem_alloc: dict[int, int], total_mem: int, save_path: Path)
Generate the source code for the main inference model.
Parameters:
-
mem_alloc
(dict[int, int]
)
–
Memory allocation for each tensor.
-
total_mem
(int
)
–
-
save_path
(Path
)
–
Path to save the generated code.