0

我已经研究了一段时间这个 kaggle 链接Predicting Fraud with TensorFlow 。与欺诈有关的数据集。他在第 33 行发表了评论,但是当我尝试重写有关保存/检查点的代码时,它总是会出错。

DataLossError: Unable to open table file C:\Users\Mert\best_model.ckpt: Data loss: file is too short to be an sstable: perhaps your file is in a different file format and you need to use a different restore operator?
 [[Node: save_5/RestoreV2_51 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save_5/Const_0_0, save_5/RestoreV2_51/tensor_names, save_5/RestoreV2_51/shape_and_slices)]]

起初我创建了名为 best_model 的空文件正确位置。在我将空的 best_model.txt 文件转换为 best_model.ckpt 后,我​​出现了这个错误。

请问你能帮帮我吗 ?提前致谢。

4

1 回答 1

1

空文件不是有效的 tensorflow 检查点文件。尝试通过首先训练模型来保存检查点。

于 2017-07-26T20:45:45.780 回答