2017-07-25 15 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

空のファイルはテンソルフローのチェックポイントファイルではありません。最初にモデルを訓練することでチェックポイントを保存してみてください。

関連する問題