如果在使用 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