WARNING:tensorflow:From /home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/tensorflow/python/compat/v2_compat.py:107: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term WARNING:root:To get the best performance, it is recommended to adjust the number of threads by setting the environment variables OMP_NUM_THREADS, TF_INTRA_OP_PARALLELISM_THREADS, and TF_INTER_OP_PARALLELISM_THREADS. See https://deepmd.rtfd.io/parallelism/ for more information.
时间: 2024-02-04 07:04:11 浏览: 183
这不是一个问题,而是一个警告信息。在使用 TensorFlow 运行 DeepMD 模型时,建议设置环境变量 OMP_NUM_THREADS、TF_INTRA_OP_PARALLELISM_THREADS 和 TF_INTER_OP_PARALLELISM_THREADS,以获得更好的性能。您可以访问 https://deepmd.rtfd.io/parallelism/ 获取更多信息。
相关问题
Traceback (most recent call last): File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/env.py", line 373, in get_module module = tf.load_op_library(str(module_file)) File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/tensorflow/python/framework/load_library.py", line 54, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/op/libdeepmd_op.so: undefined symbol: _ZN6deepmd33prod_env_mat_a_nvnmd_quantize_cpuIdEEvPT_S2_S2_PiPKS1_PKiRKNS_10InputNlistEiS5_S5_iiffSt6vectorIiSaIiEE The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/chb/anaconda3/envs/deepmd2/bin/dp", line 7, in <module> from deepmd.entrypoints.main import main File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/__init__.py", line 10, in <module> import deepmd.utils.network as network File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/utils/__init__.py", line 2, in <module> from .data import ( File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/utils/data.py", line 11, in <module> from deepmd.env import ( File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/env.py", line 459, in <module> op_module = get_module("deepmd_op") File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/env.py", line 430, in get_module raise RuntimeError(error_message) from e RuntimeError: This deepmd-kit package is inconsitent with TensorFlow Runtime, thus an error is raised when loading deepmd_op. You need to rebuild deepmd-kit against this TensorFlow runtime. WARNING: devtoolset on RHEL6 and RHEL7 does not support _GLIBCXX_USE_CXX11_ABI=1. See https://bugzilla.redhat.com/show_bug.cgi?id=1546704
这是一个运行时错误,提示您的 deepmd-kit 包与 TensorFlow 运行时不一致,导致加载 deepmd_op 时发生错误。建议重新构建 deepmd-kit,使其与当前 TensorFlow 运行时一致。另外,警告信息提示您在 RHEL6 和 RHEL7 上使用 devtoolset 时可能会出现问题,具体信息可以参考 https://bugzilla.redhat.com/show_bug.cgi?id=1546704。
Traceback (most recent call last): File "/home/chb/anaconda3/envs/deepmd2/bin/dp", line 7, in <module> from deepmd.entrypoints.main import main File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/__init__.py", line 10, in <module> import deepmd.utils.network as network File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/utils/__init__.py", line 2, in <module> from .data import ( File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/utils/data.py", line 11, in <module> from deepmd.env import ( File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/env.py", line 459, in <module> op_module = get_module("deepmd_op") File "/home/chb/anaconda3/envs/deepmd2/lib/python3.10/site-packages/deepmd/env.py", line 430, in get_module raise RuntimeError(error_message) from e RuntimeError: This deepmd-kit package is inconsitent with TensorFlow Runtime, thus an error is raised when loading deepmd_op. You need to rebuild deepmd-kit against this TensorFlow runtime. WARNING: devtoolset on RHEL6 and RHEL7 does not support _GLIBCXX_USE_CXX11_ABI=1. See https://bugzilla.redhat.com/show_bug.cgi?id=1546704
这是一个报错信息,看起来是在使用 deepmd-kit 进行深度学习计算时出现了问题。根据错误信息,可能是因为 deepmd-kit 包与 TensorFlow 运行时不一致导致的。建议重新构建 deepmd-kit 以适应当前的 TensorFlow 运行时。此外,如果你的环境是 RHEL6 或 RHEL7,则需要注意 devtoolset 不支持 _GLIBCXX_USE_CXX11_ABI=1,可以查看 https://bugzilla.redhat.com/show_bug.cgi?id=1546704 了解更多信息。
阅读全文