Error in VS Code

2024-03-31 00:52:25.222576: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-03-31 00:52:26.738638: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-03-31 00:52:31.616283: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-03-31 00:52:32.818

Hi @abhinndev04

Welcome to the TensorFlow Forum!

These are just Informational(I) messages, not error to inform you that TensorFlow is using oneDNN library for performance enhancements.

You can put the below code on top of your code before import tensorflow code line to suppress these warning messages.

import os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
1 Like

Thank you for the solution @Renu_Patel.
I was stuck and working on this warning since long.
i was putting os.environ command after the import tensorflow command which was the main issue.

I appreciate.
Thank you so much.

Regards.

1 Like