Browse Source

!558 add noexcept to OpParserRegisterar class

Merge pull request !558 from linyanfeng/ge_dev
pull/561/head
linyanfeng i-robot 3 years ago
parent
commit
f7c6f26476
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      parser/common/op_parser_factory.h

+ 3
- 2
parser/common/op_parser_factory.h View File

@@ -122,7 +122,7 @@ class OpParserRegisterar {
* @param [in] fun Creator function corresponding to Op
*/
OpParserRegisterar(const domi::FrameworkType framework, const std::string &op_type, OpParserFactory::CREATOR_FUN fun,
bool is_fusion_op = false) {
bool is_fusion_op = false) noexcept {
OpParserFactory::Instance(framework)->RegisterCreator(op_type, fun, is_fusion_op);
}
~OpParserRegisterar() {}
@@ -145,7 +145,8 @@ class CustomParserAdapterRegistry {
// Register Creator function for the custom custom operator ParserAdapter
class CustomParserAdapterRegistrar {
public:
CustomParserAdapterRegistrar(const domi::FrameworkType framework, CustomParserAdapterRegistry::CREATOR_FUN fun) {
CustomParserAdapterRegistrar(const domi::FrameworkType framework,
CustomParserAdapterRegistry::CREATOR_FUN fun) noexcept {
CustomParserAdapterRegistry::Instance()->Register(framework, fun);
}
~CustomParserAdapterRegistrar() {}


Loading…
Cancel
Save