Files
openvino/ngraph/frontend/ir/src/utils.cpp
T
Ilya Churaev 6a89eb2844 Change frontends namespace to ov (#8434)
* 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
2021-11-10 12:48:37 +03:00

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