Build failure against TF r2.16: third_party/eigen3/unsupported/Eigen/CXX11/Tensor: No such file or directory
plopresti opened this issue · 1 comments
plopresti commented
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 20.04): Alma Linux 9.3
- TensorFlow version and how it was installed (source or binary): r2.16 branch from source
- TensorFlow-Addons version and how it was installed (source or binary): master branch from source
- Python version: 3.11
- Is GPU used? (yes/no): yes
Describe the bug
Build fails with:
In file included from tensorflow_addons/custom_ops/seq2seq/cc/kernels/beam_search_ops.cc:22:
./tensorflow_addons/custom_ops/seq2seq/cc/kernels/beam_search_ops.h:21:10: fatal error: third_party/eigen3/unsupported/Eigen/CXX11/Tensor: No such file or directory
21 | #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A clear and concise description of what the bug is.
Code to reproduce the issue
git clone https://github.com/tensorflow/addons.git
cd addons
git checkout master
python3 ./configure.py
bazel build build_pip_pkg
plopresti commented
I created my own work-around before I saw the pull request from @trevor-m :
tp=/path/to/venv/lib/python3.11/site-packages-tensorflow/include/third_party
mkdir "$tp"/eigen3
ln -s ../../unsupported ../../Eigen "$tp"/eigen3
...and then delete your Bazel cache and rebuild.
Of course the pull request has a much better approach.