tensorflow2.0版本
错误和cudnn有关,排除了cuda和cudnn的版本问题,在网上查了一下,应该是GPU被占用,所以无法使用,需要在代码里面添加几行语句,设置GPU的按需分配
添加代码
import tensorflow as tf
physical_devices = tf.config.experimental.list_physical_devices('GPU')
assert len(physical_devices) > 0
tf.config.experiment

最低0.47元/天 解锁文章

902

被折叠的 条评论
为什么被折叠?



