Skip to content

Commit 601b0f7

Browse files
committed
Revert additional shape division by elements type bitwidth
1 parent 3bfa79e commit 601b0f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tests/test_utils/common_test_utils/src/ov_tensor_utils.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ void compare(const ov::Tensor& expected,
559559
}
560560

561561
// error is a place with whole data related to incorrect element in tensor
562-
size_t shape_size_cnt =
563-
shape_size(expected_shape) * expected.get_element_type().bitwidth() / ov::element::from<ExpectedT>().bitwidth();
562+
size_t shape_size_cnt = shape_size(expected_shape);
564563
tensor_comparation::Error error(abs_threshold, rel_threshold, topk_threshold, mvn_threshold, shape_size_cnt);
565564
const auto expected_data = static_cast<ExpectedT*>(expected.data(expected.get_element_type()));
566565
const auto actual_data = static_cast<ActualT*>(actual.data(actual.get_element_type()));

0 commit comments

Comments
 (0)