@@ -118,6 +118,7 @@ def enable(
118
118
"pytorch_inc_dynamic_quant",
119
119
"pytorch_inc_static_quant_fx",
120
120
"pytorch_inc_static_quant_ipex",
121
+ "pytorch_inc_static_quant_ipex_xpu",
121
122
"pytorch_inc_bf16",
122
123
"pytorch_inc_huggingface_optimum_static",
123
124
"pytorch_inc_huggingface_optimum_dynamic",
@@ -210,6 +211,7 @@ def enable(
210
211
or "pytorch_jit_trace_ofi" in features
211
212
or "pytorch_inc_static_quant_fx" in features
212
213
or "pytorch_inc_static_quant_ipex" in features
214
+ or "pytorch_inc_static_quant_ipex_xpu" in features
213
215
):
214
216
features = ["pytorch_reclaim_inputs" ] + features
215
217
@@ -312,6 +314,7 @@ def enable(
312
314
"pytorch_inc_dynamic_quant" ,
313
315
"pytorch_inc_static_quant_fx" ,
314
316
"pytorch_inc_static_quant_ipex" ,
317
+ "pytorch_inc_static_quant_ipex_xpu" ,
315
318
"pytorch_inc_huggingface_optimum_static" ,
316
319
"pytorch_inc_huggingface_optimum_dynamic" ,
317
320
"onnx_inc_static_quant_qlinear" ,
@@ -839,6 +842,7 @@ def superbench(
839
842
["pytorch_inc_dynamic_quant" ],
840
843
["pytorch_inc_static_quant_fx" ],
841
844
["pytorch_inc_static_quant_ipex" ],
845
+ ["pytorch_inc_static_quant_ipex_xpu" ],
842
846
["pytorch_inc_bf16" ],
843
847
]
844
848
standalones_pool = []
@@ -857,12 +861,14 @@ def superbench(
857
861
"pytorch_ipex_bf16" ,
858
862
"pytorch_inc_static_quant_fx" ,
859
863
"pytorch_inc_static_quant_ipex" ,
864
+ "pytorch_inc_static_quant_ipex_xpu" ,
860
865
"pytorch_inc_dynamic_quant" ,
861
866
"pytorch_ipex_int8_static_quant" ,
862
867
"pytorch_ipex_int8_dynamic_quant" ,
863
868
]
864
869
# features that can be standalone (either use alone or use with "backend"):
865
870
standalones_pool = [
871
+ "pytorch_ipex_xpu" ,
866
872
"pytorch_mixed_precision_cpu" ,
867
873
"pytorch_channels_last" ,
868
874
]
@@ -906,6 +912,8 @@ def superbench(
906
912
continue
907
913
if "pytorch_inc_static_quant_ipex" in features and "pytorch_mixed_precision_cpu" in features :
908
914
continue
915
+ if "pytorch_inc_static_quant_ipex_xpu" in features and "pytorch_mixed_precision_cpu" in features :
916
+ continue
909
917
if "pytorch_inc_dynamic_quant" in features and "pytorch_mixed_precision_cpu" in features :
910
918
continue
911
919
@@ -960,6 +968,8 @@ def remove_if_have(list, element):
960
968
features_display = "Intel INT8 (Static)"
961
969
elif features == ["pytorch_inc_static_quant_ipex" ]:
962
970
features_display = "Intel INT8 (IPEX)"
971
+ elif features == ["pytorch_inc_static_quant_ipex_xpu" ]:
972
+ features_display = "Intel INT8 (IPEX XPU)"
963
973
elif features == ["pytorch_inc_bf16" ]:
964
974
features_display = "Intel BF16"
965
975
elif features == []:
@@ -1047,6 +1057,8 @@ def remove_if_have(list, element):
1047
1057
best_optimization_display = "Intel INT8 (Static)"
1048
1058
elif list_optimization_set_top3 [0 ] == ["pytorch_inc_static_quant_ipex" ]:
1049
1059
best_optimization_display = "Intel INT8 (IPEX)"
1060
+ elif list_optimization_set_top3 [0 ] == ["pytorch_inc_static_quant_ipex_xpu" ]:
1061
+ best_optimization_display = "Intel INT8 (IPEX XPU)"
1050
1062
elif list_optimization_set_top3 [0 ] == ["pytorch_inc_bf16" ]:
1051
1063
best_optimization_display = "Intel BF16"
1052
1064
elif list_optimization_set_top3 [0 ] == []:
0 commit comments