Zero hidl-generated structs
Most things are members of Model, and so they only get sent to the HAL
(not up, which is what we are worried about).
Bug: 131356202
Test: TH runs CtsNNAPITestCases
Change-Id: I298af1ee5dcd99256fc0ad67f447ec8f435babb0
diff --git a/nn/common/ExecutionBurstServer.cpp b/nn/common/ExecutionBurstServer.cpp
index 067c2f5..ef925fe 100644
--- a/nn/common/ExecutionBurstServer.cpp
+++ b/nn/common/ExecutionBurstServer.cpp
@@ -121,10 +121,12 @@
// package output shape data
for (const auto& operand : outputShapes) {
// package operand information
+ FmqResultDatum::OperandInformation info{};
+ info.isSufficient = operand.isSufficient;
+ info.numberOfDimensions = static_cast<uint32_t>(operand.dimensions.size());
+
FmqResultDatum datum;
- datum.operandInformation(
- {/*.isSufficient=*/operand.isSufficient,
- /*.numberOfDimensions=*/static_cast<uint32_t>(operand.dimensions.size())});
+ datum.operandInformation(info);
data.push_back(datum);
// package operand dimensions