!39569 Fix code warnings for tensor_data and debug_services

Merge pull request !39569 from maning202007/fix_codeDEX_master
This commit is contained in:
i-robot 2022-08-04 03:30:42 +00:00 committed by Gitee
commit eb3efea657
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 6 deletions

View File

@ -1114,7 +1114,7 @@ DebugServices::NPYFilePool DebugServices::PreProcessDumpDirSync(const std::strin
void DebugServices::ProcessConvertList(const DumpFileMap &dump_dir_mapped_files,
const std::string &prefix_dump_file_name, const std::string &specific_dump_dir,
DirMap *dir_to_files_map, NPYFilePool *const result_list) const {
DirMap *dir_to_files_map, NPYFilePool *const result_list) {
MS_EXCEPTION_IF_NULL(dir_to_files_map);
auto it = dump_dir_mapped_files.find(specific_dump_dir);
if (it == dump_dir_mapped_files.end()) {

View File

@ -409,12 +409,12 @@ class DebugServices {
std::vector<unsigned int> device_id, std::vector<unsigned int> iteration,
std::vector<unsigned int> root_graph_id, NPYFilePool *const result_list);
void ConvertWatchPointNodes(const DumpFileMap &dump_dir_mapped_files, const std::vector<ProtoDump> &proto_dump,
const std::string &specific_dump_dir, NPYFilePool *const result_list);
static void ConvertWatchPointNodes(const DumpFileMap &dump_dir_mapped_files, const std::vector<ProtoDump> &proto_dump,
const std::string &specific_dump_dir, NPYFilePool *const result_list);
void ProcessConvertList(const DumpFileMap &dump_dir_mapped_files, const std::string &prefix_dump_file_name,
const std::string &specific_dump_dir, DirMap *dir_to_files_map,
NPYFilePool *const result_list) const;
static void ProcessConvertList(const DumpFileMap &dump_dir_mapped_files, const std::string &prefix_dump_file_name,
const std::string &specific_dump_dir, DirMap *dir_to_files_map,
NPYFilePool *const result_list);
void GetTensorDataInfoAsync(const std::vector<ProtoDump> &proto_dump, const std::string &specific_dump_dir,
uint32_t iteration, uint32_t device_id, uint32_t root_graph_id,

View File

@ -21,6 +21,7 @@
#include <vector>
#include <string>
#include <iostream>
#include "base/float16.h"
#include "mindspore/core/utils/log_adapter.h"
#include "mindspore/core/mindapi/base/type_id.h"
#ifdef ONLINE_DBG_MODE