Browse Source

!1602 Fix codex warning in `ms_context.cc`

Merge pull request !1602 from seatea/fix-codex-warning
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
e57fbe0900
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/ccsrc/utils/context/ms_context.cc

+ 1
- 0
mindspore/ccsrc/utils/context/ms_context.cc View File

@@ -80,6 +80,7 @@ MsContext::MsContext(const std::string &policy, const std::string &target) {
enable_loop_sink_ = target == kAscendDevice || target == kDavinciDevice;
profiling_mode_ = false;
profiling_options_ = "training_trace";
check_bprop_flag_ = false;
}

std::shared_ptr<MsContext> MsContext::GetInstance() {


Loading…
Cancel
Save