Browse Source

Pre Merge pull request !387 from 李正龙/r1.6.0-make_shared

pull/387/MERGE
李正龙 Gitee 4 years ago
parent
commit
cfe2d4023f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      parser/common/op_parser_factory.cc

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

@@ -52,7 +52,7 @@ FMK_FUNC_HOST_VISIBILITY std::shared_ptr<OpParserFactory> OpParserFactory::Insta

auto iter = instances.find(framework);
if (iter == instances.end()) {
std::shared_ptr<OpParserFactory> instance(new (std::nothrow) OpParserFactory());
std::shared_ptr<OpParserFactory> instance(ge::parser::MakeShared<OpParserFactory>());
if (instance == nullptr) {
REPORT_CALL_ERROR("E19999", "create OpParserFactory failed");
GELOGE(INTERNAL_ERROR, "[Create][OpParserFactory] failed.");


Loading…
Cancel
Save