using ROCm/tensorkflow in a docker image, I try to run the script run_glue.py, get the error below
I suspect a tf version problem, I am using
root@mi100:/root/models/official/nlp/finetuning/glue# python3 -c 'import tensorflow as tf; print(tf.version)'
2.6.0
I made sure tensorflow_text is installed
Describe the current behavior
root@mi100:/root/models/official/nlp/finetuning/glue# python3 run_glue.py
WARNING:absl:Encountered error when importing tensorflow_text: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb
Traceback (most recent call last):
File "run_glue.py", line 30, in
from official.common import registry_imports # pylint: disable=unused-import
File "/root/models/official/common/registry_imports.py", line 18, in
from official.nlp.configs import experiment_configs
File "/root/models/official/nlp/configs/experiment_configs.py", line 19, in
from official.nlp.configs import wmt_transformer_experiments
File "/root/models/official/nlp/configs/wmt_transformer_experiments.py", line 22, in
from official.nlp.data import wmt_dataloader
File "/root/models/official/nlp/data/wmt_dataloader.py", line 38, in
import tensorflow_text as tftxt
File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/init.py", line 21, in
from tensorflow_text.python import metrics
File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/init.py", line 20, in
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
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
Hi,
using ROCm/tensorkflow in a docker image, I try to run the script run_glue.py, get the error below
I suspect a tf version problem, I am using
root@mi100:/root/models/official/nlp/finetuning/glue# python3 -c 'import tensorflow as tf; print(tf.version)' 2.6.0
I made sure tensorflow_text is installed
Describe the current behavior
root@mi100:/root/models/official/nlp/finetuning/glue# python3 run_glue.py WARNING:absl:Encountered error when importing tensorflow_text: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringERKNS_15OpKernelContextEb Traceback (most recent call last): File "run_glue.py", line 30, in
from official.common import registry_imports # pylint: disable=unused-import
File "/root/models/official/common/registry_imports.py", line 18, in
from official.nlp.configs import experiment_configs
File "/root/models/official/nlp/configs/experiment_configs.py", line 19, in
from official.nlp.configs import wmt_transformer_experiments
File "/root/models/official/nlp/configs/wmt_transformer_experiments.py", line 22, in
from official.nlp.data import wmt_dataloader
File "/root/models/official/nlp/data/wmt_dataloader.py", line 38, in
import tensorflow_text as tftxt
File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/init.py", line 21, in
from tensorflow_text.python import metrics
File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/init.py", line 20, in
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
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