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