Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mindspore/ccsrc/debug/data_dump/dump_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ std::string GenerateDumpPath(uint32_t graph_id, uint32_t rank_id, bool is_cst) {
void GetFileKernelName(NotNull<std::string *> kernel_name) {
const std::string strsrc_to_replace[4] = {"/", "\\", ".", " "};
const std::string strdst = "_";
for (const std::string strsrc : strsrc_to_replace) {
for (const std::string &strsrc : strsrc_to_replace) {
std::string::size_type pos = 0;
std::string::size_type srclen = strsrc.size();
std::string::size_type dstlen = strdst.size();
Expand Down