Files
openvino/ngraph/test/util/test_case.cpp
2021-04-01 11:22:31 +02:00

22 lines
511 B
C++

// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ie_core.hpp>
#include "test_case.hpp"
namespace ngraph
{
namespace test
{
std::shared_ptr<Function> function_from_ir(const std::string& xml_path,
const std::string& bin_path)
{
InferenceEngine::Core c;
auto network = c.ReadNetwork(xml_path, bin_path);
return network.getFunction();
}
}
}