1. 程式人生 > >TensorFlow使用中的錯誤

TensorFlow使用中的錯誤

找不到模型檔案 / 用於初始化的預訓練檔案

perhaps your file is in a different file format and you need to use a different restore operator?

解決方法類似這裡, 即設定的目錄不是checkpoint檔案所在目錄, 還需要把Checkpoint的字首(prefix)作為目錄名的一部分.

例如名為myModel.ckpt.data-00000-of-00001和其相關的index等checkpoint檔案一起放在~/model/資料夾下, 則傳入的TensorFlow的引數需要設定為~/model/myModel.ckpt

, 而不是/model/

AttributeError: ‘module’ object has no attribute ‘computation’

pd.computation.expressions.set_use_numexpr(False)

解決辦法

很可能是當前包為0.13.0,需要更新到0.15.0+,更新dask包到最新,

pip install dask