Browse Source

fix opensource

pull/377/head
zhao-lupeng 3 years ago
parent
commit
c110be6445
4 changed files with 2 additions and 6 deletions
  1. +0
    -2
      parser/common/acl_graph_parser_util.h
  2. +0
    -2
      parser/common/op_map.h
  3. +1
    -1
      parser/common/op_parser_factory.h
  4. +1
    -1
      parser/onnx/subgraph_adapter/subgraph_adapter_factory.h

+ 0
- 2
parser/common/acl_graph_parser_util.h View File

@@ -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) \


+ 0
- 2
parser/common/op_map.h View File

@@ -21,7 +21,6 @@
#include <string>
#include <vector>

/*lint -e1073*/
namespace ge {
// the operator type mapping table of caffe and mindspore
extern std::map<std::string, std::string> caffe_op_map;
@@ -41,5 +40,4 @@ extern std::vector<std::string> is_dataset_op_vec;
// output tensor num
extern std::map<std::string, int32_t> op_output_tensor_num;
} // namespace ge
/*lint +e1073*/
#endif // GE_COMMON_OP_MAP_H_

+ 1
- 1
parser/common/op_parser_factory.h View File

@@ -101,7 +101,7 @@ class OpParserFactory {
* @ingroup domi_omg
* @brief Each Op corresponds to a Creator function
*/
std::map<std::string, CREATOR_FUN> op_parser_creator_map_; // lint !e1073
std::map<std::string, CREATOR_FUN> op_parser_creator_map_;
std::map<std::string, CREATOR_FUN> fusion_op_parser_creator_map_;

friend class OpParserRegisterar;


+ 1
- 1
parser/onnx/subgraph_adapter/subgraph_adapter_factory.h View File

@@ -77,7 +77,7 @@ protected:
void RegisterCreator(const std::string &type, CREATOR_FUN fun);

private:
std::map<std::string, CREATOR_FUN> subgraph_adapter_creator_map_; // lint !e1073
std::map<std::string, CREATOR_FUN> subgraph_adapter_creator_map_;

friend class SubgraphAdapterRegisterar;
};


Loading…
Cancel
Save