Package com.viam.service.mlmodel.v1
Class MLModelServiceGrpc.MLModelServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<MLModelServiceGrpc.MLModelServiceBlockingStub>
com.viam.service.mlmodel.v1.MLModelServiceGrpc.MLModelServiceBlockingStub
- Enclosing class:
- MLModelServiceGrpc
public static final class MLModelServiceGrpc.MLModelServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<MLModelServiceGrpc.MLModelServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service MLModelService.
MLModelService declares the gRPC contract for a service that takes in a map of input arrays/tensors, runs them through an ML inference engine, and outputs a map of array/tensors.
-
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) infer
(Mlmodel.InferRequest request) Infer takes an already ordered input tensor as a map, makes an inference on the model, and returns an output data map.metadata
(Mlmodel.MetadataRequest request) Metadata returns the metadata associated with the ML model.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected MLModelServiceGrpc.MLModelServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<MLModelServiceGrpc.MLModelServiceBlockingStub>
-
infer
Infer takes an already ordered input tensor as a map, makes an inference on the model, and returns an output data map.
-
metadata
Metadata returns the metadata associated with the ML model.
-