Skip to content

Commit eb7c54d

Browse files
authored
Update Intel_TensorFlow_AMX_BF16_Inference.py
1 parent 6bd41e8 commit eb7c54d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_AMX_BF16_Inference/Intel_TensorFlow_AMX_BF16_Inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181

8282
# Reload the model as the bf16 model with AVX512 to compare inference time
83-
os.environ["ONEDNN_MAX_CPU_ISA"] = "AVX512_BF16"
83+
os.environ["ONEDNN_MAX_CPU_ISA"] = "AVX512_CORE_BF16"
8484
tf.config.optimizer.set_experimental_options({'auto_mixed_precision_onednn_bfloat16':True})
8585
bf16_model_noAmx = tf.keras.models.load_model('models/my_saved_model_fp32')
8686

@@ -93,7 +93,7 @@
9393

9494

9595
# Reload the model as the bf16 model with AMX to compare inference time
96-
os.environ["ONEDNN_MAX_CPU_ISA"] = "AMX_BF16"
96+
os.environ["ONEDNN_MAX_CPU_ISA"] = "AVX512_CORE_AMX"
9797
tf.config.optimizer.set_experimental_options({'auto_mixed_precision_onednn_bfloat16':True})
9898
bf16_model_withAmx = tf.keras.models.load_model('models/my_saved_model_fp32')
9999

0 commit comments

Comments
 (0)