我已经研究了一段时间这个 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 后,我出现了这个错误。
请问你能帮帮我吗 ?提前致谢。