Package tensorflow.serving
Class PredictionServiceGrpc.PredictionServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceFutureStub>
io.grpc.stub.AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
tensorflow.serving.PredictionServiceGrpc.PredictionServiceFutureStub
- Enclosing class:
PredictionServiceGrpc
public static final class PredictionServiceGrpc.PredictionServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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) com.google.common.util.concurrent.ListenableFuture<Classification.ClassificationResponse> Classify.com.google.common.util.concurrent.ListenableFuture<GetModelMetadata.GetModelMetadataResponse> GetModelMetadata - provides access to metadata for loaded models.com.google.common.util.concurrent.ListenableFuture<Inference.MultiInferenceResponse> MultiInference API for multi-headed models.com.google.common.util.concurrent.ListenableFuture<Predict.PredictResponse> predict(Predict.PredictRequest request) Predict -- provides access to loaded TensorFlow model.com.google.common.util.concurrent.ListenableFuture<RegressionOuterClass.RegressionResponse> Regress.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.PredictionServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceFutureStub>
-
classify
public com.google.common.util.concurrent.ListenableFuture<Classification.ClassificationResponse> classify(Classification.ClassificationRequest request) Classify.
-
regress
public com.google.common.util.concurrent.ListenableFuture<RegressionOuterClass.RegressionResponse> regress(RegressionOuterClass.RegressionRequest request) Regress.
-
predict
public com.google.common.util.concurrent.ListenableFuture<Predict.PredictResponse> predict(Predict.PredictRequest request) Predict -- provides access to loaded TensorFlow model.
-
multiInference
public com.google.common.util.concurrent.ListenableFuture<Inference.MultiInferenceResponse> multiInference(Inference.MultiInferenceRequest request) MultiInference API for multi-headed models.
-
getModelMetadata
public com.google.common.util.concurrent.ListenableFuture<GetModelMetadata.GetModelMetadataResponse> getModelMetadata(GetModelMetadata.GetModelMetadataRequest request) GetModelMetadata - provides access to metadata for loaded models.
-