Browse Source

fixed sc warning

pull/254/head
李磊 4 years ago
parent
commit
54ec519013
4 changed files with 10 additions and 8 deletions
  1. +4
    -2
      inc/external/parser/caffe_parser.h
  2. +2
    -3
      inc/external/parser/onnx_parser.h
  3. +2
    -1
      inc/external/parser/tensorflow_parser.h
  4. +2
    -2
      parser/tensorflow/tensorflow_parser.cc

+ 4
- 2
inc/external/parser/caffe_parser.h View File

@@ -41,10 +41,12 @@
#include "graph/types.h"

namespace ge {
PARSER_FUNC_VISIBILITY graphStatus aclgrphParseCaffe(const char *model_file, const char *weights_file, ge::Graph &graph);
PARSER_FUNC_VISIBILITY graphStatus aclgrphParseCaffe(const char *model_file, const char *weights_file,
ge::Graph &graph);

PARSER_FUNC_VISIBILITY graphStatus aclgrphParseCaffe(const char *model_file, const char *weights_file,
const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);
const std::map<ge::AscendString, ge::AscendString> &parser_params,
ge::Graph &graph);
} // namespace ge

#endif // INC_EXTERNAL_ACL_GRAPH_CAFFE_H_

+ 2
- 3
inc/external/parser/onnx_parser.h View File

@@ -38,11 +38,10 @@

namespace ge {
PARSER_FUNC_VISIBILITY graphStatus aclgrphParseONNX(const char *model_file,
const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);
const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);

PARSER_FUNC_VISIBILITY graphStatus aclgrphParseONNXFromMem(const char *buffer, size_t size,
const std::map<ge::AscendString, ge::AscendString> &parser_params,
ge::Graph &graph);
const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);
} // namespace ge

#endif // INC_EXTERNAL_PARSER_ONNX_PARSER_H_

+ 2
- 1
inc/external/parser/tensorflow_parser.h View File

@@ -44,7 +44,8 @@
namespace ge {
PARSER_FUNC_VISIBILITY graphStatus aclgrphParseTensorFlow(const char *model_file, ge::Graph &graph);
PARSER_FUNC_VISIBILITY graphStatus aclgrphParseTensorFlow(const char *model_file,
const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);
const std::map<ge::AscendString, ge::AscendString> &parser_params,
ge::Graph &graph);
} // namespace ge

#endif // INC_EXTERNAL_ACL_PARSER_TENSORFLOW_H_

+ 2
- 2
parser/tensorflow/tensorflow_parser.cc View File

@@ -700,8 +700,8 @@ Status TensorFlowModelParser::AddEdges(ge::ComputeGraphPtr &graph) {
ErrorManager::GetInstance().ATCReportErrMessage("E12021", {"opname1", "index1", "opname2", "index2"},
{src_op_name, std::to_string(input_iter->second.size()),
dest_op_name, std::to_string(src_output_iter.second.size())});
GELOGE(INTERNAL_ERROR, "Input size of op[%s]:%zu is not equal to Output size of op[%s]:%zu.", src_op_name.c_str(),
input_iter->second.size(), dest_op_name.c_str(), src_output_iter.second.size());
GELOGE(INTERNAL_ERROR, "Input size of op[%s]:%zu is not equal to Output size of op[%s]:%zu.",
src_op_name.c_str(), input_iter->second.size(), dest_op_name.c_str(), src_output_iter.second.size());
return INTERNAL_ERROR;
}
for (auto &outputpair : src_output_iter.second) {


Loading…
Cancel
Save