From d4968cb3f976ce61e30e0f4ded44df46972817f9 Mon Sep 17 00:00:00 2001 From: Chi Lo Date: Fri, 7 Feb 2025 14:28:55 -0800 Subject: [PATCH] remove unnecessary code --- onnxruntime/core/framework/graph_partitioner.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/onnxruntime/core/framework/graph_partitioner.cc b/onnxruntime/core/framework/graph_partitioner.cc index d7d52798fc..26d1e6cb79 100644 --- a/onnxruntime/core/framework/graph_partitioner.cc +++ b/onnxruntime/core/framework/graph_partitioner.cc @@ -12,7 +12,6 @@ #include "core/framework/kernel_lookup.h" #include "core/framework/kernel_registry_manager.h" #include "core/framework/kernel_registry.h" -#include "core/optimizer/graph_optimizer_registry.h" #include "core/graph/function.h" #include "core/graph/function_utils.h" #include "core/graph/graph_viewer.h" @@ -259,7 +258,6 @@ static Status GetCapabilityForEPForAotInlining(const GraphViewer& graph_viewer, kernel_registries_for_ep, kernel_registry_mgr.GetKernelTypeStrResolver(), logger}; - auto graph_optimizer_registry = onnxruntime::GraphOptimizerRegistry::Get(); // TODO: Provide EP with a capability to look inside the functions. capabilities = get_capabilities(current_ep, graph_viewer, kernel_lookup);