fix: reuse graph cut plans across CFG passes (#1943)

This commit is contained in:
leejet authored and GitHub committed 2026-09-07 00:39:49 +08:00
1 parent 80bac2d5fc
commit d8fb10c029
2 files changed
+25 -10

No files matched your search

+3 -1
View File
@@ -3,6 +3,7 @@
#include <array>
#include <cstdint>
#include <list>
#include <string>
#include <unordered_map>
#include <unordered_set>
@@ -48,7 +49,8 @@ namespace sd::ggml_graph_cut {
};
struct PlanCache {
Plan graph_cut_plan;
static constexpr size_t MAX_PLANS = 4;
std::list<Plan> graph_cut_plans;
};
static constexpr const char* GGML_RUNNER_CUT_PREFIX = "ggml_runner_cut:";