Tensorflow SSE Compatibility

Hello everyone,

I am trying to build my docker image which is using tensorflow 2.10 but when i’m trying to do it i have the following error : “The TensorFlow library was compiled to use SSE4.1 instructions, but these aren’t available on your machine.”
My VM’s cpu does not support SSE 4.1 flag, only SSE,SSE2.
What version of tensorflow should i use in order to build for SSE2?
I cannot find the tensorflow.bzl file so to delete the line for x86 build target because i did not built from source(i did it with pip install)

Thank you in advance

1 Like

Hello @John_Kan,

Thank you for using TensorFlow, The error you encountered indicates that TF 2.10 binary you are trying to use was compiled with optimizations that require SSE4.1 set, which your VM is not supported, TF dropped support for older CPU without SSE4.1 from TF 2.XX.
One way to go around this is you can directly get the image of TF2.10 built and ready to pull from docker hub here.
Thank you.