This should work for other TF versions 2.x, but mine was done for 2.3.1 specifically.
kmhoffmann's Gist about compiling TF 2.3.0 on Ubuntu 20.04 as that helped me get started with the steps I needed to start compling my own TF packaget started.
There are many reasons to want to compile your own TF, but for me, I've been playing around with ML for a while myself and recently embarked on the TensorFlow journey. While trying to follow along to the [Predict Fuel Efficiency] regression problem, I ran into the following error: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA and after a bit of Googling, I found that the default TF package that you install with pip is built without CPU extensions and so I had to compile my own if I wan