diff options
author | Slava Shklyaev <slavash@google.com> | 2020-02-18 20:58:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-02-18 20:58:55 +0000 |
commit | db1eaed73940693859b581c9336e64e6db7ed49a (patch) | |
tree | cf94db20f864d004bdf456d91a0b4d1655cd0463 /nn/runtime/test/TestCompilationCaching.cpp | |
parent | 644f69fbed6f39989c0571ad57b8b27da830679e (diff) | |
parent | 64ffe91670d39eca7e072e07d258a6337c3b3b1b (diff) | |
download | ml-db1eaed73940693859b581c9336e64e6db7ed49a.tar.gz |
Merge changes from topics "nnapi-loop-timeout", "nnapi-loop-timeout-hal"
* changes:
Add setLoopTimeout CTS test
Implement loop timeout in CpuExecutor
Implement loop timeout in ExecutionPlan
Incorporate loop timeout HAL changes
Specify loop timeout result codes
Add loop timeout API
Diffstat (limited to 'nn/runtime/test/TestCompilationCaching.cpp')
-rw-r--r-- | nn/runtime/test/TestCompilationCaching.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nn/runtime/test/TestCompilationCaching.cpp b/nn/runtime/test/TestCompilationCaching.cpp index b9e4985e2..dab33d9f7 100644 --- a/nn/runtime/test/TestCompilationCaching.cpp +++ b/nn/runtime/test/TestCompilationCaching.cpp @@ -108,6 +108,7 @@ class CachingDriver : public sample_driver::SampleDriver { } Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request&, MeasureTiming, const OptionalTimePoint&, + const OptionalTimeoutDuration&, const sp<V1_3::IExecutionCallback>&) override { return V1_3::ErrorStatus::DEVICE_UNAVAILABLE; } @@ -118,6 +119,7 @@ class CachingDriver : public sample_driver::SampleDriver { } Return<void> executeSynchronously_1_3(const V1_3::Request&, MeasureTiming, const OptionalTimePoint&, + const OptionalTimeoutDuration&, executeSynchronously_1_3_cb cb) override { cb(V1_3::ErrorStatus::DEVICE_UNAVAILABLE, {}, kBadTiming); return Void(); @@ -131,7 +133,7 @@ class CachingDriver : public sample_driver::SampleDriver { } Return<void> executeFenced(const hal::Request&, const hidl_vec<hidl_handle>&, MeasureTiming, const OptionalTimePoint&, const OptionalTimeoutDuration&, - executeFenced_cb cb) { + const OptionalTimeoutDuration&, executeFenced_cb cb) { cb(ErrorStatus::DEVICE_UNAVAILABLE, hidl_handle(nullptr), nullptr); return Void(); } |