viam.services.mlmodel.service

Classes

MLModelRPCService

gRPC service for a ML Model service

Module Contents

class viam.services.mlmodel.service.MLModelRPCService(manager: viam.resource.manager.ResourceManager)[source]

Bases: viam.proto.service.mlmodel.MLModelServiceBase, viam.resource.rpc_service_base.ResourceRPCServiceBase

gRPC service for a ML Model service

RESOURCE_TYPE
async Infer(stream: grpclib.server.Stream[viam.proto.service.mlmodel.InferRequest, viam.proto.service.mlmodel.InferResponse]) None[source]
async Metadata(stream: grpclib.server.Stream[viam.proto.service.mlmodel.MetadataRequest, viam.proto.service.mlmodel.MetadataResponse]) None[source]