Skip to content
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

tensorflow_text issue #1584

Open
neqkir opened this issue Feb 22, 2022 · 1 comment
Open

tensorflow_text issue #1584

neqkir opened this issue Feb 22, 2022 · 1 comment

Comments

@neqkir
Copy link

neqkir commented Feb 22, 2022

Tensorflow tensorflow_text is producing the following error

 File "checks.py", line 6, in <module>
    import tensorflow_text as tf_text
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/__init__.py", line 21, in <module>
    from tensorflow_text.python import metrics
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/__init__.py", line 20, in <module>
    from tensorflow_text.python.metrics.text_similarity_metric_ops import *
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/text_similarity_metric_ops.py", line 28, in <module>
    gen_text_similarity_metric_ops = load_library.load_op_library(resource_loader.get_path_to_datafile('_text_similarity_metric_ops.so'))
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/load_library.py", line 58, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb

using

docker pull rocm/tensorflow
alias drun='docker run -it --network=host --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size 16G --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/dockerx:/dockerx'
drun rocm/tensorflow:latest

on a system with AMD GPUs and Rocm

@lucbruni-amd
Copy link

lucbruni-amd commented Feb 11, 2025

Hi @neqkir,

Sorry for lack of response until this point. I just tested with your reproducer and confirmed this is no longer an issue under the latest ROCm (6.3.2) and TF (2.17.0) versions. If you have any questions or if you are still encountering relevant issues on the latest versions, please let me know and I'd be happy to investigate further.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants