OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[Core] Remove suspicious comments (#31142)
Tomasz Jankowski5e1a267a67a3
diff --git a/src/core/reference/include/openvino/reference/convolution_backprop_data.hpp b/src/core/reference/include/openvino/reference/convolution_backprop_data.hppindex 7ed7cecafa6..edb45c53482 100644--- a/src/core/reference/include/openvino/reference/convolution_backprop_data.hpp+++ b/src/core/reference/include/openvino/reference/convolution_backprop_data.hpp@@ -82,7 +82,7 @@ void infer_forward_convbackprop_output_shape(const Shape& in_spatial_shape,const Strides& dilations,const CoordinateDiff& output_padding) {for (size_t idx = 0; idx < in_spatial_shape.size(); idx++) {- // FIXME: Incorrect logic with negative pad+ // CVS-169881: Incorrect logic with negative padint total_padding =static_cast<int>(strides[idx] * (in_spatial_shape[idx] - 1) + dilations[idx] * (f_spatial_shape[idx] - 1) +1 - out_spatial_shape[idx] + output_padding[idx]);diff --git a/src/core/reference/src/op/convert.cpp b/src/core/reference/src/op/convert.cppindex 20fc508b255..201ab375315 100644--- a/src/core/reference/src/op/convert.cpp+++ b/src/core/reference/src/op/convert.cpp@@ -541,7 +541,7 @@ void convert_from_bf16_to_f16_with_clamp(const bfloat16* arg, float16* out, size// can re-use Clamp as bf16 is converted to float before clampingusing clamp_bf16_f16 = Clamp<float, float16>;convert_impl<clamp_bf16_f16>(arg, out, count);- // FIXME CVS-125496: duplicate and stub for ARM, provide optimized solution+ // CVS-125496: duplicate and stub for ARM, provide optimized solution}size_t count_out_of_f16_range(const float* arg, size_t count) {diff --git a/src/core/src/op/loop.cpp b/src/core/src/op/loop.cppindex 04cd3bdbb5c..557d7858f8b 100644--- a/src/core/src/op/loop.cpp+++ b/src/core/src/op/loop.cpp@@ -124,7 +124,7 @@ void Loop::validate_and_infer_types() {m_num_iterations = val[0];}- // WA: input description with index 0 or 1 means that Loop consructor will duplicate it in+ // Input description with index 0 or 1 means that Loop consructor will duplicate it in// the inputs.// When using visit_attributes() no duplication occurs, input_offset shall be decremented.int64_t input_offset = 2;diff --git a/src/core/src/op/read_value.cpp b/src/core/src/op/read_value.cppindex 0a7ef64708b..a05c994be1c 100644--- a/src/core/src/op/read_value.cpp+++ b/src/core/src/op/read_value.cpp@@ -91,7 +91,6 @@ void ReadValue::validate_and_infer_types() {variable_type," Initialization type: ",initial_type);- // workaround:// dynamic rank/type can be derived from the IRs generated via the prev versions of OV,// but dynamic rank/type are not supported in plugins,// so we are trying to fix them here using the rank/type of ReadValue 1st input, if it existsdiff --git a/src/core/src/op/strided_slice.cpp b/src/core/src/op/strided_slice.cppindex c71c5b343a6..5e5d3a9b902 100644--- a/src/core/src/op/strided_slice.cpp+++ b/src/core/src/op/strided_slice.cpp@@ -229,7 +229,7 @@ bool evaluate_strided_slice(const Tensor& data,bool StridedSlice::evaluate(TensorVector& outputs, const TensorVector& inputs) const {OV_OP_SCOPE(v1_StridedSlice_evaluate);- // FIXME: 4th input is optional, but it is required by the following code+ // CVS-169883: 4th input is optional, but it is required by the following codeOPENVINO_ASSERT(inputs.size() == 4);OPENVINO_ASSERT(outputs.size() == 1);return strided_slice::evaluate_strided_slice(inputs[0],@@ -246,6 +246,7 @@ bool StridedSlice::evaluate(TensorVector& outputs, const TensorVector& inputs) cbool StridedSlice::has_evaluate() const {OV_OP_SCOPE(v1_StridedSlice_has_evaluate);+ // CVS-169883: 4th input is optionalreturn get_input_size() == 4;}diff --git a/src/core/src/pass/pass.cpp b/src/core/src/pass/pass.cppindex 420b8d27298..3d79d5e24e6 100644--- a/src/core/src/pass/pass.cpp+++ b/src/core/src/pass/pass.cpp@@ -51,6 +51,6 @@ void ov::pass::PassBase::set_callback(const param_callback& callback) {m_pass_config->set_callback(callback);}-// The symbols are requiered to be in cpp file to workaround RTTI issue on Android LLVM+// The symbols are requiered to be in cpp file to address RTTI issue on Android LLVMov::pass::ModelPass::~ModelPass() = default;diff --git a/src/core/src/pass/serialize.cpp b/src/core/src/pass/serialize.cppindex 0446d276109..28f8851d065 100644--- a/src/core/src/pass/serialize.cpp+++ b/src/core/src/pass/serialize.cpp@@ -740,8 +740,8 @@ const std::vector<Edge> create_edge_mapping(const std::unordered_map<ov::Node*,std::string get_opset_name(const ov::Node* n) {OPENVINO_ASSERT(n != nullptr);- // TODO: remove it one day: try to find opset name from RT info- // It's a dirty hack to TypeRelaxed and similar template internal operations+ // CVS-169882: Try to find opset name from RT info. Below (not recommended) solution affects TypeRelaxed and similar+ // template internal operations.auto opset_it = n->get_rt_info().find("opset");if (opset_it != n->get_rt_info().end()) {if (opset_it->second.is<std::string>()) {@@ -1075,7 +1075,7 @@ void ngfunction_2_ir(pugi::xml_node& netXml,if (node->get_input_size() > 0) {pugi::xml_node input = layer.append_child("input");for (auto& i : node->inputs()) {- // WA for LSTMCellv0, peephole input shall not be serialized+ // v0::LSTMCell peephole input shall not be serializedif (i.get_index() == 6 && ov::as_type<ov::op::v0::LSTMCell>(node)) {port_id++;continue;@@ -1200,7 +1200,7 @@ void ngfunction_2_ir(pugi::xml_node& netXml,pugi::xml_node edges = netXml.append_child("edges");auto ordered_ops = model.get_ordered_ops();for (auto e : edge_mapping) {- // WA for LSTMCellv0, peephole input shall not be serialized+ // v0::LSTMCell peephole input shall not be serializedif (e.to_port == 6) {const auto& type_info = ordered_ops[e.to_layer]->get_type_info();if (!strcmp(type_info.name, "LSTMCell")) {diff --git a/src/core/tests/pattern.cpp b/src/core/tests/pattern.cppindex 1a0defc40e4..bcf1e80639a 100644--- a/src/core/tests/pattern.cpp+++ b/src/core/tests/pattern.cpp@@ -1535,7 +1535,7 @@ TEST(pattern, predicate_attr_match) {auto ss_pattern = pattern::any_input({{"begin_mask", std::vector<int64_t>{0, 1}}});// TODO: to allow initializer list as attribute value -- need to update ov::Attribute value type -- wrap ov::Any and// allow implicit conversion from initializer lists of different types.- // For now it seems excessive as it impacts quality of life of limited number of developers aka there is a WA+ // For now it seems excessive as it impacts quality of life of limited number of developers.ASSERT_TRUE(tm.match(ss_pattern, ss));}