发布时间:2017-10-27 16:25:40
导出导入graph模块graph = tf.Graph()with tf.Session(graph=graph) as sess: sess.run(tf.global_variables_initializer()) restore_saver.restore(sess, ckpt) inputs = {input_key: tf.saved_model.utils.build_tensor_info(input_image)}&.........【阅读全文】
发布时间:2017-10-27 15:12:39
#各种定义FLAGS = tf.flags.FLAGStf.flags.DEFINE_string('model', 'model ', 'model name')#def DEFINE_string(flag_name, default_value, docstring):#使用print(FLAGS.model)......【阅读全文】
发布时间:2017-10-23 16:34:44
apt-get install python-virtualenvvirtualenv --system-site-packages ~/tensorflow进入环境source ~/tensorflow/bin/activate退出环境deactivate......【阅读全文】
发布时间:2017-10-20 16:57:15
apt-get install bazel python2.7 grpc等必要工具下载源码git clone --recurse-submodules https://github.com/tensorflow/servingcd serving/tensorflow./configure 按需配置bazel build -c opt编译结果:生成wheel 安装bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tenso.........【阅读全文】