You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

inference_pb2_grpc.py 2.4 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  2. """Client and server classes corresponding to protobuf-defined services."""
  3. import grpc
  4. from proto import inference_pb2 as inference__pb2
  5. class InferenceServiceStub(object):
  6. """Missing associated documentation comment in .proto file."""
  7. def __init__(self, channel):
  8. """Constructor.
  9. Args:
  10. channel: A grpc.Channel.
  11. """
  12. self.inference = channel.unary_unary(
  13. '/InferenceService/inference',
  14. request_serializer=inference__pb2.DataRequest.SerializeToString,
  15. response_deserializer=inference__pb2.DataResponse.FromString,
  16. )
  17. class InferenceServiceServicer(object):
  18. """Missing associated documentation comment in .proto file."""
  19. def inference(self, request, context):
  20. """Missing associated documentation comment in .proto file."""
  21. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  22. context.set_details('Method not implemented!')
  23. raise NotImplementedError('Method not implemented!')
  24. def add_InferenceServiceServicer_to_server(servicer, server):
  25. rpc_method_handlers = {
  26. 'inference': grpc.unary_unary_rpc_method_handler(
  27. servicer.inference,
  28. request_deserializer=inference__pb2.DataRequest.FromString,
  29. response_serializer=inference__pb2.DataResponse.SerializeToString,
  30. ),
  31. }
  32. generic_handler = grpc.method_handlers_generic_handler(
  33. 'InferenceService', rpc_method_handlers)
  34. server.add_generic_rpc_handlers((generic_handler,))
  35. # This class is part of an EXPERIMENTAL API.
  36. class InferenceService(object):
  37. """Missing associated documentation comment in .proto file."""
  38. @staticmethod
  39. def inference(request,
  40. target,
  41. options=(),
  42. channel_credentials=None,
  43. call_credentials=None,
  44. insecure=False,
  45. compression=None,
  46. wait_for_ready=None,
  47. timeout=None,
  48. metadata=None):
  49. return grpc.experimental.unary_unary(request, target, '/InferenceService/inference',
  50. inference__pb2.DataRequest.SerializeToString,
  51. inference__pb2.DataResponse.FromString,
  52. options, channel_credentials,
  53. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能