From 0332e4a85438beeb8762e99a10eea868a120da06 Mon Sep 17 00:00:00 2001 From: jinyaohui Date: Wed, 24 Jun 2020 17:11:37 +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 5ddd150593..d346c980ea 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_;