@@ -293,6 +293,8 @@ void TestMatMulNBitsTyped(std::optional<float> abs_error = std::nullopt,
293293 base_opts.output_abs_error = 0 .1f ;
294294 } else if constexpr (std::is_same<AType, MLFloat16>::value) {
295295 base_opts.output_abs_error = 0 .055f ;
296+ } else {
297+ base_opts.output_abs_error = 0 .05f ;
296298 }
297299
298300 if (rel_error.has_value ()) {
@@ -301,6 +303,8 @@ void TestMatMulNBitsTyped(std::optional<float> abs_error = std::nullopt,
301303 base_opts.output_rel_error = 0 .02f ;
302304 } else if constexpr (std::is_same<AType, MLFloat16>::value) {
303305 base_opts.output_rel_error = 0 .02f ;
306+ } else {
307+ base_opts.output_rel_error = 0 .02f ;
304308 }
305309
306310 {
@@ -357,8 +361,6 @@ void TestMatMulNBitsTyped(std::optional<float> abs_error = std::nullopt,
357361#endif
358362}
359363
360- #if !defined(USE_OPENVINO)
361-
362364TEST (MatMulNBits, Float32_4b_Accuracy0) {
363365 TestMatMulNBitsTyped<float , 1 , 1 , 16 , 16 , 0 >();
364366 TestMatMulNBitsTyped<float , 1 , 2 , 16 , 16 , 0 >();
@@ -591,7 +593,6 @@ TEST(MatMulNBits, Float32_4b_Accuracy4_Batch) {
591593 RunTest<float >(opts);
592594}
593595
594- #endif
595596#endif
596597#endif
597598
0 commit comments