说明:1. tensorflow模型文件打包成PB文件
import tensorflow as tf
from tensorflow.python.tools import freeze_graph
with tf.Graph().as_default():
with tf.device("/cpu:0"):
config = tf.ConfigProto(allow_soft_placement=True)
with tf.Session(config=config).as_ <weixin_38735887> 上传 | 大小:29kb
说明:/home/ubuntu/.virtualenvs/da/lib/python3.6/site-packages/matplotlib/font_manager.py:1238: UserWarning: findfont: Font family [‘sans-serif’] not found. Falling back to DejaVu Sans.
(prop.get_family(), self.defaultFamily[fontext]))
<weixin_38560768> 上传 | 大小:63kb