diff options
author | Michael Butler <butlermichael@google.com> | 2020-02-25 11:39:05 -0800 |
---|---|---|
committer | Michael Butler <butlermichael@google.com> | 2020-02-28 19:55:34 +0000 |
commit | f2091affab02743fb4ecbe6d5bdb426b93bbd283 (patch) | |
tree | 7ec58b5923cfb2b98c68f266809df567312fac34 /nn/runtime/test/specs/V1_3 | |
parent | c416c67cb98d453906771ada3e3a0ba30bba03ad (diff) | |
download | ml-f2091affab02743fb4ecbe6d5bdb426b93bbd283.tar.gz |
Cleanup NNAPI QoS Deadline
This CL does the following changes:
* In the case where a timeout duration would cause an overflow of the
OptionalTimePoint, this CL instead clamps it to the max time point.
Accordingly, the Overflow test result is changed from BAD_DATA to
NO_ERROR.
* Previously hal::OptionalTimePoint was used throughout the runtime
code. However, OptionalTimePoint cannot be directly compared against
the current time. Instead, this CL changes the runtime deadline type
to std::optional<std::chrono::steady_clock::time_point>, called
std::optional<Deadline>.
* Implements a simple deadline abort within the sample driver the and
runtime's CPU (i.e., non-driver) path.
Bug: 147925145
Test: mma
Test: CtsNNAPITestCases
Test: NeuralNetworksTest_static
Change-Id: I54ca961416313334eb3fca3f439db0974044bd6d
Diffstat (limited to 'nn/runtime/test/specs/V1_3')
0 files changed, 0 insertions, 0 deletions