Populate the classification result output param instead of a copy

PiperOrigin-RevId: 569293617
This commit is contained in:
Sebastian Schmidt 2023-09-28 14:36:07 -07:00 committed by Copybara-Service
parent f78f24f576
commit 5ca1be6f21

View File

@ -36,7 +36,7 @@ void CppConvertToClassificationResult(
for (uint32_t i = 0; i < out->classifications_count; ++i) {
auto classification_in = in.classifications[i];
auto classification_out = out->classifications[i];
auto& classification_out = out->classifications[i];
classification_out.categories_count = classification_in.categories.size();
classification_out.categories =