Browse Source

!24054 fix the bug about writing somas file

Merge pull request !24054 from yelihua/dev
tags/v1.6.0
i-robot Gitee 4 years ago
parent
commit
f35e48bdcc
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      mindspore/ccsrc/debug/OWNERS
  2. +1
    -1
      mindspore/ccsrc/debug/common.cc

+ 2
- 1
mindspore/ccsrc/debug/OWNERS View File

@@ -4,7 +4,8 @@ approvers:
- robingrosman
- yelihua
- wenkai_dist
reviewers:
- panfengfeng
- lilongfei15
- wangyue01
reviewers:
- caifubi

+ 1
- 1
mindspore/ccsrc/debug/common.cc View File

@@ -243,7 +243,7 @@ bool Common::SaveStringToFile(const std::string filename, const std::string stri
MS_LOG(ERROR) << "File path " << filename << " is too long.";
return false;
}
auto real_path = FileUtils::GetRealPath(common::SafeCStr(filename));
auto real_path = CreatePrefixPath(filename);
if (!real_path.has_value()) {
MS_LOG(ERROR) << "Get real path failed. path=" << filename;
return false;


Loading…
Cancel
Save