Browse Source

make_shared改修

pull/387/head
lzl 4 years ago
parent
commit
f0fb57e857
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(ComGraphMakeShared<OpParserFactory>());
if (instance == nullptr) {
REPORT_CALL_ERROR("E19999", "create OpParserFactory failed");
GELOGE(INTERNAL_ERROR, "[Create][OpParserFactory] failed.");


Loading…
Cancel
Save