Skip to content

Commit 5b0ed8a

Browse files
committed
Apply comments
1 parent 02ab26a commit 5b0ed8a

File tree

3 files changed

+5
-205
lines changed

3 files changed

+5
-205
lines changed

src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/range.cpp

-199
This file was deleted.

src/plugins/intel_gpu/tests/functional/subgraph_tests/dynamic/kv_cache.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ const std::vector<std::vector<InputShape>> input_shapes_basic = {
102102
void resize_function(std::shared_ptr<ov::Model> function, const std::vector<ov::Shape>& targetInputStaticShapes) {
103103
auto inputs = function->inputs();
104104
std::map<ov::Output<ov::Node>, ov::PartialShape> shapes;
105-
if (inputs.size() > targetInputStaticShapes.size()) {
106-
throw std::runtime_error("targetInputStaticShapes.size() = " + std::to_string(targetInputStaticShapes.size()) +
107-
" != inputs.size() = " + std::to_string(inputs.size()));
108-
}
105+
OPENVINO_ASSERT(inputs.size() <= targetInputStaticShapes.size(),
106+
"targetInputStaticShapes.size() = ", targetInputStaticShapes.size(), " != inputs.size() = ", inputs.size());
107+
109108
for (size_t i = 0; i < inputs.size(); i++) {
110109
shapes.insert({inputs[i], targetInputStaticShapes[i]});
111110
}

src/tests/test_utils/common_test_utils/src/ov_test_utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ namespace ov {
115115
namespace test {
116116
namespace utils {
117117

118-
bool is_tensor_iterator_exist(const std::shared_ptr<ov::Model>& func) {
119-
const auto& ops = func->get_ops();
118+
bool is_tensor_iterator_exist(const std::shared_ptr<ov::Model>& model) {
119+
const auto& ops = model->get_ops();
120120
for (const auto& node : ops) {
121121
const auto& ti = std::dynamic_pointer_cast<ov::op::v0::TensorIterator>(node);
122122
if (ti) {

0 commit comments

Comments
 (0)