本文介绍了未定义符号:_ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误:

/usr/bin/python3.6 /home/daya/Deep_Learning/Keras-Tuner/HiddenLayersAndHiddenNeurons.py

2020-12-22 09:42:14.472136: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0

Traceback (most recent call last):
  File "/home/daya/Deep_Learning/Keras-Tuner/HiddenLayersAndHiddenNeurons.py", line 2, in <module>
    from tensorflow import keras
  File "/home/daya/.local/lib/python3.6/site-packages/tensorflow/__init__.py", line 435, in <module>
    _ll.load_library(_main_dir)

  File "/home/daya/.local/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 153, in load_library
    py_tf.TF_LoadLibrary(lib)

tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow/core/kernels/libtfkernel_sobol_op.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb

系统配置

Ubuntu 18.04,Cuda11.1 cudnn8,GTX 1660,TensorFlow-GPU 2.4

推荐答案

如果这是您的问题,并且无法降级TensorFlow,以下是一个解决办法:

全部删除tensorflow/core/kernels/libtfkernel_sobol_op.so。该运算符是经典计算机版本中用于边缘提取的专用OP,对于Tf(训练DNN)的99.99%的用例,您将不需要该运算符。

这篇关于未定义符号:_ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 23:22