!98 Pass str instead of bool to ge.exec.EnableDump

Merge pull request !98 from ghzl/ge-exec-EnableDump-change-to-str
This commit is contained in:
mindspore-ci-bot 2020-04-03 12:22:01 +08:00 committed by Gitee
commit 367f513e8c
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ void MsContext::SetHcclOptions(std::map<std::string, std::string>* ge_options) c
void MsContext::GetGeOptions(std::map<std::string, std::string>* ge_options) const {
#ifdef ENABLE_GE
(*ge_options)["device_id"] = "0";
(*ge_options)["ge.exec.enableDump"] = enable_dump_;
(*ge_options)["ge.exec.enableDump"] = std::to_string(enable_dump_);
(*ge_options)["ge.exec.dumpPath"] = save_dump_path_;
// only not supported in ge
auto tbe_plugin_path = common::GetEnv("ME_TBE_PLUGIN_PATH");