@@ -39,7 +39,7 @@ function(inference_analysis_python_api_int8_test_custom_warmup_batch_size
3939 ${filename} )
4040endfunction ()
4141
42- function (inference_analysis_python_api_int8_test_mkldnn target model_dir
42+ function (inference_analysis_python_api_int8_test_onednn target model_dir
4343 data_path filename )
4444 _inference_analysis_python_api_int8_test (${target} ${model_dir} ${data_path}
4545 ${filename} True )
@@ -271,7 +271,7 @@ if(LINUX AND WITH_ONEDNN)
271271 ${QUANT_RESNET50_MODEL_DIR} ${QUANT_RESNET50_MODEL_ARCHIVE}
272272 ff89b934ab961c3a4a844193ece2e8a7 )
273273 inference_quant_int8_image_classification_test (
274- test_quant_int8_resnet50_mkldnn ${QUANT_RESNET50_MODEL_DIR} /model
274+ test_quant_int8_resnet50_onednn ${QUANT_RESNET50_MODEL_DIR} /model
275275 ${IMAGENET_DATA_PATH} )
276276
277277 # Quant ResNet101
@@ -281,7 +281,7 @@ if(LINUX AND WITH_ONEDNN)
281281 ${QUANT_RESNET101_MODEL_DIR} ${QUANT_RESNET101_MODEL_ARCHIVE}
282282 95c6d01e3aeba31c13efb2ba8057d558 )
283283 # inference_quant_int8_image_classification_test( \
284- # test_quant_int8_resnet101_mkldnn \
284+ # test_quant_int8_resnet101_onednn \
285285 # ${QUANT_RESNET101_MODEL_DIR}/model \
286286 # ${IMAGENET_DATA_PATH})
287287
@@ -292,7 +292,7 @@ if(LINUX AND WITH_ONEDNN)
292292 ${QUANT_GOOGLENET_MODEL_DIR} ${QUANT_GOOGLENET_MODEL_ARCHIVE}
293293 1d4a7383baa63e7d1c423e8db2b791d5 )
294294 #inference_quant_int8_image_classification_test(
295- # test_quant_int8_googlenet_mkldnn ${QUANT_GOOGLENET_MODEL_DIR}/model
295+ # test_quant_int8_googlenet_onednn ${QUANT_GOOGLENET_MODEL_DIR}/model
296296 # ${IMAGENET_DATA_PATH})
297297
298298 # Quant MobileNetV1
@@ -309,7 +309,7 @@ if(LINUX AND WITH_ONEDNN)
309309 ${QUANT_MOBILENETV2_MODEL_DIR} ${QUANT_MOBILENETV2_MODEL_ARCHIVE}
310310 758a99d9225d8b73e1a8765883f96cdd )
311311 inference_quant_int8_image_classification_test (
312- test_quant_int8_mobilenetv2_mkldnn ${QUANT_MOBILENETV2_MODEL_DIR} /model
312+ test_quant_int8_mobilenetv2_onednn ${QUANT_MOBILENETV2_MODEL_DIR} /model
313313 ${IMAGENET_DATA_PATH} )
314314
315315 # Quant VGG16
@@ -318,7 +318,7 @@ if(LINUX AND WITH_ONEDNN)
318318 download_quant_model (${QUANT_VGG16_MODEL_DIR} ${QUANT_VGG16_MODEL_ARCHIVE}
319319 c37e63ca82a102f47be266f8068b0b55 )
320320 # inference_quant_int8_image_classification_test( \
321- # test_quant_int8_vgg16_mkldnn \
321+ # test_quant_int8_vgg16_onednn \
322322 # ${QUANT_VGG16_MODEL_DIR}/model \
323323 # ${IMAGENET_DATA_PATH})
324324
@@ -328,7 +328,7 @@ if(LINUX AND WITH_ONEDNN)
328328 download_quant_model (${QUANT_VGG19_MODEL_DIR} ${QUANT_VGG19_MODEL_ARCHIVE}
329329 62bcd4b6c3ca2af67e8251d1c96ea18f )
330330 # inference_quant_int8_image_classification_test( \
331- # test_quant_int8_vgg19_mkldnn ${QUANT_VGG19_MODEL_DIR}/model \
331+ # test_quant_int8_vgg19_onednn ${QUANT_VGG19_MODEL_DIR}/model \
332332 # ${IMAGENET_DATA_PATH})
333333
334334 ### Quant2 for image classification
@@ -420,15 +420,15 @@ if(LINUX AND WITH_ONEDNN)
420420 ${QUANT2_INT8_LSTM_SAVE_PATH} ${QUANT2_FP32_LSTM_MODEL_ARCHIVE}
421421 eecd9f44d69a84acc1cf2235c4b8b743 )
422422 inference_quant2_int8_lstm_model_test (
423- test_quant2_int8_lstm_mkldnn ${QUANT2_INT8_LSTM_SAVE_PATH} /lstm_fp32_model
423+ test_quant2_int8_lstm_onednn ${QUANT2_INT8_LSTM_SAVE_PATH} /lstm_fp32_model
424424 ${QUANT2_LSTM_MODEL_DIR} /lstm_quant
425425 ${QUANT2_INT8_LSTM_SAVE_PATH} /quant_lstm_input_data )
426426
427427endif ()
428428
429429# Since the tests for Quant & INT8 comparison support only testing on Linux
430- # with MKL -DNN, we remove it here to not test it on other systems.
431- list (REMOVE_ITEM TEST_OPS test_mkldnn_int8_quantization_strategy
430+ # with One -DNN, we remove it here to not test it on other systems.
431+ list (REMOVE_ITEM TEST_OPS test_onednn_int8_quantization_strategy
432432 quant_int8_image_classification_comparison quant_int8_nlp_comparison)
433433
434434#TODO(wanghaoshuang): Fix this unittest failed on GCC8.
@@ -477,11 +477,11 @@ set_tests_properties(test_imperative_qat_channelwise PROPERTIES TIMEOUT 200)
477477set_tests_properties (test_imperative_out_scale PROPERTIES TIMEOUT 200 )
478478set_tests_properties (test_imperative_skip_op PROPERTIES TIMEOUT 300 )
479479if (LINUX AND WITH_ONEDNN)
480- set_tests_properties (test_quant_int8_mobilenetv2_mkldnn PROPERTIES TIMEOUT
480+ set_tests_properties (test_quant_int8_mobilenetv2_onednn PROPERTIES TIMEOUT
481481 120 )
482- set_tests_properties (test_quant_int8_resnet50_mkldnn PROPERTIES TIMEOUT 120 )
483- #set_tests_properties(test_quant_int8_googlenet_mkldnn PROPERTIES TIMEOUT 120)
484- set_tests_properties (test_quant2_int8_lstm_mkldnn PROPERTIES TIMEOUT 120 )
482+ set_tests_properties (test_quant_int8_resnet50_onednn PROPERTIES TIMEOUT 120 )
483+ #set_tests_properties(test_quant_int8_googlenet_onednn PROPERTIES TIMEOUT 120)
484+ set_tests_properties (test_quant2_int8_lstm_onednn PROPERTIES TIMEOUT 120 )
485485endif ()
486486
487487if (APPLE )
0 commit comments