tensorflow.python.framework.errors_impl.UnknownError:无法重命名:输入/输出错误 [英] tensorflow.python.framework.errors_impl.UnknownError: Failed to rename: Input/output error

查看:111
本文介绍了tensorflow.python.framework.errors_impl.UnknownError:无法重命名:输入/输出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我应用 tensorflow Eager 模式来训练分类器时,我遇到了以下错误.

When I apply tensorflow eager mode to train a classifier, I met the following error.

Steps 151, Train loss is 0.00039766659028828144, learning_rate is 0.009999999776482582
Traceback (most recent call last):
  File "E:/Tensorflow_Experiments/train_alexnet.py", line 1354, in <module>

多次迭代后出现错误,如上图.但是对于连续执行,迭代次数是不同的.

The error occurs after several iterations, as shown above. But the iteration number is different for successional executions.

  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\contrib\eager\python\saver.py", line 156, in save
    None, file_prefix, write_meta_graph=False, global_step=global_step)
  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\python\training\saver.py", line 1451, in save
    save_relative_paths=self._save_relative_paths)
  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\python\training\checkpoint_management.py", line 237, in update_checkpoint_state_internal
    text_format.MessageToString(ckpt))
  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 436, in atomic_write_string_to_file
    rename(temp_pathname, filename, overwrite)
  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 415, in rename
    compat.as_bytes(oldname), compat.as_bytes(newname), overwrite, status)
  File "C:\Software\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.UnknownError: Failed to rename: ./hundred_models\model1\checkpoint.tmpc4b15b8c1e2d48b394f810909a0838b6 to: ./hundred_models\model1\checkpoint : \udcbeܾ\udcf8\udcb7\udcc3\udcceʡ\udca3
; Input/output error

推荐答案

这个答案来晚了,但是 这里 是为我解决的问题.

This answer is way to late, but here is what fixed it for me.

检查您是否有类似命名的文件夹,或者在我的代码中是否有一个 csv 记录器干扰了检查点的创建.

Check whether you have a similarly named folder or in my code a csv logger interfered with the creation of the checkpoint.

这篇关于tensorflow.python.framework.errors_impl.UnknownError:无法重命名:输入/输出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆