* Changed namespace from ngraph to ov for OV Frontends * Fixed python * Fixed ONNX Editor for windows * Try to fix centos * Fixed code style * Revert frontend loader
26 lines
655 B
C++
26 lines
655 B
C++
// Copyright (C) 2018-2021 Intel Corporation
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#include "utils.hpp"
|
|
|
|
#include "ie_ngraph_utils.hpp"
|
|
#include "openvino/util/common_util.hpp"
|
|
|
|
namespace ov {
|
|
void operator>>(const std::stringstream& in, ov::element::Type& type) {
|
|
type = InferenceEngine::details::convertPrecision(ov::util::trim(in.str()));
|
|
}
|
|
|
|
bool getStrAttribute(const pugi::xml_node& node, const std::string& name, std::string& value) {
|
|
if (!node)
|
|
return false;
|
|
|
|
auto attr = node.attribute(name.c_str());
|
|
if (attr.empty())
|
|
return false;
|
|
value = std::string(attr.value());
|
|
return true;
|
|
}
|
|
} // namespace ov
|