Skip to content

Commit c03fc15

Browse files
committed
bug fix
1 parent dd0e8c2 commit c03fc15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viam/sdk/services/private/mlmodel_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ::grpc::Status MLModelServiceServer::Infer(
4141
// Check if there's only one input tensor and metadata only expects one, too
4242
if (request->input_tensors().tensors().size() == 1 && md.inputs.size() == 1) {
4343
// Special case: just one tensor, add it without name check
44-
const MLModelService::tensor_info::tensor_info* input = &md.inputs[0];
44+
const MLModelService::tensor_info input = md.inputs[0];
4545
const auto& tensor_pair = *request->input_tensors().tensors().begin();
4646
auto tensor = mlmodel::make_sdk_tensor_from_api_tensor(tensor_pair.second);
4747
const auto tensor_type = MLModelService::tensor_info::tensor_views_to_data_type(tensor);

0 commit comments

Comments
 (0)