summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-17Snap for 4399693 from f315e6afa7cff2b271a4c4c8f0643d43508f92db to oc-mr1-releaseandroid-wear-8.1.0_r1android-vts-8.1_r3android-security-8.1.0_r93android-security-8.1.0_r92android-security-8.1.0_r91android-security-8.1.0_r90android-security-8.1.0_r89android-security-8.1.0_r88android-security-8.1.0_r87android-security-8.1.0_r86android-security-8.1.0_r85android-security-8.1.0_r84android-security-8.1.0_r83android-security-8.1.0_r82android-cts-8.1_r2android-cts-8.1_r1android-8.1.0_r81android-8.1.0_r80android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r69android-8.1.0_r68android-8.1.0_r66android-8.1.0_r6android-8.1.0_r5android-8.1.0_r4android-8.1.0_r3android-8.1.0_r23android-8.1.0_r19android-8.1.0_r16android-8.1.0_r15android-8.1.0_r12android-8.1.0_r11android-8.1.0_r10android-8.1.0_r1security-oc-mr1-releaseoreo-mr1-wear-releaseoreo-mr1-security-releaseoreo-mr1-s1-releaseoreo-mr1-releaseoreo-mr1-cuttlefish-testingoreo-m4-s1-releaseandroid-build-team Robot
Change-Id: I20fa06c560213d572c7a5f7d5940d43aea4822a6
2017-10-16Merge "Handle errors on getCapabilities" into oc-mr1-devoreo-mr1-devTreeHugger Robot
2017-10-16Handle errors on getCapabilitiesJean-Luc Brouillet
If the driver can't handle the call, don't use it. Bug: 67310896 Test: System tests and VTS tests Change-Id: Ia44b324a0f6116395967812d05c22b99b131608d
2017-10-15Snap for 4396223 from 1af33897ebdc15c41c94f93535df8904065d211b to oc-mr1-releaseandroid-build-team Robot
Change-Id: Icc95a2df808220c564540cb4c41e1bdc90ae93fe
2017-10-13Fix tests that incorrectly handle large const tensors.Miao Wang
- The failing tests incorrectly expect the data to be copied right away when calling setOperandValue on large tensors. - Making the affected tensors static so that they are still valid till Model.finish() is called. Bug: 67603060 Test: NeuralNetworksTest pass Change-Id: I2ad627b9022eae6144d95e06d310ea3d8a2ec42e
2017-10-13Merge "Add documentation for PaddingCode in NeuralNetworks.h Bug: 67331808 ↵TreeHugger Robot
Test: ran NeuralNetworksTest on marlin" into oc-mr1-dev
2017-10-13Add documentation for PaddingCode in NeuralNetworks.hgfan
Bug: 67331808 Test: ran NeuralNetworksTest on marlin Change-Id: I4b879f8a67bc366bffb12601dba7f021659a6921
2017-10-13Snap for 4393674 from 59c183a7ff87fffd47284a4a3f41479116d71d36 to oc-mr1-releaseandroid-build-team Robot
Change-Id: I4108aef1f08312bfaa33ed06c3a6a8394096396e
2017-10-12Pass large model operand values in shared memory.Jean-Luc Brouillet
Because of a limitation in HIDL, large tensor values (e.g. weights) need to pass in shared memory rather than as HIDL arguments. This prevented large models from running on a driver. Separated the handling of memory pools so that request and model pools are not comingled. Also improve logging so we see more details about the models when logging. Bug: 67603060 Test: Ran system tests and VTS tests. Change-Id: I760e31275699f9306c4b21945935dc3a4ca68754
2017-10-13Merge "Fix vlog initialization in sample drivers." into oc-mr1-devJean-Luc Brouillet
2017-10-13Merge "Test LSTM, RNN, and SVDF with non-zero states" into oc-mr1-devJean-Luc Brouillet
2017-10-13Merge "NEON support for LSTM" into oc-mr1-devJean-Luc Brouillet
2017-10-13Merge "Fix unit tests for ops with states" into oc-mr1-devJean-Luc Brouillet
2017-10-12Test LSTM, RNN, and SVDF with non-zero statesYang Ni
Bug: 67427635 These are auto-generated tests. Updates the specs so that states are not zeros. Test: NeuralNetworksTest Change-Id: Id419d020a8c0abc1bf03242c99ad03b2cb192ccb
2017-10-12Generate MobilNet quantized in the test generation scriptI-Jui (Ray) Sung
Generate MobileNet quantized and prevent the test from being overwritten. It was with a different suffix from the one recognized by the test geneartor script, and thus effectively it was ignored. This CL updates the suffix of the test spec for MobileNet. Also, since the example file is generated elsewhere, we want the generator script not to overwrite it. Also, skip MobileNet quantized entirely in VTS as it is known to fail at this moment. Test: NeuralNetworkTest on Angler Test: VtsHalNeuralnetworksV1_0TargetTest on CPU sample driver Bug: 67394906 Change-Id: Ia944aeaa74e9318014f34cfc2fea6dcbf3f0f1ba
2017-10-12NEON support for LSTMYang Ni
Bug: 67716699 Pulled in the latest implementation of tensor utils from TF Lite, which has enabled NEON for tensor maths. Test: NeuralNetworksTest Change-Id: Ic1abbb40c1a8f9c218ea20e58108c6f88e044369
2017-10-12Fix unit tests for ops with statesYang Ni
Bug: 67427635 These tests got broken during the transition from the stateful API to a stateless API. This CL fixes them (LSTMTest, RNNTest, and SVDFTest) to correctly use double buffering to manage states in the client, i.e., swapping the two buffers for states before and after the ops across inferences. Test: LSTMTest: adb shell /data/nativetest64/lstm_test/lstm_test Test: RNNTest: adb shell /data/nativetest64/rnn_test/rnn_test Test: SVDFTest: adb shell /data/nativetest64/svdf_test/svdf_test Test: NeuralNetworksTest (not affected) Change-Id: I77e34e42613174ac793410c154f9ecad86e03165
2017-10-12Merge "Relax quant8 result tolerance to +/- 1 in the test harness" into ↵TreeHugger Robot
oc-mr1-dev
2017-10-12Fix vlog initialization in sample drivers.Jean-Luc Brouillet
While debugging setValueCode, I found that I was not getting log trace from the sample driver. It's because the vlog initialization was done when the driver started. If you do a setprop afterwards, nothing happened. It's better to do the call on getCapabilities. Bug: 67724550 Test: Compiled and ran sample drivers Change-Id: I5068851c145a2e2aaff43f3d783362b0714a385d
2017-10-12Snap for 4391495 from 2467b9c2956293324de8557cf341a7cae83c591d to oc-mr1-releaseandroid-build-team Robot
Change-Id: Ibcc15afba99f85d3399aba64f3563a43b48da024
2017-10-12Relax quant8 result tolerance to +/- 1 in the test harnessI-Jui (Ray) Sung
We believe having a +/- 1 tolerance for quant8 types are appropriate for the current set of tests we have, as some devices have different rounding modes from the ones of CPU. Bug: 67644069 Test: VtsHalNeuralnetworksV1_0TargetTest on Angler with sample driver Test: NeuralNetworkTest on Angler Change-Id: I2aea18d2d8cfc2a2de2e50ceb1fa4631b10f8615
2017-10-11Update generated VTS testsI-Jui (Ray) Sung
Regenerate VTS tests after test generator updates in ag/3050465. Bug: 67607461 Test: VtsHalNeuralnetworksV1_0TargetTest on Angler with sample driver Change-Id: I23898061809fe371049337d8c103c05427a728ee
2017-10-11Merge "Respect output operand order in test generator" into oc-mr1-devTreeHugger Robot
2017-10-11Merge "Made embedding lookup take int lookups" into oc-mr1-devYang Ni
2017-10-11Respect output operand order in test generatorI-Jui (Ray) Sung
Fixed how test generator enumerate output operands. Instead of using set(), use a list and return unique output operands on the fly when queried. Also updated test generator's test suite with recent fixes on FP literals, and added new testcases. Bug: 67607461 Test: NeuralNetworkTest on Angler Test: tools/test_generator/tests/test.py Change-Id: Ic519035974ea5acedef6730acc1827d4f768c21d
2017-10-11Snap for 4388906 from 86b1f8cc81abc68ae857fb87a3bbc1092e9cb3cc to oc-mr1-releaseandroid-build-team Robot
Change-Id: I2b2db8f065a3692266f0af409aefb7f55aff1e41
2017-10-11Merge changes Ib4b7ed56,Ibfd68139 into oc-mr1-devTreeHugger Robot
* changes: Close file descriptors in the TestMemory test. Fix a bad depthwise_conv test.
2017-10-11Merge "Add unit tests for graph partitioning." into oc-mr1-devTreeHugger Robot
2017-10-10Close file descriptors in the TestMemory test.Miao Wang
Bug: 67650395 Test: Loop the affected test 1000 times and verified the bug is fixed. Change-Id: Ib4b7ed567828511769fd7cb52e51e1e5d560e454
2017-10-10Fix a bad depthwise_conv test.Miao Wang
Bug: 67650128 Test: mm Test: NeuralNetworksTest pass Change-Id: Ibfd68139dfb30bfadf4898de964c66fbd584f2d0
2017-10-10Merge "Fix the helper function converting explict padding to implicit ↵TreeHugger Robot
padding" into oc-mr1-dev
2017-10-10Add unit tests for graph partitioning.David Gross
Bug: 63905942 Test: mma (userdebug) ml/nn/runtime/tests (userdebug) Change-Id: I0c673b052033b1d0f2686bca193a675dd7fd03b5
2017-10-10Merge "Added one more test spec for space_to_depth/depth_to_space Bug: ↵Gerry Fan
63905942 Test: ran NeuralNetworksTest on marlin" into oc-mr1-dev
2017-10-10Made embedding lookup take int lookupsYang Ni
Bug: 67459279 NN API only supported float tensors when this op was first added. Now int tensors are allowed in the API and we have updated the documentation saying the lookup indices are integers, we need update the implementaion and tests of this op to match the documentation. Also reverted the input order to match TF Lite. Test: NeuralNetworksTest Test: adb shell /data/nativetest64/embedding_lookup_test/embedding_lookup_test Change-Id: Ie0db884ca772e8fb388876c3cef609016e753bf1
2017-10-10Merge "Minor clarification for NeuralNetworks.h for EMBEDDING_LOOKUP and ↵Gerry Fan
HASHTABLE_LOOKUP Bug: 67459279 Test: locally run cts NeuralNetworksTests on marlin" into oc-mr1-dev
2017-10-10Added one more test spec for space_to_depth/depth_to_spacegfan
Bug: 63905942 Test: ran NeuralNetworksTest on marlin Change-Id: I11df832b5e69479b7fe4e8beff9c0add2ed9992c
2017-10-10Minor clarification for NeuralNetworks.h for EMBEDDING_LOOKUP and ↵gfan
HASHTABLE_LOOKUP Bug: 67459279 Test: locally run cts NeuralNetworksTests on marlin Change-Id: Ib0bc48b3d0a2403820989d8c7d517081f5a9b647
2017-10-10Snap for 4386596 from bee07f73a5f998a2dd6dc581e7776557c21f9684 to oc-mr1-releaseandroid-build-team Robot
Change-Id: Icf7d7d45b45720a75a0e6e0a567d0b8d200e76a0
2017-10-09Fix the helper function converting explict padding to implicit paddingMiao Wang
Bug: 67478959 Test: mm Test: NerualNetworksTest pass Change-Id: I3f959031e5d31e2b01ee613b4f1038df883b708d
2017-10-09Force CpuExecutor validating user-provided model output operands.Miao Wang
- For operands with OperandLifeTime::MODEL_OUTPUT, the dimensions, type, and other meta-data must match the output Shape calculated from the operation preparation step. - Fix the ill-defined tests caught by the added validation. - Incidental changes: generated more tests from tests specs. Bug: 67390841 Test: NeuralNetworksTests pass Change-Id: I40d35db0f7a868feae773dbf7e12cf4bf5f5e275
2017-10-10Merge "Refactor test harness" into oc-mr1-devTreeHugger Robot
2017-10-10Merge "Revise tests so weights and biases are no longer inputs" into oc-mr1-devTreeHugger Robot
2017-10-09Revise tests so weights and biases are no longer inputsI-Jui (Ray) Sung
This CL turn them into constant operands set at model building time. Also fixed problems in the test generator on handling FP literals in model paramters. Original tests are renamed with _weights_as_inputs suffix. Bug: 67015862 Bug: 63905942 Test: NeuralNetworksTests on Angler Change-Id: Ic59c78e7e6fcb143fb05a0360baa281b7528050c
2017-10-09Refactor test harnessI-Jui (Ray) Sung
Fix unaddressed comments in previous CLs on test harness; rewrite macros using templates. Bug: 67597726 Test: NeuralNetworksTest on Angler Change-Id: I19fe804a71554246b953471e2966335cfd9170e5
2017-10-09Fix RESIZE_BILINEAR documenation.Miao Wang
Bug: 67503562 Test: none needed Change-Id: Ib59ce8d8dbe814b835c400081a286a0514b5f1be
2017-10-06Snap for 4380782 from 820215d28bed6c90f696cde0f282445d16da432e to oc-mr1-releaseandroid-build-team Robot
Change-Id: I6e38543850bc1e7d349c4240ea9388bbff8f6c5d
2017-10-06Allow fine grain verbose logging control through system property.Miao Wang
- Existing DEBUG and INFO change to the new mechanism, existing ERROR and WARNING unchanged. - By default, all verbose logging are disabled. - setprop debug.nn.vlog 1 enables all verbose logging. - setprop debug.nn.vlog "tag1 tag2 ..." only enable the selected tags. - Available tags: all: same as 1. model: enable logging with tag MODEL. compilation: enable logging with tag COMPILATION. execution: enable logging with tag EXECUTION. cpuexe: enable logging with tag CPUEXE. manager: enable logging with tag MANAGER. driver: enable logging with tag DRIVER. Bug: 63905942 Test: mm Test: NeuralNetworksTests pass Test: manually set property to allow individual module to logging verbosely Test: tested with debug.nn.partition default -> 0 -> 1 to make sure getProp still works fine Change-Id: Iaa0ffa62176dabcdc35058748597df720fd6e47e
2017-10-06Merge "Partitioning interface changes to enable unit testing." into oc-mr1-devDavid Gross
2017-10-05Partitioning interface changes to enable unit testing.David Gross
Bug: 63905942 Test: mma (userdebug) ml/nn/runtime/tests (userdebug) (no failures, logcat looks plausible) Change-Id: Ib9a5eb75b9e4e2c3534f392d5fb0e5ba3555197d
2017-10-05Merge "Fix test spec in depthwise_conv_2d and depthwise_conv_2d_quant8 Bug: ↵Gerry Fan
67381597 Test: locally run cts NeuralNetworksTests on marlin" into oc-mr1-dev