Skip to content

Commit bd3c5dd

Browse files
it-is-a-robotgitee-org
authored andcommitted
!72926 fix not generate csv
Merge pull request !72926 from zhouyaqiang0/master
2 parents d23482d + 7947a55 commit bd3c5dd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mindspore/ccsrc/backend/common/pass/custom_defined_depend.cc

-8
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ bool GetStageDependList(std::string depend_config_path, bool *get_full_op_name_l
143143
}
144144

145145
void MergeCsv(std::vector<string> csv_path_list, string csv_full_path) {
146-
auto ret = FileUtils::GetRealPath(csv_full_path.c_str());
147-
if (!ret.has_value()) {
148-
MS_LOG(EXCEPTION) << "Cannot get real path of full csv file.";
149-
}
150146
std::ofstream file(csv_full_path, std::ios::out | std::ios::trunc);
151147
file << "name"
152148
<< ","
@@ -218,10 +214,6 @@ bool CustomDefinedDepend::Run(const FuncGraphPtr &graph) {
218214
for (int64_t i = 0; i <= graph_id_; i++) {
219215
std::string csv_path_part =
220216
json_dir.value() + "/rank_id" + rank_id + "/custom_depend_graph_" + std::to_string(i) + ".csv";
221-
ret = FileUtils::GetRealPath(csv_path_part.c_str());
222-
if (!ret.has_value()) {
223-
MS_LOG(EXCEPTION) << "Cannot get real path of csv file.";
224-
}
225217
if (FileExists(csv_path_part)) {
226218
(void)csv_path_list.emplace_back(csv_path_part);
227219
}

0 commit comments

Comments
 (0)