Package tensorflow.serving
Class PredictionServiceGrpc.PredictionServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceStub>
io.grpc.stub.AbstractAsyncStub<PredictionServiceGrpc.PredictionServiceStub>
tensorflow.serving.PredictionServiceGrpc.PredictionServiceStub
- Enclosing class:
PredictionServiceGrpc
public static final class PredictionServiceGrpc.PredictionServiceStub
extends io.grpc.stub.AbstractAsyncStub<PredictionServiceGrpc.PredictionServiceStub>
A stub to allow clients to do asynchronous rpc calls to service PredictionService.
open source marker; do not remove PredictionService provides access to machine-learned models loaded by model_servers.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidclassify(Classification.ClassificationRequest request, io.grpc.stub.StreamObserver<Classification.ClassificationResponse> responseObserver) Classify.voidgetModelMetadata(GetModelMetadata.GetModelMetadataRequest request, io.grpc.stub.StreamObserver<GetModelMetadata.GetModelMetadataResponse> responseObserver) GetModelMetadata - provides access to metadata for loaded models.voidmultiInference(Inference.MultiInferenceRequest request, io.grpc.stub.StreamObserver<Inference.MultiInferenceResponse> responseObserver) MultiInference API for multi-headed models.voidpredict(Predict.PredictRequest request, io.grpc.stub.StreamObserver<Predict.PredictResponse> responseObserver) Predict -- provides access to loaded TensorFlow model.voidregress(RegressionOuterClass.RegressionRequest request, io.grpc.stub.StreamObserver<RegressionOuterClass.RegressionResponse> responseObserver) Regress.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PredictionServiceGrpc.PredictionServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceStub>
-
classify
public void classify(Classification.ClassificationRequest request, io.grpc.stub.StreamObserver<Classification.ClassificationResponse> responseObserver) Classify.
-
regress
public void regress(RegressionOuterClass.RegressionRequest request, io.grpc.stub.StreamObserver<RegressionOuterClass.RegressionResponse> responseObserver) Regress.
-
predict
public void predict(Predict.PredictRequest request, io.grpc.stub.StreamObserver<Predict.PredictResponse> responseObserver) Predict -- provides access to loaded TensorFlow model.
-
multiInference
public void multiInference(Inference.MultiInferenceRequest request, io.grpc.stub.StreamObserver<Inference.MultiInferenceResponse> responseObserver) MultiInference API for multi-headed models.
-
getModelMetadata
public void getModelMetadata(GetModelMetadata.GetModelMetadataRequest request, io.grpc.stub.StreamObserver<GetModelMetadata.GetModelMetadataResponse> responseObserver) GetModelMetadata - provides access to metadata for loaded models.
-