Keras或者Tensorflow出现:Optimization loop failed: Cancelled: Operation was cancelled
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow
免费下载资源
·
方案1:
文件开头加入如下代码:
import tensorflow as tf
devices = tf.config.experimental.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(devices[0], True)
方案2:
重新安装CUDA和tensorflow最新版本
更新后环境(win server 2019):
CUDA:11.4.2_471.41
tensorflow:2.6.0
keras:2.6.0
numpy:1.19.5
GitHub 加速计划 / te / tensorflow
184.54 K
74.12 K
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:1 个月前 )
a49e66f2
PiperOrigin-RevId: 663726708
1 个月前
91dac11a
This test overrides disabled_backends, dropping the default
value in the process.
PiperOrigin-RevId: 663711155
1 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)