InternalError: Dst tensor is not initialized.

编程入门 行业动态 更新时间:2024-10-06 15:25:36

InternalError: <a href=https://www.elefans.com/category/jswz/34/1710458.html style=Dst tensor is not initialized."/>

InternalError: Dst tensor is not initialized.

2019/7/26 周五 ?

用GPU跑CNN程序时,报错tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized. [[node save_1/RestoreV2 (defined at test.py:219) ]]

分析:出现这个错误一般是GPU内存耗尽

解决如下:

  1. 查看 nvidia-smi,查看GPU运行情况,发现当前使用的“2”已被占用
  2. 改换成未被使用的"3"
os.environ['CUDA_VISIBLE_DEVICES']='3'

更多推荐

InternalError: Dst tensor is not initialized.

本文发布于:2024-02-14 01:41:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1761297.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Dst   InternalError   initialized   tensor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!