-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotFoundError: _tfq_simulate_ops.so #180
Comments
Hi, which directions did you follow to install tensorflow and tensorflow-quantum ? I see that your |
Thanks for the reply. The steps includes:
I am not sure why there would be a |
I think I've managed to recreate the issue and get to the bottom of things. When I followed your instructions and then ran
Notably the channel is not pypi, which leads me to believe that conda may have rolled their own version of tensorflow that might not have been compiled with the appropriate flags needed to support tensorflow quantum. These flags are present in our supported pip release of tensorflow 2.1.0. To work around this you can do this:
I tested this on my machine and things worked. I have virtually zero experience with conda, but I'd say the problem of getting tensorflow quantum to work with Does the above fix work on your machine ? |
Hi Micheal, sorry for getting back late. Yes using tensorflow from pip solved the issue. Thanks! |
I implemented all these, but still error occurs. |
I have one issue when import tensorflow_quantum as tfq the error message as below: My platform is pi4B and I have built tensorflow_quamtum source successful |
This looks like an issue with ABI mismatch like the one encountered in #330. If you are sure that you have all the right versions for the latest TFQ (TF 2.3.1 , TFQ 04.0 (or 0.5.0dev), cirq 0.9.1) and have built from source with the correct flags ( As a final note: I will say also that we don't officially test or support TFQ on pi4B so past these sorts of suggestions I don't know if I can offer too much more insight. |
Thanks so much! Yes, I have built from source with (-D_GLIBCXX_USE_CXX11_ABI=0) as below:
bazel build -c opt --cxxopt="-O3" --cxxopt="-mtune=cortex-a72" --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" release:build_pip_package
It seems GCC version issue? or genrule issue? I have set BUILD as below:
genrule(
name = "libtensorflow_framework.so"
outs = [
'libtensorflow_framework.so.2",
],
cmd = """
cp -f "/usr/local/lib/libtensorflow_framework.so.2" "$(@d)/libtensorflow_framework.so.2"
""",
)
I am confused about the libtensorflow_framework.so seeting. any comments?, but it built successed
system configure are:
1). Pi4B with Pi 64 bit OS
2). tensorfllow2.3.1
3). Python3.7.3
4). tf-nightly ==2.5.0
From: MichaelBroughton
Date: 2020-12-05 04:44
To: tensorflow/quantum
CC: timchen007; Comment
Subject: Re: [tensorflow/quantum] NotFoundError: _tfq_simulate_ops.so (#180)
This looks like an issue with ABI mismatch like the one encountered in #330. If you are sure that you have all the right versions for the latest TFQ (TF 2.3.1 , TFQ 04.0 (or 0.5.0dev), cirq 0.9.1) and have built from source with the correct flags (-D_GLIBCXX_USE_CXX11_ABI=0) then it may just come down to a discrepancy between the pi4B and whatever OS it is running.
As a final note: I will say also that we don't officially test or support TFQ on pi4B so past these sorts of suggestions I don't know if I can offer too much more insight.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Correct Cirq version in tutorial.
the same issue i am getting, is there any solution for the same. |
Yes, see any number of the above linked issues, e.g. the one right above your comment solved this issue: #777 |
Upon fresh installation of tensorflow quantum in a conda environment, importing
tensorfloq_quantum
gives:In more detail:
Other information:
$ python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)" unknown 2.1.0
OS: Ubuntu 19.10
Package Versions:
The text was updated successfully, but these errors were encountered: