07 2020 档案

摘要:redis速度快的原因: 内存操作; 主线程通过变量获取IO多线程状态,变量不加锁,类似二维数组,每个线程操作自己的数组; 减少线程切换操作(6.x后采用多线程),IO多线程完成后采用空转而不是休眠,减少线程切换操作; IO多路复用(可理解为MapReduce)。 IO多线程优化:如果write线程 阅读全文
posted @ 2020-07-09 20:24 致林 阅读(143) 评论(0) 推荐(0) 编辑
摘要:tfserving模型部署见:https://www.cnblogs.com/bincoding/p/13266685.html demo代码:https://github.com/haibincoder/tf_tools 对应restful入参: { "inputs": { "input": [[ 阅读全文
posted @ 2020-07-09 17:30 致林 阅读(3119) 评论(6) 推荐(0) 编辑
摘要:问题背景:python通过grpc调用tfserving报错, 提示:AttributeError: module 'tensorflow_serving.apis.prediction_service_pb2' has no attribute 'beta_create_PredictionSer 阅读全文
posted @ 2020-07-09 11:29 致林 阅读(1040) 评论(0) 推荐(0) 编辑
摘要:官网:https://tensorflow.google.cn/tfx/guide/serving 步骤1:保存pb模型 # 为模型每一个参数添加name # ner demo: https://github.com/buppt/ChineseNER self.input_x = tf.placeh 阅读全文
posted @ 2020-07-08 14:26 致林 阅读(3255) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示