TensorFlow使用中的错误

来源:互联网 发布:e盾网络验证破解4.0 编辑:程序博客网 时间:2024/05/17 08:52

找不到模型文件 / 用于初始化的预训练文件

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
原创粉丝点击