From c110be64451fc4f07ca76dadf79940b138736f5b Mon Sep 17 00:00:00 2001 From: zhao-lupeng Date: Fri, 8 Oct 2021 17:04:49 +0800 Subject: [PATCH] fix opensource --- parser/common/acl_graph_parser_util.h | 2 -- parser/common/op_map.h | 2 -- parser/common/op_parser_factory.h | 2 +- parser/onnx/subgraph_adapter/subgraph_adapter_factory.h | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/parser/common/acl_graph_parser_util.h b/parser/common/acl_graph_parser_util.h index e7190e9..2369ad5 100644 --- a/parser/common/acl_graph_parser_util.h +++ b/parser/common/acl_graph_parser_util.h @@ -230,8 +230,6 @@ inline domi::Status CheckInt64Uint32MulOverflow(int64_t a, uint32_t b) { } // namespace parser } // namespace ge -/*lint --emacro((773),GE_TIMESTAMP_START)*/ -/*lint -esym(773,GE_TIMESTAMP_START)*/ #define PARSER_TIMESTAMP_START(stage) uint64_t startUsec_##stage = ge::parser::GetCurrentTimestamp() #define PARSER_TIMESTAMP_END(stage, stage_name) \ diff --git a/parser/common/op_map.h b/parser/common/op_map.h index cae651c..f85c936 100644 --- a/parser/common/op_map.h +++ b/parser/common/op_map.h @@ -21,7 +21,6 @@ #include #include -/*lint -e1073*/ namespace ge { // the operator type mapping table of caffe and mindspore extern std::map caffe_op_map; @@ -41,5 +40,4 @@ extern std::vector is_dataset_op_vec; // output tensor num extern std::map op_output_tensor_num; } // namespace ge -/*lint +e1073*/ #endif // GE_COMMON_OP_MAP_H_ diff --git a/parser/common/op_parser_factory.h b/parser/common/op_parser_factory.h index 112345e..083e4b5 100644 --- a/parser/common/op_parser_factory.h +++ b/parser/common/op_parser_factory.h @@ -101,7 +101,7 @@ class OpParserFactory { * @ingroup domi_omg * @brief Each Op corresponds to a Creator function */ - std::map op_parser_creator_map_; // lint !e1073 + std::map op_parser_creator_map_; std::map fusion_op_parser_creator_map_; friend class OpParserRegisterar; diff --git a/parser/onnx/subgraph_adapter/subgraph_adapter_factory.h b/parser/onnx/subgraph_adapter/subgraph_adapter_factory.h index 350f23e..549687f 100644 --- a/parser/onnx/subgraph_adapter/subgraph_adapter_factory.h +++ b/parser/onnx/subgraph_adapter/subgraph_adapter_factory.h @@ -77,7 +77,7 @@ protected: void RegisterCreator(const std::string &type, CREATOR_FUN fun); private: - std::map subgraph_adapter_creator_map_; // lint !e1073 + std::map subgraph_adapter_creator_map_; friend class SubgraphAdapterRegisterar; };