forked from mindspore-Ecosystem/mindspore
fix offline debugger async dump segmentation fault issue
This commit is contained in:
parent
d94e2f7dcd
commit
6a568bfb5c
|
@ -1103,9 +1103,11 @@ std::vector<std::shared_ptr<TensorData>> DebugServices::ReadNeededDumpedTensors(
|
|||
} else {
|
||||
dump_style_name += ".input";
|
||||
}
|
||||
|
||||
if (std::find(proto_to_dump.begin(), proto_to_dump.end(),
|
||||
std::tuple<std::string, std::string>(orig_name, dump_style_name)) == proto_to_dump.end()) {
|
||||
proto_to_dump.push_back(std::tuple<std::string, std::string>(orig_name, dump_style_name));
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_sync_mode_) {
|
||||
// convert all files in proto_to_dump to npy and add to pool of async file names
|
||||
|
|
Loading…
Reference in New Issue