tensorflow加载ckpt出错

Issue链接

问题:

tensorflow加载ckpt出错

此处原因:

该ckpt文件对应的tensorflow版本过老, 其中的部分内置变量名发生了改变.

提示:

Key lstm_o/bidirectional_rnn/bw/lstm_cell/biases not found in checkpoint

报错:

使用github官方tensorflow给出的checkpoint_convert.py, 将ckpt版本提升即可:

python checkpoint_convert.py '/path/to/checkpoint/model.ckpt' '/path/to/new_checkpoint/model.ckpt'

猜你喜欢

转载自www.cnblogs.com/ZhengPeng7/p/8946426.html
今日推荐