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

报错:

tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file /home/wpq/data/model.ckpt.data-00000-of-00001:

Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you

need to use a different restore operator?

解决方案:

I have fixed the issue by this:

replace model.ckpt the model.ckpt.data-00000-of-00001

即使用 model.ckpt替换 model.ckpt.data-00000-of-00001,去掉model.ckpt.data-00000-of-00001的后缀即可

你可能感兴趣的:(bert)