摘要: redis速度快的原因: 内存操作; 主线程通过变量获取IO多线程状态,变量不加锁,类似二维数组,每个线程操作自己的数组; 减少线程切换操作(6.x后采用多线程),IO多线程完成后采用空转而不是休眠,减少线程切换操作; IO多路复用(可理解为MapReduce)。 IO多线程优化:如果write线程 阅读全文
posted @ 2020-07-09 20:24 致林 阅读(142) 评论(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 致林 阅读(3056) 评论(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 致林 阅读(1024) 评论(0) 推荐(0) 编辑