您的位置:首页 > 大数据 > 人工智能

【tensorflow 使用错误】tensorflow2.2 过程中出现 Error : Failed to get convolution algorithm

2020-07-14 06:23 661 查看

如果在使用 tensorflow 过程中出现 Error : Failed to get convolution algorithm ,这是因为显卡内存被耗尽了。

解决办法:
在代码的开头加入如下两句,动态分配显存

physical_device = tf.config.experimental.list_physical_devices("GPU")
tf.config.experimental.set_memory_growth(physical_device[0], True)

原文链接:

https://blog.csdn.net/u013421629/article/details/104460307?ops_request_misc=&request_id=&biz_id=102&utm_term=%E5%9C%A8tensorflow2.2%E4%B8%AD%20Failed%20to%20get%20&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-104460307
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐