Package tensorflow.serving
Class SessionServiceGrpc.SessionServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
tensorflow.serving.SessionServiceGrpc.SessionServiceStub
- Enclosing class:
- SessionServiceGrpc
public static final class SessionServiceGrpc.SessionServiceStub extends io.grpc.stub.AbstractAsyncStub<SessionServiceGrpc.SessionServiceStub>
SessionService defines a service with which a client can interact to execute Tensorflow model inference. The SessionService::SessionRun method is similar to MasterService::RunStep of Tensorflow, except that all sessions are ready to run, and you request a specific model/session with ModelSpec.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description protected SessionServiceGrpc.SessionServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidsessionRun(SessionServiceOuterClass.SessionRunRequest request, io.grpc.stub.StreamObserver<SessionServiceOuterClass.SessionRunResponse> responseObserver)Runs inference of a given model.
-
Method Details
-
build
protected SessionServiceGrpc.SessionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)- Specified by:
buildin classio.grpc.stub.AbstractStub<SessionServiceGrpc.SessionServiceStub>
-
sessionRun
public void sessionRun(SessionServiceOuterClass.SessionRunRequest request, io.grpc.stub.StreamObserver<SessionServiceOuterClass.SessionRunResponse> responseObserver)Runs inference of a given model.
-