summaryrefslogtreecommitdiff
path: root/neuralnetworks/aidl/vts/functional/ValidateModel.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2021-04-05 23:03:24 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-05 23:03:24 +0000
commit564f4060167b5886d2f712d1ec2321846de651fd (patch)
treeb55dc57d4d2fdf75080b3026444a22c8d7f9a49d /neuralnetworks/aidl/vts/functional/ValidateModel.cpp
parenta98f551aad1c49678c6b52bdbeda0fe1c7626e41 (diff)
parent0f10ee9eb3becffb50e2c037ff0c141cd620f051 (diff)
Add missing validation for NN canonical types am: 388bcebc8f am: 2f59ea0610 am: 0f10ee9eb3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1663919 Change-Id: I98a53bd66ff52ece26e06e1457592b726a3f9468
Diffstat (limited to 'neuralnetworks/aidl/vts/functional/ValidateModel.cpp')
-rw-r--r--neuralnetworks/aidl/vts/functional/ValidateModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/neuralnetworks/aidl/vts/functional/ValidateModel.cpp b/neuralnetworks/aidl/vts/functional/ValidateModel.cpp
index 6d84e1ed7b..94d3daf6bb 100644
--- a/neuralnetworks/aidl/vts/functional/ValidateModel.cpp
+++ b/neuralnetworks/aidl/vts/functional/ValidateModel.cpp
@@ -1312,7 +1312,7 @@ static void mutateExecutionPriorityTest(const std::shared_ptr<IDevice>& device,
void validateModel(const std::shared_ptr<IDevice>& device, const Model& model) {
const auto numberOfConsumers =
nn::countNumberOfConsumers(model.main.operands.size(),
- nn::convert(model.main.operations).value())
+ nn::unvalidatedConvert(model.main.operations).value())
.value();
mutateExecutionOrderTest(device, model, numberOfConsumers);
mutateOperandTypeTest(device, model);