17#include <viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h>
19#include <grpcpp/channel.h>
21#include <viam/sdk/services/mlmodel.hpp>
35 using service_type = viam::service::mlmodel::v1::MLModelService;
39 std::shared_ptr<named_tensor_views>
infer(
const named_tensor_views& inputs,
40 const ProtoStruct& extra)
override;
56 std::shared_ptr<grpc::Channel> channel_;
57 std::unique_ptr<service_type::StubInterface> stub_;
Represents a machine trained learning model instance.
Definition mlmodel.hpp:35
std::shared_ptr< named_tensor_views > infer(const named_tensor_views &inputs)
Runs the model against the input tensors and returns inference results as tensors.
Definition mlmodel.hpp:95
virtual std::string name() const
Return the resource's name.
Definition mlmodel_client.hpp:32
std::shared_ptr< named_tensor_views > infer(const named_tensor_views &inputs, const ProtoStruct &extra) override
Runs the model against the input tensors and returns inference results as tensors.