decision-forests
decision-forests copied to clipboard
WARNING:root:Failure to load the inference.so custom c++ tensorflow ops
Hi,
I have tensorflow 2.15.0 and tensorflow_decision_forests 1.8.1 and according to the website, I know that these are compatible, but for some reason when I try import tensorflow_decision_forests as tfdf I keep getting the following error:
import tensorflow_decision_forests as tfdf
WARNING:root:Failure to load the inference.so custom c++ tensorflow ops. This error is likely caused the version of TensorFlow and TensorFlow Decision Forests are not compatible. Full error:/global/scratch/users/tmatsika/bf_python/lib/python3.11/site-packages/tensorflow_decision_forests/tensorflow/ops/inference/inference.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "
I have looked at the other issues and I didn't find a solution that worked for me. I'm using a system with linux arm64 architecture.
I also have the same problem, did you figure it out?
No, I'm hoping that the developers will know how to fix the issue. I think the issue is that TensorFlow Decision Forests doesn't work on linux arm64 architecture, but it does work on Mac arm so I think it's something the developers may need to update so that it works on linux arm64.
I find out that there is an extension called tensorflow in vscode, do you know if it also contains tensorflow decision forest?
Hi, while I believe that it is possible to compile TF-DF on ARM64 Linux, it's not something we've looked into in more detail. I might have a closer look, but absolutely no promises, and I don't think we have the bandwidth to officially support another architecture at this time for TF-DF.
I find out that there is an extension called tensorflow in vscode, do you know if it also contains tensorflow decision forest?
Very likely not.
I still have this problem on 1.9
I have this exact problem but on Windows, have you found a solution to this yet?
I also encountered the same problem, on windows, is there a suitable solution now?
I also encountered the same problem, it turns out to be a compatibility issue. If you install tensorflow
using conda
and tensorflowjs
using pip
, this issue still happens even when you have a compatible version.
My workaround is uninstall tensorflow using conda remove tensorflow
and reinstalling it using pip install tensorflow==2.15.0 tensorflowjs
Edit: I'm running the command in Ubuntu 22 WSL 2 and miniforge
env
I'm starting to face this issue using tfjs on arm64 ubuntu. inference.so for tfdf couldn't be found. This should be looked into further
@TheRealCasmat, @rstz Same issue here on Windows 11.
Same issue on Windows 11.