skl_pb2.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:grpc-kubernetes-skl-tutorial 作者: pprett 项目源码 文件源码
def beta_create_PredictionService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
  """The Beta API is deprecated for 0.15.0 and later.

  It is recommended to use the GA API (classes and functions in this
  file not marked beta) for all further purposes. This function was
  generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0"""
  request_deserializers = {
    ('skl.PredictionService', 'Predict'): predict__pb2.PredictionRequest.FromString,
  }
  response_serializers = {
    ('skl.PredictionService', 'Predict'): predict__pb2.PredictionResponse.SerializeToString,
  }
  method_implementations = {
    ('skl.PredictionService', 'Predict'): face_utilities.unary_unary_inline(servicer.Predict),
  }
  server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
  return beta_implementations.server(method_implementations, options=server_options)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号