2023-07-21 16:24:28.474138: I tensorflow/core/platform/cpufeatureguard.cc:193] This…
- User
2023-07-21 16:24:28.474138: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F AVX512_VNNI FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-07-21 16:24:28.590531: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable
TF_ENABLE_ONEDNN_OPTS=0. 2023-07-21 16:24:29.083237: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64 2023-07-21 16:24:29.083314: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64 2023-07-21 16:24:29.083318: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. - Assistant
The log message indicates that the TensorFlow binary being used has been optimized to use the oneAPI Deep Neural Network Library (oneDNN) for performance-critical operations. This optimization enables the use of instructions such as AVX2, AVX512F, AVX512_VNNI, and FMA on the CPU.
The message also mentions that oneDNN custom operations are enabled, which may result in slightly different numerical results due to floating-point round-off errors from different computation orders.
Additionally, there are warnings related to the absence of certain dynamic libraries related to Nvidia GPU support, specifically 'libnvinfer.so.7' and 'libnvinfer_plugin.so.7'. These libraries are required for GPU acceleration with TensorRT. The warning suggests ensuring that these libraries are properly installed if you intend to use Nvidia GPU with TensorRT.
- User
用中文说明一下
- Assistant
这段日志消息指示正在使用经过优化的TensorFlow二进制文件,以便在性能关键操作中使用oneAPI深度神经网络库(oneDNN)。这种优化可在CPU上利用AVX2、AVX512F、AVX512_VNNI和FMA等指令。
消息还提到,oneDNN自定义操作已启用,可能会因不同计算顺序而产生轻微不同的数值结果,这是浮点舍入错误所致。
此外,还有与缺少某些与Nvidia GPU支持相关的动态库的警告,具体是'libnvinfer.so.7'和'libnvinfer_plugin.so.7'。这些库是TensorRT与Nvidia GPU加速所必需的。警告建议确保正确安装这些库,如果打算使用Nvidia GPU和TensorRT。
- User
可以通过降低 tensorflow版本解决吗
- Assistant
是的,通过使用较旧版本的TensorFlow,您可以避免这些特定版本的警告和依赖项。根据您的需求,可以降低TensorFlow版本,并确保与您的系统环境兼容。另外,请注意,降低TensorFlow版本可能会导致一些功能和性能上的差异,因此请在降低版本之前仔细考虑您的需求和依赖。
- User
如何安装libnvinfer.so.7
- Assistant
安装
libnvinfer.so.7需要执行以下步骤:1.前往NVIDIA Developer网站上的TensorRT下载页面:https://developer.nvidia.com/tensorrt/downloads 2.选择与您的操作系统和CUDA版本兼容的TensorRT版本,并下载相应的安装包。 3.安装TensorRT,按照下载页面的说明进行操作。 4.安装完成后,
libnvinfer.so.7通常会位于TensorRT安装目录下的lib子目录中。请注意,安装TensorRT和获取
libnvinfer.so.7需要确保您的系统满足所有的依赖项,特别是CUDA和NVIDIA驱动程序,因此请确保您的系统符合TensorRT的要求。安装过程可能因操作系统和CUDA版本而有所不同,因此请按照TensorRT的文档和安装说明进行操作。需要注意的是,如果您不打算使用NVIDIA GPU进行TensorRT加速,或者您的环境不支持NVIDIA GPU,您可能无需安装
libnvinfer.so.7,因为在非GPU加速模式下,TensorFlow不会使用TensorRT库。 - User
TensorFlow哪个版本合适
- Assistant
合适的TensorFlow版本取决于您的需求和系统配置。一般来说,最新版本的TensorFlow通常包含更多的功能和改进,但也可能引入新的问题或改变旧版本中的行为。
如果您希望尽可能兼容各种环境,建议选择最新的稳定版本。您可以通过访问TensorFlow官方GitHub页面(https://github.com/tensorflow/tensorflow/releases)来查找最新版本。
然而,如果您的系统有特定的软件或硬件要求,或者您使用的某些库或工具在特定版本下才能正常工作,那么您可能需要根据这些要求选择一个特定版本的TensorFlow。
在确定合适的TensorFlow版本时,建议参考TensorFlow的官方文档、GitHub页面上的发行说明以及其他用户的反馈和建议,以选择满足您需求的版本。