@@ -346,9 +346,10 @@ class FusedMatMulOpsTest : public OpsTestBase {
346
346
Tensor x_qtensor (qinput_dtype, x.shape ());
347
347
Tensor x_min_tensor (DT_FLOAT, TensorShape ({}));
348
348
Tensor x_max_tensor (DT_FLOAT, TensorShape ({}));
349
- MklTestingUtil::GetQuantizationTensors<T>(x, &x_qtensor, qinput_dtype,
350
- input_quant_mode, &x_min_tensor,
351
- &x_max_tensor);
349
+ auto status = MklTestingUtil::GetQuantizationTensors<T>(
350
+ x, &x_qtensor, qinput_dtype, input_quant_mode, &x_min_tensor,
351
+ &x_max_tensor);
352
+ ASSERT_TRUE (status.ok ());
352
353
Tensor y_qtensor (DT_QINT8, y.shape ());
353
354
const int num_channels = transpose_y ? y.dim_size (0 ) : y.dim_size (1 );
354
355
TensorShape minmax_shape =
@@ -364,8 +365,9 @@ class FusedMatMulOpsTest : public OpsTestBase {
364
365
&y_max_tensor);
365
366
}
366
367
} else {
367
- MklTestingUtil::GetQuantizationTensors<T>(
368
+ auto status = MklTestingUtil::GetQuantizationTensors<T>(
368
369
y, &y_qtensor, DT_QINT8, " SCALED" , &y_min_tensor, &y_max_tensor);
370
+ ASSERT_TRUE (status.ok ());
369
371
}
370
372
371
373
Scope root = tensorflow::Scope::NewRootScope ();
0 commit comments