gpt4 book ai didi

python - tensorflow.python.framework.errors_impl.UnknownError : Failed to rename: Input/output error

转载 作者:行者123 更新时间:2023-12-04 11:15:25 27 4
gpt4 key购买 nike

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

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>

多次迭代后出现错误,如上所示。但是连续执行的迭代次数是不同的。
  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

最佳答案

这个答案来晚了,但是 here是什么为我修复了它。
检查您是否有一个类似命名的文件夹,或者在我的代码中是否有一个 csv 记录器干扰了检查点的创建。

关于python - tensorflow.python.framework.errors_impl.UnknownError : Failed to rename: Input/output error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54862413/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com