add ENABLE_GE

This commit is contained in:
jinyaohui 2020-06-24 17:08:05 +08:00
parent fe1d4ca3bd
commit bb17bc4081
1 changed files with 2 additions and 0 deletions

View File

@ -245,7 +245,9 @@ py::dict ExecutorPy::GetAllreduceFusion(const std::string &phase) {
} }
void ExecutorPy::DelNetRes(const std::string &id) { void ExecutorPy::DelNetRes(const std::string &id) {
#ifdef ENABLE_GE
FinalizeBackend(); FinalizeBackend();
#endif
if (executor_ != nullptr) { if (executor_ != nullptr) {
bool flag = false; bool flag = false;
auto tmp_info = info_; auto tmp_info = info_;