예제 #1
0
def get_management_stub():
    channel = grpc.insecure_channel(
        'localhost:8081',
        options=(('grpc.ssl_target_name_override',
                  'torchserve-grpc.kserve-test.example.com'), ))
    stub = management_pb2_grpc.ManagementAPIsServiceStub(channel)
    return stub
예제 #2
0
def get_management_stub():
    channel = grpc.insecure_channel('localhost:7071')
    stub = management_pb2_grpc.ManagementAPIsServiceStub(channel)
    return stub