我尝试按照链接https://www.tensorflow.org/install/docker
的方式安装tensorflow和docker我从tensowflow Hub将tensorflow映像下载到docker,然后尝试测试tensorflow python脚本。 然后我收到下面的错误消息。 我认为它与GPU有关,但是我只是下载了tensorflow / tensorflow:last,我不需要GPU版本。 我以为如果使用docker + tensorflow我不会得到任何错误。 有谁能告诉我这是怎么回事。
2020-02-15 08:24:32.759681: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-02-15 08:24:32.759786: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-02-15 08:24:32.759798: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] 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.
答案 0 :(得分:2)
正如https://www.tensorflow.org/install/docker所说,“ nvidia-container-runtime仅适用于Linux”。到目前为止,如果您使用Windows作为主机系统,则无法为docker容器提供GPU。