Fix potential UNITY build failures (ENABLE_FASTER_BUILD) (#7647)
When ENABLE_FASTER_BUILD is ON, source files are combined to batch for faster compilation. However, when one source file uses "using namespace ngraph", and another has "using namespace ov" - then conflicts may occur depending on how sources were combined This fix removes usage of "using namespace ov" from ngraph code to avoid such potential issues
This commit is contained in:
parent
7320e9710a
commit
4a49fb6e59
@ -10,7 +10,7 @@
|
|||||||
#include "ngraph/except.hpp"
|
#include "ngraph/except.hpp"
|
||||||
#include "ngraph/util.hpp"
|
#include "ngraph/util.hpp"
|
||||||
|
|
||||||
using namespace ov;
|
namespace ov {
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -264,3 +264,5 @@ void AttributeAdapter<ov::Layout>::set(const std::string& value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constexpr VariantTypeInfo VariantWrapper<ov::Layout>::type_info;
|
constexpr VariantTypeInfo VariantWrapper<ov::Layout>::type_info;
|
||||||
|
|
||||||
|
} // namespace ov
|
@ -8,8 +8,9 @@
|
|||||||
#include "ngraph/op/constant.hpp"
|
#include "ngraph/op/constant.hpp"
|
||||||
#include "ngraph/validation_util.hpp"
|
#include "ngraph/validation_util.hpp"
|
||||||
|
|
||||||
|
namespace ov {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace ov;
|
|
||||||
|
|
||||||
BWDCMP_RTTI_DEFINITION(op::util::LogicalReduction);
|
BWDCMP_RTTI_DEFINITION(op::util::LogicalReduction);
|
||||||
|
|
||||||
@ -62,3 +63,5 @@ void op::util::LogicalReduction::validate_and_infer_types() {
|
|||||||
set_input_is_relevant_to_shape(1);
|
set_input_is_relevant_to_shape(1);
|
||||||
set_output_type(0, data_et, result_shape);
|
set_output_type(0, data_et, result_shape);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace ov
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#include "openvino/core/node.hpp"
|
#include "openvino/core/node.hpp"
|
||||||
#include "openvino/core/shape.hpp"
|
#include "openvino/core/shape.hpp"
|
||||||
|
|
||||||
using namespace ov;
|
namespace ov {
|
||||||
using namespace ov::preprocess;
|
namespace preprocess {
|
||||||
|
|
||||||
static Shape construct_mean_scale_shape(const std::shared_ptr<Node>& node,
|
static Shape construct_mean_scale_shape(const std::shared_ptr<Node>& node,
|
||||||
size_t values_size,
|
size_t values_size,
|
||||||
@ -97,3 +97,6 @@ void PreProcessSteps::PreProcessStepsImpl::add_convert_impl(const ov::element::T
|
|||||||
},
|
},
|
||||||
true));
|
true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace preprocess
|
||||||
|
} // namespace ov
|
Loading…
Reference in New Issue
Block a user