19#include <viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h>
21#include <viam/sdk/services/mlmodel.hpp>
28using tensor_storage_types = boost::mpl::transform_view<MLModelService::base_types,
29 std::vector<boost::mpl::placeholders::_1>>;
31using tensor_storage = std::vector<boost::make_variant_over<tensor_storage_types>::type>;
33void copy_sdk_tensor_to_api_tensor(
const MLModelService::tensor_views& source,
34 ::viam::service::mlmodel::v1::FlatTensor* target);
36MLModelService::tensor_views make_sdk_tensor_from_api_tensor(
37 const ::viam::service::mlmodel::v1::FlatTensor& api_tensor, tensor_storage* storage =
nullptr);