When using tensorflow, I get this warning
import tensorflow
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`.
I tried to change the environmental variable to 0 by set TF_ENABLE_ONEDNN_OPTS=0
. But still the issue persists.
import os
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
import keras
It should work then without issues, at least for me it worked!
Question 1:
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
Solutions:
1.
import os
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
import tensorflow as tf
Here,
TF_ENABLE_ONEDNN_OPTS=0
should be above import tensorflow as tf
as shown above.
Question 2:
To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Solutions:
1.
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
Here,
TF_CPP_MIN_LOG_LEVEL=2
should be above import tensorflow as tf
as shown above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With