From c08759504c27dad6d87dbabfb4e39ab43cae9c1d Mon Sep 17 00:00:00 2001 From: jinyaohui Date: Wed, 1 Jul 2020 16:49:02 +0800 Subject: [PATCH] add ENABLE_GE --- mindspore/ccsrc/pipeline/pipeline.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mindspore/ccsrc/pipeline/pipeline.cc b/mindspore/ccsrc/pipeline/pipeline.cc index 517d4cc518..bb1f693c6b 100644 --- a/mindspore/ccsrc/pipeline/pipeline.cc +++ b/mindspore/ccsrc/pipeline/pipeline.cc @@ -245,7 +245,9 @@ py::dict ExecutorPy::GetAllreduceFusion(const std::string &phase) { } void ExecutorPy::DelNetRes(const std::string &id) { +#ifdef ENABLE_GE FinalizeBackend(); +#endif if (executor_ != nullptr) { bool flag = false; auto tmp_info = info_;