Age | Commit message (Collapse) | Author |
|
|
|
|
|
Bug: 147925145
Test: mma
Test: NeuralNetworksTest_static
Change-Id: Ie636c7cdc84ff7a262925f8ff8ebbd4d4f45201b
|
|
|
|
* changes:
Create tests for VersionedInterfaces errors
Simplify IDevice reboot logic
|
|
This helps cover the code path of data copying between hidl memory and
IBuffer, as well as data copying between IBuffers. These code paths may
not be covered by CTS because of the lack of driver support.
This CL additionally extracts TestAshmem class from TestGenerated to a
common TestUtils.
Bug: 152209365
Test: NNT_static
Change-Id: I617bfbc391c7d0ada0c32b31ee2e6e493d5dc6a2
|
|
rvc-dev
|
|
The header lib is depended on by libneuralnetworks_common which is
available to platform. With b/153073816, we will be checking the
availability to the platform as well, i.e. platform-available module
depending on platform-unavailable module will cause a build error.
Prepare for the change by correctly marking that the header lib is also
available to the platform.
Bug: 153073816
Test: m
Exempt-From-Owner-Approval: cherry-pick from AOSP
Merged-In: I31a198068c98e7d6b01b7e2cd6f43e54769f28b1
(cherry picked from commit ddda33ec48ac01e042854c0a017a4ce276172488)
Change-Id: I31a198068c98e7d6b01b7e2cd6f43e54769f28b1
|
|
Fixes: 155195637
Test: NNT_static_fuzzing and inspect the dumped spec
Change-Id: I11b50433b17afeceedae954f2832c1c2193b2c7f
|
|
|
|
* changes:
Regenerate tests.
Re-enable tests that are previously disabled.
|
|
Squeeze, when used on a single-value tensor with 1s in
each dimension, will result in zero-sized tensor without dimensions.
This change fixes it, by making its output a tensor of size [1].
Bug: 155238914
Test: squeeze_b155238914.mod.py run on coral.
Change-Id: Ia5bf655c647084d9fa094ae8a2048917a8237b81
|
|
This CL fixes the ordering of sequences in the test. Specifically:
1) Causes the spin-loop in waitForExecutionToBegin to spin while the
execution has not yet started
2) Adds dummyExecution() to the driver implementations of FAIL_LAUNCH
3) Skips getDurationWhileRunning for all DriverKind::CPU test cases
Further, this CL adds dummyExecution() to
TestPreparedModelLatest::executeFenced to ensure the call to
executeFenced will not complete until after the test has called
getDuration. This brings executeFenced in line with the other execution
methods which call dummyExecution().
Finally, this CL has the following two minor changes:
1) code that was previously running from a detached thread in
executeFenced now instead runs synchronously
2) a for-loop that iterated by constant reference now instead iterates
by constant value
Fixes: 155215099
Test: mma
Test: NeuralNetworksTest_static --gtest_filter=Fenced/TimingTest*
Change-Id: I69a7448367ce8353791c9462d144122b6c913802
|
|
|
|
Bug: 140641425
Test: NNT_static
Change-Id: I3e037df067125b04efbd73f6d84da228d5e24f7a
|
|
Bug: 140641425
Bug: 151328024
Bug: 152446228
Bug: 152445711
Bug: 152446298
Fixes: 152446228
Test: NNT_static
Test: NNT_static_fuzzing
Change-Id: Ifd1f45a2b058fe9996dca817a067ce2ad6d47b46
|
|
This CL also re-enables TestUnspecifiedDimensions, which will trigger
the bug in validateRequest when sample driver is deployed.
Bug: 141294076
Fixes: 155228680
Test: NNT_static with sample driver
Change-Id: I268eb67bda8933be180bd58b604ee76b72577697
|
|
rvc-dev
|
|
Fixes: 154639297
Test: NNT_static
Test: NNT_static_fuzzing
Change-Id: I2b37dd7fe07f3239682b5bc7f7cef0ae76134ad0
|
|
- The tests require mTestDevice being valid to perform the tests, while
useCpuOnly will only allow CPU fallback path.
Fixes: 155229031
Test: mm
Test: NeuralNetworksTest_static
Change-Id: Ic866d14de39d0c8f52648ad319bac14bc8fdd666
|
|
This CL introduces the following kinds of tests:
* device creation and initialization errors
* "normal" functional positive and negative tests
* HIDL transport error tests
* mock service crash tests
Fixes: 139189546
Bug: 129572750
Test: mma
Test: atest NeuralNetworksTest_static
Change-Id: I3e1eb5433732695572044a74f1529ffc9c3a1982
|
|
Test: Build NeuralNetworksTest_static both normally and with
#define VERBOSE uncommented in TestPartitioningRandom.cpp
Bug: 136735929
Change-Id: I79e33239b63885b050d77b5a819b7be82a80528e
|
|
HIDL allows a service to be retrieved with two functions:
* <Interface>::getService — blocks until service is retrieved
* <Interface>::tryGetService — immediately returns service or nullptr
Currently, the NN runtime retrieves the service in three different
places:
1) When the runtime first starts, <Interface>::getService is used to
acquire all services
2) When the object is dead, <Interface>::tryGetService is used to
attempt to reacquire the service, but will quickly resume if the
service is still rebooting
3) When the client calls ANNDevice_wait, <Interface>::getService is used
to block until the service is active again
This CL simplifies the IDevice reboot logic by changing these static
class functions to dependency injection. Specifically, VersionedIDevice
now retrieves a handle to the IDevice object through a DeviceFactory
function that is passed in when the VersionedIDevice object is created.
This function can either operate as blocking or nonblocking to support
all use-cases described above, and makes it easier to test the
VersionedIDevice recovery code.
Bug: 139189546
Test: mma
Test: NeuralNetworksTest_static
Test: CtsNNAPITestCases
Change-Id: I012eb4df6f09f98bdfbd0835457ba98bc22d906e
|
|
|
|
* changes:
Add STRIDED_SLICE with shrinkMask in RGG tests.
Increase the fp precision in dumped spec.
|
|
Fixes: 132322549
Test: NNT_static_fuzzing
Change-Id: I85577481125e131741992e9d896d12320af67e1a
|
|
|
|
In this test, the RGG produces a non-sensible graph with extreme large
output gain and highly clamped output range.
Fixes: 153690038
Test: NNT_static_fuzzing
Change-Id: I7063730e04ea8a18aecd20029eb6e726ac780c2a
|
|
These tests use a customized IDevice to test the device memory
allocation and fallback logic.
This CL also allows the runtime to dispatch device memory allocation
with dynamic shape to drivers.
Additionally, this CL fixes a bug that a failed device memory allocation
will return BAD_DATA -- it should return OP_FAILED instead.
Bug: 152209365
Test: NNT_static
Change-Id: I1facb2dad345958c3b9b1bab4a9564085c382c4a
|
|
|
|
|
|
Fix sporadic failures in CtsNNAPITestCases.TensorRankConstraint tests.
Improves description of expectation failures when comparing
OperandTypeWithExtraParams instances.
Test: CtsNNAPITestCases
Bug: 154093710
Change-Id: Ia2b8bc914892f2ff7908d247fa26743fa242f783
|
|
Fix: 148208229
Test: NNT_static
Change-Id: I853f1f294cedacb0cbb810042ef2a3466a072ffe
|
|
Bug: 149199424
Test: NNT_static
Test: VTS 1.3
Change-Id: I887be1b8530aad4568db9e75d3260b6b78884d23
|
|
|
|
rvc-dev
|
|
|
|
into rvc-dev
|
|
|
|
Bug: 153282844
Test: NNT_static
Change-Id: Ia4528dc012ea9cca7980b508cd090a656c13476b
|
|
Before this change, we only had tests with CONSTANT_COPY constant inputs
(the default). This change adds CONSTANT_REFERENCE counterparts of those
tests.
Bug: 137836124
Test: NNT_static
Change-Id: If6a0b897636f49b19ac7ccc1bc7ded3eee764744
|
|
Fix: 153432185
Bug: 137836124
Test: NNT_static
Change-Id: Icc63966088cd92c4466ec9d94e068309c01342e9
|
|
Note that this change potentially changes EVERY pseudorandom test case
in this particular test set.
Test: NeuralNetworksTest_static --gtest_filter=Seed/RandomPartitioningTest.*
Also verified that some randomly generated graphs include the
newly-added V1_3 operations.
Bug: 141704808
Change-Id: Ib762c5fe8f7c42825025a6e57b61631040e0911a
|
|
|
|
* changes:
Prevent RGG from generating NaN values.
Add broadcast with different ranks in RGG.
|
|
|
|
|
|
|
|
|
|
|