简体   繁体   中英

Tensorflow error could not load dynamic library on Windows

2020-08-11 16:57:25.492855: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-08-11 16:57:25.503890: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

I get this error each time I run a program on Python with Tensorflow. I just want to know how to exclude this message. I've tried some things but it remains the same.

If your goal is simply to silence this warning, put this as the first lines of your code:

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'

import tensorflow as tf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM