TF 2.20 C API (libtensorflow.so)

I spent two days trying to build a TF 2.20 library. I understand that from 2.19 no pre-compiled binaries are made, but apparently it is practically impossible to do it manually either.
I used TF 2.20, used bazel 7.4.1 and I have cuda 13.1, I have a long history of what I tried, though I do not think it is very interesting. All sort of problems with absolute and relative paths, C compiler versions, etc.
Is there a clean way to build it? Has anyone did it?

The problem is that my RTX5080 cannot use older cuda-s (I made it running with 12.5, but I have constant and unpredictable errors. The same code in two subsequent runs give different errors, like floating point error, division by zero, etc.

Thanks,

1 Like