小编Cwa*_*ang的帖子

tensorflow.python.framework.errors_impl.UnknownError:无法重命名:输入/输出错误

当我应用 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>
Run Code Online (Sandbox Code Playgroud)

多次迭代后出现错误,如上所示。但是连续执行的迭代次数是不同的。

  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: …
Run Code Online (Sandbox Code Playgroud)

python tensorflow

8
推荐指数
1
解决办法
659
查看次数

Tensorflow:InvalidArgumentError:预期的图像(JPEG,PNG或GIF),文件为空

我是一个初学者。当我学习了tensorflow的程序员指南时,我试图定义一个用于“估计器”的dataset_input_fn函数。我遇到了一个奇怪的错误,它表明:

INFO:tensorflow:使用默认配置。

INFO:tensorflow:使用配置:{'_model_dir':'/ model','_tf_random_seed':无,'_save_summary_steps':100,'_save_checkpoints_steps':无,'_save_checkpoints_secs':600,'_session_config':无,'_keep :5,5,'_keep_checkpoint_every_n_hours':10000,'_log_step_count_steps':100,'_service':无,'_cluster_spec':,'_task_type':'worker','_task_id':0,'_global_id_in_cluster':0,'_master': '','_evaluation_master':'','_is_chief':True,'_num_ps_replicas':0,'_num_worker_replicas':1}

INFO:tensorflow:调用model_fn。

INFO:tensorflow:完成调用model_fn。

INFO:tensorflow:创建CheckpointSaverHook。

INFO:tensorflow:Graph已完成。

2018-03-12 10:22:14.699465:IC:\ tf_jenkins \ workspace \ rel-win \ M \ windows \ PY \ 36 \ tensorflow \ core \ platform \ cpu_feature_guard.cc:140]您的CPU支持此TensorFlow二进制文件的指令未编译使用:AVX2

INFO:tensorflow:正在运行local_init_op。

INFO:tensorflow:已运行local_init_op。

2018-03-12 10:22:15.913858:WC:\ tf_jenkins \ workspace \ rel-win \ M \ windows \ PY \ 36 \ tensorflow \ core \ framework \ op_kernel.cc:1202] OP_REQUIRES在iterator_ops.cc:870失败:无效的参数:预期的图像(JPEG,PNG或GIF),文件为空[[节点:DecodeJpeg = DecodeJpegacableable_fraction = 1,channels = 0,dct_method =“”,fancy_upscaling = true,ratio = 1,try_recover_truncated = false]

追溯(最近一次通话):文件“ F:\ Anaconda3 \ lib \ site-packages \ …

python python-3.x tensorflow

5
推荐指数
1
解决办法
2784
查看次数

标签 统计

python ×2

tensorflow ×2

python-3.x ×1