Problems using TF addons built from source

164 views
Skip to first unread message

Phil Sun

unread,
Oct 8, 2019, 12:00:22 PM10/8/19
to SIG Addons
After I build TF addons from source, I get the error tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/google/home/sunphil/addons/tensorflow_addons/custom_ops/activations/_activation_ops.so: cannot open shared object file: No such file or directory when importing tensorflow_addons in Python. This happens with both master and v0.6.0 (both built without GPU support), but the tensorflow-addons pip package imports fine. I'm following the build instructions from here: https://github.com/tensorflow/addons/tree/v0.6.0#installing-from-source

Any help would be appreciated!

Sean Morgan

unread,
Oct 8, 2019, 2:01:39 PM10/8/19
to SIG Addons, Phil Sun
Hi Phil,

Could you try moving to a different directory before launching python? That error generally means that python is trying to load a library from the source code directory that you're currently in (though no C++ files exist). 

Best,
Sean

From: 'Phil Sun' via SIG Addons <add...@tensorflow.org>
Sent: Tuesday, October 8, 2019 12:00 PM
To: SIG Addons <add...@tensorflow.org>
Subject: Problems using TF addons built from source
 
After I build TF addons from source, I get the error tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/google/home/sunphil/addons/tensorflow_addons/custom_ops/activations/_activation_ops.so: cannot open shared object file: No such file or directory when importing tensorflow_addons in Python. This happens with both master and v0.6.0 (both built without GPU support), but the tensorflow-addons pip package imports fine. I'm following the build instructions from here: https://github.com/tensorflow/addons/tree/v0.6.0#installing-from-source

Any help would be appreciated!

--
You received this message because you are subscribed to the Google Groups "SIG Addons" group.
To unsubscribe from this group and stop receiving emails from it, send an email to addons+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/addons/e6438fbd-7a5b-4847-abb0-5e6ca45cc6be%40tensorflow.org.

Phil Sun

unread,
Oct 8, 2019, 2:53:03 PM10/8/19
to SIG Addons, sun...@google.com
That worked! I now get the error
tensorflow.python.framework.errors_impl.InvalidArgumentError: Invalid name: Addons>Gelu (Did you use CamelCase?); in OpDef: name: "Addons>Gelu" input_arg { name: "features" type_attr: "T" } output_arg { name: "activations" type_attr: "T" } attr { name: "T" type: "type" allowed_values { list { type: DT_HALF type: DT_FLOAT type: DT_DOUBLE } } } attr { name: "approximate" type: "bool" default_value { b: true } }

On Tuesday, October 8, 2019 at 2:01:39 PM UTC-4, Sean Morgan wrote:
Hi Phil,

Could you try moving to a different directory before launching python? That error generally means that python is trying to load a library from the source code directory that you're currently in (though no C++ files exist). 

Best,
Sean

From: 'Phil Sun' via SIG Addons <add...@tensorflow.org>
Sent: Tuesday, October 8, 2019 12:00 PM
To: SIG Addons <add...@tensorflow.org>
Subject: Problems using TF addons built from source
 
After I build TF addons from source, I get the error tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/google/home/sunphil/addons/tensorflow_addons/custom_ops/activations/_activation_ops.so: cannot open shared object file: No such file or directory when importing tensorflow_addons in Python. This happens with both master and v0.6.0 (both built without GPU support), but the tensorflow-addons pip package imports fine. I'm following the build instructions from here: https://github.com/tensorflow/addons/tree/v0.6.0#installing-from-source

Any help would be appreciated!

--
You received this message because you are subscribed to the Google Groups "SIG Addons" group.
To unsubscribe from this group and stop receiving emails from it, send an email to add...@tensorflow.org.

Sean Morgan

unread,
Oct 8, 2019, 4:58:31 PM10/8/19
to Phil Sun, add...@tensorflow.org
Hi Phil,

This error occurs because Op namespacing was added very recently in TF2.

Which version of tensorflow are you using add-ons against? It'll require the full tensorflow==2.0.0 release

Best,
Sean

From: 'Phil Sun' via SIG Addons <add...@tensorflow.org>
Sent: Tuesday, October 8, 2019 2:53 PM
To: SIG Addons
Cc: sun...@google.com
Subject: Re: Problems using TF addons built from source

To unsubscribe from this group and stop receiving emails from it, send an email to addons+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/addons/e6562dae-e4fd-4213-993a-c369e9df4976%40tensorflow.org.

Phil Sun

unread,
Oct 9, 2019, 4:43:30 PM10/9/19
to SIG Addons, sun...@google.com
I see, the configure.sh from TensorFlow addons for some reason installed a release candidate version. Everything is working now.

颜发才(Yan Facai)

unread,
Oct 10, 2019, 5:58:44 AM10/10/19
to Phil Sun, SIG Addons
Hi, Phil. I have opened https://github.com/tensorflow/addons/pull/587 to upgrade outdated tf, and hope the PR could mitigate the situation.
Thanks for your feedback!

To unsubscribe from this group and stop receiving emails from it, send an email to addons+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/addons/06c5cac0-3413-4e0c-8452-5e784d0be084%40tensorflow.org.
Reply all
Reply to author
Forward
0 new messages