summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestExecution.cpp
diff options
context:
space:
mode:
authorSlava Shklyaev <slavash@google.com>2019-12-13 18:05:41 +0000
committerSlava Shklyaev <slavash@google.com>2020-01-21 19:05:19 +0000
commit8de7a223856575eeb500099799da18bca6ba6e64 (patch)
tree0f6877c139c675ee26c0499df2b9f090ba877a37 /nn/runtime/test/TestExecution.cpp
parenta3e01725dfb4f53253a78a513d878a675cc2d249 (diff)
downloadml-8de7a223856575eeb500099799da18bca6ba6e64.tar.gz
Incorporate control flow HAL changes
See change I7a75175f00fc98df626c40ea669021ccd40130e0 Bug: 136735929 Test: N/A Change-Id: Ifd18084275601b545abb6c53dda0045138ca4ed2
Diffstat (limited to 'nn/runtime/test/TestExecution.cpp')
-rw-r--r--nn/runtime/test/TestExecution.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/nn/runtime/test/TestExecution.cpp b/nn/runtime/test/TestExecution.cpp
index 583bc1942..945500ec0 100644
--- a/nn/runtime/test/TestExecution.cpp
+++ b/nn/runtime/test/TestExecution.cpp
@@ -249,11 +249,10 @@ class TestDriver13 : public SampleDriver {
Return<void> getSupportedOperations_1_3(const HidlModel& model,
getSupportedOperations_1_3_cb cb) override {
if (nn::validateModel(model)) {
- std::vector<bool> supported(model.operations.size(), true);
+ std::vector<bool> supported(model.main.operations.size(), true);
cb(ErrorStatus::NONE, supported);
} else {
- std::vector<bool> supported;
- cb(ErrorStatus::INVALID_ARGUMENT, supported);
+ cb(ErrorStatus::INVALID_ARGUMENT, {});
}
return Void();
}