将tensorflow模型转换为pb tensorflow [英] convert tensorflow model to pb tensorflow

查看:79
本文介绍了将tensorflow模型转换为pb tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个预先训练的模型,需要将其转换为pb.我的文件夹中有以下文件:

I have a pretrained model that I need to convert to pb. I have following file in the folder:

bert_config.json

bert_config.json

model.ckpt-1000data

model.ckpt-1000data

model.ckpt-10000.index

model.ckpt-10000.index

model.ckpt-1000.meta

model.ckpt-1000.meta

vocab.txt

vocab.txt

如何将其转换为pb格式?谢谢

How can I convert this to pb format? Thanks

推荐答案

您可以冻结模型:

这篇关于将tensorflow模型转换为pb tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆