Undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs

Hi I am getting following error while training the bot NotFoundError: /home/kiran/.conda/envs/rasa/lib/python3.7/site-packages/tensorflow_addons/custom_ops/activations/_activation_ops.so: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs.

Can you guys help me with this?

I Observed that this error is only appearing, if I user EmbeddingIntentClassifier and/or ResponseSelector.

I think it has something to do with Tensorflow version, because Rasa recommends below Tensorflow 2.2.0 but I have 2.2.0. I didn’t check by downgrading the Tensorflow, because it it really a pain to manage tensorflow and CUDA compatibility. I tried using docker with rasa image, and it worked.

Greeting all. I hope my answer will help you or someone.

Try installing from source TensorFlow Addons tensorflow.org/addons/overview

Version 0.7.1: github.com/tensorflow/addons/archive/v0.7.1.tar.gz

You can try replace /home/kiran/.conda/envs/rasa/lib/python3.7/site-packages/tensorflow_addons/custom_ops/ from tensorflow addons installed from source.

If you faced with Illegal instruction (core dumped)

Install from Source TensorFlow without support AVX. tensorflow.org/install/source

./configure

Please specify optimization flags to use during compilation when bazel option “–config=opt” is specified [Default is -march=native -Wno-sign-compare]: -march=native -mno-avx