2017-07-25 74 views
0

我一直在研究這段kaggle鏈接Predicting Fraud with TensorFlow 。數據集與欺詐相關。他對第33行進行了評論,但是當我嘗試重寫有關保存/檢查點的代碼時,它總是給出錯誤。DataLossError:無法在TensorFlow中打開表格文件錯誤

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後出現此錯誤。

請問您能幫我嗎?提前致謝。

回答

0

空文件不是有效的tensorflow檢查點文件。嘗試先通過訓練模型來保存檢查點。