Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovmik committed Apr 1, 2021
1 parent 95988ef commit bf6324f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ngraph/frontend/generic/src/frontend_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,21 +473,12 @@ namespace ngraph
};

FrontEndManager::FrontEndManager(): m_impl(new Impl()) {
std::cout << "Create maanger:\n";
}
FrontEndManager::~FrontEndManager() = default;

FrontEnd::Ptr FrontEndManager::loadByFramework(const std::string& framework, FrontEndCapabilities fec)
{
m_impl->loadByFramework(framework, fec);
if (framework == "onnx")
return std::make_shared<FrontEndONNX>();
else if (framework == "pdpd")
return std::make_shared<FrontEndPDPD>();
else if (framework == "tf")
return std::make_shared<FrontEndTensorflow>();
else
throw "Framework " + framework + " is unknown for FrontEnd manager; cannot load it.";
return m_impl->loadByFramework(framework, fec);
}

FrontEnd::Ptr FrontEndManager::loadByModel(const std::string& path, FrontEndCapabilities fec)
Expand All @@ -497,9 +488,6 @@ namespace ngraph

std::vector<std::string> FrontEndManager::availableFrontEnds() const
{
if (m_impl) {
std::cout << "No impl";
}
return m_impl->availableFrontEnds();
}
} // namespace frontend
Expand Down

0 comments on commit bf6324f

Please sign in to comment.