1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
6 #include <ie_plugin.hpp>
7 #include <cpp_interfaces/base/ie_plugin_base.hpp>
8 #include "gna_plugin_internal.hpp"
10 using namespace InferenceEngine;
12 using namespace GNAPluginNS;
14 INFERENCE_PLUGIN_API(StatusCode) CreatePluginEngine(IInferencePlugin *&plugin, ResponseDesc *resp) noexcept {
16 plugin = make_ie_compatible_plugin({2, 0, "GNAPlugin", "GNAPlugin"}, make_shared<GNAPluginInternal>());
19 catch (std::exception &ex) {
20 return DescriptionBuffer(GENERAL_ERROR, resp) << ex.what();