diff --git a/onnxruntime/core/providers/cpu/cpu_execution_provider.cc b/onnxruntime/core/providers/cpu/cpu_execution_provider.cc index 9d4ddb147a..94dc7d194a 100644 --- a/onnxruntime/core/providers/cpu/cpu_execution_provider.cc +++ b/onnxruntime/core/providers/cpu/cpu_execution_provider.cc @@ -644,20 +644,4 @@ std::shared_ptr CPUExecutionProvider::GetKernelRegistry() const static std::shared_ptr kernel_registry = GetCpuKernelRegistry(); return kernel_registry; } - -std::vector> -CPUExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph, - const std::vector& kernel_registries) const { - std::vector> - result = IExecutionProvider::GetCapability(graph, kernel_registries); - - for (auto& rule : fuse_rules_) { - rule(graph, result); - } - return result; -} - -void CPUExecutionProvider::InsertFusedRules(FuseRuleFn rule) { - fuse_rules_.push_back(rule); -} } // namespace onnxruntime diff --git a/onnxruntime/core/providers/cpu/cpu_execution_provider.h b/onnxruntime/core/providers/cpu/cpu_execution_provider.h index 48fde27bc9..856e43d9d2 100644 --- a/onnxruntime/core/providers/cpu/cpu_execution_provider.h +++ b/onnxruntime/core/providers/cpu/cpu_execution_provider.h @@ -46,11 +46,6 @@ class CPUExecutionProvider : public IExecutionProvider { #endif } - std::vector> GetCapability( - const onnxruntime::GraphViewer& graph, - const std::vector& kernel_registries) const override; - - ///requires src.buffer_deleter_ == nullptr Status CopyTensor(const Tensor&, Tensor&) const override { return Status(common::ONNXRUNTIME, common::FAIL, "Shouldn't reach here. CPUExecutionProvider doesn't support CopyTensor"); } @@ -62,7 +57,6 @@ class CPUExecutionProvider : public IExecutionProvider { std::shared_ptr GetKernelRegistry() const override; - void InsertFusedRules(FuseRuleFn rule); private: std::vector fuse_rules_;