summaryrefslogtreecommitdiff
path: root/nn/runtime/test/specs/V1_3
AgeCommit message (Collapse)Author
2020-06-22Sets bias quant scale in QLSTM test to 0 as it's unused.Viet Dang
Bug: 155421116 Test: NeuralNetworksTest_static Change-Id: I434d70e30b137a37febfab83127d79f9a6ecbae6
2020-05-06Improve shape validation in FULLY_CONNECTEDSlava Shklyaev
1. Adds bias dimension count validation. 2. Does more validation in validate(). Bug: 155575142 Bug: 155261461 Test: NNT_static --gtest_filter="*while_fib*" Test: NNT_static --gtest_filter=ValidationTestDimensionProductOverflow2.DynamicOutputShapeOverflow Change-Id: I7b70a29e76fdf99e656ee6e3867cfd97675cfeec
2020-04-15Add a WHILE test with unused outputsSlava Shklyaev
Fix: 148208229 Test: NNT_static Change-Id: I853f1f294cedacb0cbb810042ef2a3466a072ffe
2020-04-15Add operand type variations for WHILE testsSlava Shklyaev
Bug: 149199424 Test: NNT_static Test: VTS 1.3 Change-Id: I887be1b8530aad4568db9e75d3260b6b78884d23
2020-04-09Add WHILE tests with CONSTANT_REFERENCE inputsSlava Shklyaev
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
2020-04-07Merge "Fix HARD_SWISH rank requirement" into rvc-devTreeHugger Robot
2020-04-07Add operand type variations for IF testsSlava Shklyaev
Bug: 149199424 Test: NNT_static Change-Id: If6ae373876fa309580198526d44018576a4ebdd1
2020-04-07Add SUBGRAPH support for DataTypeConverterSlava Shklyaev
The following construct is used to specify subgraph conversions: converter = DataTypeConverter().Identify({ op1: (target_type, target_scale, target_zero_point), ... subgraphOp: DataTypeConverter().Identify({ ... }), }) Implicit conversion is supported as well. Bug: 149199424 Test: NNT_static Change-Id: I3f28d36159f19a50e50bc6f438bb98331f77a5f9
2020-04-06Fix HARD_SWISH rank requirementLev Proleev
Also add rank check to HARD_SWISH validation. This commit removes nnAssert from the utility function that converts NNAPI Shape to TF Lite's RuntimeShape. The assert would cause a crash if the function was passed a shape with rank > 4 even though RuntimeShape supports such shapes. Bug: 152945527 Bug: 139957496 Test: NNTest_static Change-Id: I69147915669bee525c8883e48fd53ff0f899a501
2020-04-06Add POW op test with same inputs shapes to increase code coverageLev Proleev
Fix: 129571542 Test: NNTest_static Change-Id: Ie94a0a36b1df10afff6a5269f9375f99bc6ffba7
2020-04-04Merge "Add 1.3 RESIZE_* tests with default values" into rvc-devTreeHugger Robot
2020-04-02Add 1.3 RESIZE_* tests with default valuesLev Proleev
The tests are taken from 1.2 test specs. Fix: 152405977 Test: NNTest_static Change-Id: I15ad10dd826ddd63476153e3982c5218947ae9c3
2020-03-30Add tests of DIV by zero.Xusong Wang
Added tests of DIV by zero. The tests exercise DIV by zero of all supported data types in CTS/VTS and only expect runtime/drivers to not crash. Updated the reference implementation of INT32 DIV. Before this CL, the reference implementation will crash with floating point exception. This CL forces INT DIV by zero to return 0. Fixes: 151151830 Test: NNT_static Change-Id: I49f39c6ed41bab5d368498b37909de6a1c808d1e
2020-03-23Merge "Handle unspecified IF operand value" into rvc-devTreeHugger Robot
2020-03-23Handle unspecified IF operand valueSlava Shklyaev
Bug: 151433109 Bug: 149199424 Fix: 116355758 Test: NNT_static Change-Id: Ib62c8270b85b0a75e532fe15b54e7ad7ea3636ba
2020-03-20Merge changes I97e66261,I8d1eccd3 into rvc-devTreeHugger Robot
* changes: Document and test L2_NORMALIZATION with input of all zeros. Add tests for corner cases of quant8 l2 norm.
2020-03-20Merge changes I32d7b435,I8904d7ca,I681fad8e,Iaf1d9b66,I30e89ce4 into rvc-devXusong Wang
* changes: Add SQUEEZE with omitted axis in RGG. Fix SQUEEZE with optional squeeze dims. Add TRANSPOSE with omitted permutation to RGG. Support omitted operand in RGG. Enable RGG to generate a roi tensor of lifetime SUBGRAPH_INPUT.
2020-03-19Fix SQUEEZE with optional squeeze dims.Xusong Wang
Also added tests. Fixes: 116355758 Fixes: 151775127 Test: NNT_static Change-Id: I8904d7caf381970fc3b8869aa6aa09c03acbc6df
2020-03-18Document and test L2_NORMALIZATION with input of all zeros.Xusong Wang
Fixes: 143985908 Test: NNT_static Change-Id: I97e662612947895e0244a8242728d362c0063f89
2020-03-18Add AllOutputsAsInternalCoverterSlava Shklyaev
The variation is used in control flow tests. Bug: 149199424 Test: generate_all_tests.sh Test: NNT_static Change-Id: I542f7be5338d878a822f9ae69edea23e387fdf08 Merged-In: I542f7be5338d878a822f9ae69edea23e387fdf08 (cherry picked from commit 6883f803060f6dd81c90359ff6512845ad8b40ea)
2020-03-16Validate type of dimensions in test generatorSlava Shklyaev
This change - adds "dimensions" type validation in the test generator, - fixes incorrect usages, - adds new control flow and QLSTM tests that were previously omitted due to this bug, - refactors QLSTM tests for readability and ease of maintenance, and - updates README to use the new type format. Fix: 151217992 Test: generate_all_tests.sh Test: NNT_static Change-Id: I55b47a7ff02cb5ec25150d6be322ee3dbe9dcf43 Merged-In: I55b47a7ff02cb5ec25150d6be322ee3dbe9dcf43 (cherry picked from commit 85f3703a1b159b88bbb9ac39993eba4658dc4fda)
2020-03-13Adds a test for quantized LSTM op for CIFG, Layer Norm.Viet Dang
Also fixes a minor typo. Bug: 148938903 Test: NeuralNetworksTest_static Change-Id: I44463611b258c6ee2345211abe11cbba5694610d Merged-In: I44463611b258c6ee2345211abe11cbba5694610d (cherry picked from commit a91b2175d5110656b759999209b5d7e6ec6f643b)
2020-03-10Handle constant IF condition operandsSlava Shklyaev
Bug: 136735929 Test: NNT_static Change-Id: I2d688b3eac19a09cbbc1fbf423af8493aede26f1
2020-03-04Set output shape in RANK operation preparePrzemyslaw Szczepaniak
This fixes segfaults for graphs where RANK output is a graph internal variable. Test: GeneratedTest.rank_internal_result Fix: 150728111 Change-Id: I321d7d4df918d4ecba15af788696f2fbf7545110
2020-02-19Add align_corners and half_pixel_centers parameters to resize opsLev Proleev
Fix: 135147454 Test: NNTest_static Change-Id: I058da4e420c31e71a02a0ea062b2deb9fda621cf
2020-02-19Merge "Add generated infinite loop test"Slava Shklyaev
2020-02-18Add generated infinite loop testSlava Shklyaev
See change I642772d3. Bug: 149554639 Bug: 145906499 Bug: 136735929 Test: m Change-Id: Ibc92e97fabd57e38de22e1397677fdf8aba6bb95
2020-02-18Add parallel linking support for BIDIRECTIONAL_SEQUENCE_LSTMLev Proleev
Previoulsy, BIDIRECTIONAL_SEQUENCE_LSTM only supported cross-linking mode, i.e. passing the regular and the auxiliary input to both the forward and backward networks in the next BIDIRECTIONAL_SEQUENCE_LSTM op: AUX_INPUT (AUX_INPUT_REVERSED) | | INPUT | (INPUT_R'D.)| | | | | ----------------------- | \ / \ / | | FW_LSTM BW_LSTM | ----------------------- | | FW_OUT BW_OUT This CL adds support for parallel linking of bidirectional sequence LSTMs, where the regular input is passed only to the forward network and the auxiliary input is passed only to the backward network: INPUT (AUX_INPUT_REVERSED) | | --------------------- | FW_LSTM BW_LSTM | --------------------- | | FW_OUT BW_OUT Fix: 138653129 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: Iba255c6377aa8f74d78e09c44c483ec406fe6539
2020-02-18Add parallel linking support for BIDIRECTIONAL_SEQUENCE_RNNLev Proleev
Previoulsy, BIDIRECTIONAL_SEQUENCE_RNN only supported cross-linking mode, i.e. passing the regular and the auxiliary input to both the forward and backward networks in the next BIDIRECTIONAL_SEQUENCE_RNN op: AUX_INPUT (AUX_INPUT_REVERSED) | | INPUT | (INPUT_R'D.)| | | | | ----------------------- | \ / \ / | | FW_RNN BW_RNN | ----------------------- | | FW_OUT BW_OUT This CL adds support for parallel linking of bidirectional sequence RNNs, where the regular input is passed only to the forward network and the auxiliary input is passed only to the backward network: INPUT (AUX_INPUT_REVERSED) | | --------------------- | FW_RNN BW_RNN | --------------------- | | FW_OUT BW_OUT Fix: 138653129 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: If08ba61d2bf24700a350ae234459f7f73e67e53e
2020-02-17Port control flow tests to test generatorSlava Shklyaev
Original tests: Ib371aeca Also adds some new tests. Bug: 148601177 Bug: 136735929 Test: generate_all_tests.sh Test: NNT_static Change-Id: Icf402cbd4172163ff3e9a4644804b2ef3dcf0743
2020-02-12Merge changes from topic "state_outputs"Lev Proleev
* changes: Add a state output for BIDIRECTIONAL_SEQUENCE_RNN Add a state output for BIDIRECTIONAL_SEQUENCE_LSTM Add a state output for UNIDIRECTIONAL_SEQUENCE_LSTM Add a state output for UNIDIRECTIONAL_SEQUENCE_RNN
2020-02-06Add a test for quantized LSTM op for CIFG, Layer Norm, Projection.Viet Dang
Bug: 148938903 Test: NeuralNetworksTest_static Change-Id: Ia267a7f90bc49b79ef47121bed202ef81d982664
2020-02-05Add a state output for BIDIRECTIONAL_SEQUENCE_RNNLev Proleev
Bug: 138443991 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: Iabda8320facc253c273ea6edb9d0b24b3715c4f9
2020-02-05Add a state output for BIDIRECTIONAL_SEQUENCE_LSTMLev Proleev
Bug: 138443991 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I4f3292a2426093a6534567812dffb71e126f21f9
2020-02-05Add a state output for UNIDIRECTIONAL_SEQUENCE_LSTMLev Proleev
Bug: 138443991 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I48b4eeeebf9a317efa2e05ee2caddb168bde5bb8
2020-02-05Add a state output for UNIDIRECTIONAL_SEQUENCE_RNNLev Proleev
Bug: 138443991 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I87c4735b9ced983142cac502635c1a6a21deed0c
2020-01-22Add FILL and RANK opsLev Proleev
Fix: 148050168 Fix: 148049333 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I5438cdd7c0cc52e49067529edcee537278c8f7ad
2020-01-22Add HARD_SWISH opLev Proleev
Fix: 147482068 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I4436d47ec3b2f51ef9c17b0e061c065e92c410a0
2020-01-22Add ELU opLev Proleev
Fix: 147481241 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: Ia6596dc9517a3c17d2b56439df658b1dca96d7dc
2020-01-13Add TENSOR_INT32 support for ABSSlava Shklyaev
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: Iede89032f584c94c7083069280c9afe1abb5df1e
2020-01-13Add TENSOR_INT32 support for DIVSlava Shklyaev
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: I105222e43802bc58562bb904bd9e9b306eb3697c
2020-01-13Add TENSOR_INT32 support for MULSlava Shklyaev
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: I42d1d5874be6bc7ff11ecf33fd15ce9db539d1a3
2020-01-10Merge "Add TENSOR_INT32 support for SUB"Slava Shklyaev
2020-01-09Add TENSOR_INT32 support for SUBSlava Shklyaev
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: I10e7e93d5d58d2f53709ad7f993e10638d80cf56
2020-01-09Implements Quantized LSTM op for R.Viet Dang
Also adds support for TENSOR_QUANT8_ASYMM_SIGNED in Test Generator. Bug: 144841609 Bug: 145916330 Test: NeuralNetworksTest_static Change-Id: I14b0d284b1945833d532cbaa33c66e4d77afd8b7
2020-01-03Add quant8 signed generated testsLev Proleev
The tests are written semi-automatically by joining all of the 1.0-1.2 tests with TENSOR_QUANT8_ASYMM operands and converting them to TENSOR_QUANT8_ASYMM_SIGNED. Also: * Fix implementation of CONCATENATION op for zero-sized tensors * Add support for TENSOR_QUANT8_ASYMM_SIGNED in test generator Bug: 136735770 Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest Change-Id: I250dbe85684aa594892494eb53e6312c1cacb6f3
2019-12-12Add TENSOR_QUANT8_ASYMM_SIGNED support for EMBEDDING_LOOKUPLev Proleev
Fix: 143934742 Test: quantization coupling tests in CTS and VTS Change-Id: I3be053e26686d5cd4a497a4e3390d746aedba758
2019-11-29Add TENSOR_INT32 support for ADDSlava Shklyaev
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: Iba4e807f0f32325fdd7c495ddc4bbcb4ea09a765
2019-11-27Expand data type support for CASTSlava Shklyaev
Adds identity casts for most tensor types. Fixes: 143686800 Bug: 139181916 Test: NNT_static Change-Id: I32fab27facb05b9cb5683e5f4e0b646a5c775da5