|
|
|
@@ -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."); |
|
|
|
|