We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd0e8c2 commit c03fc15Copy full SHA for c03fc15
src/viam/sdk/services/private/mlmodel_server.cpp
@@ -41,7 +41,7 @@ ::grpc::Status MLModelServiceServer::Infer(
41
// Check if there's only one input tensor and metadata only expects one, too
42
if (request->input_tensors().tensors().size() == 1 && md.inputs.size() == 1) {
43
// Special case: just one tensor, add it without name check
44
- const MLModelService::tensor_info::tensor_info* input = &md.inputs[0];
+ const MLModelService::tensor_info input = md.inputs[0];
45
const auto& tensor_pair = *request->input_tensors().tensors().begin();
46
auto tensor = mlmodel::make_sdk_tensor_from_api_tensor(tensor_pair.second);
47
const auto tensor_type = MLModelService::tensor_info::tensor_views_to_data_type(tensor);
0 commit comments