This project is mirrored from https://review.mlplatform.org/tosa/reference_model.
Pull mirroring updated .
- Jul 16, 2024
-
-
The "positive - abs error" test failed in some RNG states. An example was when changing the seed of the generator to 10 and running all tests This was because the code did not account for the floating point error of the operations it was performing to find the test values. That was fixed by both reducing the error that is introduced and accounting for it. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ic758be76ef7204633cc7ead84b346879d3f0c459
-
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ifd292decb9fc195ff8d0e86fb76fe5435e13fdf2
-
- Update conformance config json to allow integer and boolean CONST run when testing the MI profile. Signed-off-by:
Justin Ngo <justin.ngo@arm.com> Change-Id: I62413455c6bf8ae640d4ce3cc3e76dd104c31504
-
- Jul 15, 2024
-
-
Justin Ngo authored
- Apply the change in src/ops/ewise_binary.cc - Update framework and conformance tests to reflect the change: + Framework tests modified: left_shift, right_shift + Conformance tests modified: logical_left_shift logical_right_shift cond_if_binary Signed-off-by:
Justin Ngo <justin.ngo@arm.com> Change-Id: Ibc278a25c1810d874fc072edd14bb86f44fa5c2c
-
- Jul 11, 2024
-
-
This implements 2 changes for conformance bounds as a result of spec changes for acc_type for convolution operators. 1. In validateElement(): OLD: fp64_t out_err_bnd = max(out_bnd * exp2(-1-normal_frac<acc_t>()), normal_min<acc_t>()); NEW: fp64_t out_err_bnd = max(out_bnd * exp2(-1-normal_frac<out_t>()), normal_min<out_t>()); 2. In tensorComplianceMetaData: OLD: size_t ksb = (max_value(bias_abs) > 0) ? (KS + 1) : KS; NEW: size ksb = ceil(KS / exp2(normal_frac<acc_t>() - normal_frac<out_t>())) + ((max_value(bias_abs) > 0) ? 1 : 0); Also, adjusted ref model calculations for Conv3d, DepthwiseConv2d, TransposeConv2d to use acc_type to do accumulation of multiplies, cast results to out_type, and then add bias values in out_type. Did not adjust Conv2d calculations because it already does this. Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Ic9f64f4d61120f690f1993cf72669867a6c96edf
-
- Jul 10, 2024
-
-
Ian Tayler Lessa authored
Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ie7b0dd9ba33f0df0bebc3e1fd5c846938f49c0d0
-
- Jul 09, 2024
-
-
Enable stable random, random const and new test selector, and FP special. Always use PSEUDO_RANDOM generator for the 2nd arg. Signed-off-by:
Eirini Vlassi <Pandi<eirini.vlassipandi@arm.com> Change-Id: I61129e3432e0af93e218db5153a771a96a7d7922
-
- Jul 04, 2024
-
-
Jeremy Johnson authored
Extend ADD operator FP Special tests to use random Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ia81967ac6fe546d39b21c1e523a3b8bd53c3b770
-
Ian Tayler Lessa authored
By evacha01 <evan.chandler@arm.com>: Includes FP_SPECIAL mode for many ops, and adds a "broadcastable" attribute to avoid fixing the shapes of operations that don't need it. By iantay01 <ian.taylerlessa@arm.com>: Fixes the comparison of special values to ignore sign of 0 and avoids MIN/MAX float values for operations in which they overflow. Changes a warning that was raised when no `_s0` test existed to instead only warn if _s0` doesn't exist but some `_sN` does. This allows for tests that would not make sense for dot products due to a small sample size in the statistical analysis, but could still be done for fp_special where no statistical analysis is performed. Changes the padding value in OpMaxPool2d from `-max` to `-inf` in floating point types. In the future, a more thorough check of other uses of `-max` and `+max` in place of `-inf` and `+inf` should be performed. Implements a `DtypeLimits` template struct similar to `std::numeric_limits` to support the proper limits for the floating point types we have as dtypes but have not implemented as a C++ type in the reference model yet. Re-implements max_pool2d and argmax by hand to circumvent bug in Eigen's argmax that was failing to recognize `-max` as the maximum value in an axis with otherwise only `-inf`. Co-authored-by:
evacha01 <evan.chandler@arm.com> Signed-off-by:
IanTayler <ian.taylerlessa@arm.com> Change-Id: I429aea90a962d9ff2fd2eb45cc9d6c8f5bf702ec
-
- Jul 02, 2024
-
-
Stop duplicate tests being created for SLICE Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I14b1ada76e66b7031d99d6cd9a9b15e6a92ef457
-
udaya-ranga authored
* Remove "bf16" from MI test group of CONST op * Add "tosa-mi" under "selection" section for IDENTITY op Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: I402a1e3f67425911c5cfc15cb1135baaca80ce36
-
- Jul 01, 2024
-
-
Broadcasting is not supported by FP special tests as this effects the values tested. This changes the code so that the shape list updates are seen by the calling generation functions, and adds sanity checks to the data generation to enforce this. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ia136ebadc1e03c4c61da44fdff3e7dbc3b03e3c8
-
- Jun 28, 2024
-
-
Change-Id: Id228d0ce58857276b5735994b4b97d2e62dea85e
-
- Jun 26, 2024
-
-
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: Ic339a2fa72a6ee97cc2652665819c46108bf6ca3
-
Update the usage of --tosa-input-shape command line argument after the enablement of multiple argument support Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Ib2878bc4975b3ec7cb79d3488e51e8c68393eb7e
-
- Jun 25, 2024
-
-
Tai Ly authored
If tf/tfl results are unsigned, then recast ref model results to the same data type as tf/tfl results before comparison This change allows tosa to use signless integers when stripping out quantized data types Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I328af946140e1a9f45ce5d3b93145d64a8e0780f
-
- Jun 24, 2024
-
-
Jerry-Ge authored
Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Ie729c68a334431d89abb021125dc77819329eb4c
-
Jerry-Ge authored
Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: I38d350a3ad94441a6da285ce0ca322245d94466b
-
- Jun 20, 2024
-
-
Tai Ly authored
change to use serialization_lib version where ResizeAttribute have deprecated scale/offset/border fields Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I8ecb71f274a63456ba57fb3a8fa2e270543fae4f
-
- Jun 18, 2024
-
-
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: I8ddbe653c5ee1a3a9e1dda958ebb6a7f27c06570
-
Won Jong Jeon authored
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: Ibb3d495ff8da0da415ec99879e520e162a7f3506
-
- Jun 17, 2024
-
-
Allow infinities in dot product operations when the reference value would be very close to overflowing if cast to the accuracy type. Change-Id: I7a6a6782bd97c732f8dcfad09d8fcb5c11da3ed1 Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com>
-
- Jun 13, 2024
-
-
Tai Ly authored
Changed rescale eval to sign extend input_val for i8/i16/i32/i48 data types in case inputs come from unsigned rescale outputs Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I8935c9b0069c7a1c84adcac0442db7554773ed92
-
- Jun 12, 2024
-
-
Jeremy Johnson authored
Due to various code changes: * Update dot product values after "Update reference generator test set calculation" * Update FP special values after "Add FP Special FP32 UNARY tests" Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I48e7e3909794ec62530efd8a6d07f766154f33c8
-
Jeremy Johnson authored
Remove extraneous generator argument directives and re-order alphabetically. Fix conformance generation of negative tests to cope with new argument format (and old format). Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I98ee7007c30d9086ef11df515f3be972e7a83395
-
Ian Tayler Lessa authored
This includes both respecting the local_bound attribute in the reference model and generating tests with local_bound=True and local_bound=False for floating point types. For non-floating point types, we always set it to False. Signed-off-by:
IanTayler <ian.taylerlessa@arm.com> Change-Id: Ifa47b6df31b9142835f48da00b595b89c7082734
-
Ian Tayler Lessa authored
Previously the padding was only fixed for conv2d. This was not creating a problem with the used seed (42) but it already failed to create some tests with other seeds and if the rng state was changed by adding code using it. This is only a problem for ERROR_IF tests that often only search for parameters in a very small parameter space. Fixing up the padding for ERROR_IF tests made it so that we generated too many tests for depthwise_conv2d. To counteract that, the selection settings were changed to mimic the behaviour of conv2d --which doesn't have this problem-- more closely. Signed-off-by:
IanTayler <ian.taylerlessa@arm.com> Change-Id: I4ebf9538c3e3006d7172a1a70e8cb0f0b5e703cf
-
- Jun 10, 2024
-
-
Jeremy Johnson authored
Enable support for fixed_data tensors for all data generator types Fix Full/FP Special test generation for multi permutation tests Add FP Special tests, missing ranks (5 & 6), random const inputs and some prime shapes to testing. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I71a0bccea2a05f479a3bd08303cabae49bffa038
-
- Jun 06, 2024
-
-
Tai Ly authored
Stack arg axis used to have range 0 to rank(input) inclusive This patch extends this range to be from -rank(input)-1 to rank(input) inclusive, to test legalization of Stack with negative axis values Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Iacb6be2d5e91afc428be5bfa3dff97572b9c845c
-
Jeremy Johnson authored
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I98a33e91121d0cf84954da947abc07935413c67c
-
Jeremy Johnson authored
Update testing to include upto rank 6 testing for floating point. Update default test values to include +/- minimum denorm and +- 1 for UNARY use cases. Update SIN/COS testing to use generator test selector, stable random and random const generation options. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I71b8e98bd4853a521a8c3b0e11a06a8b94e76d6c
-
- Jun 03, 2024
-
-
Jerry-Ge authored
- The existing result_name for constant_net is "result" which doesn't work for the dynamic_batch_to_space tf test case - Manually specify the result_name for dynamic_batch_to_space Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Id028d315d37820f33be1542d7fcacf8a655c5ac8
-
- May 29, 2024
-
-
Jeremy Johnson authored
Make sure there is one FP Special or Full range test per op per data type Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I234cf1a56ee294039a7486bd76885d130b399a76
-
- May 28, 2024
-
-
TatWai Chong authored
also add testing support for table parameter as input. Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: Ie4f6d3cf0b68803fa3353cfa0e9f7f38a83b1539
-
- May 22, 2024
-
-
Leandro Nunes authored
Adjust test_run_command_fail_with_stderr to test with `cat` rather than `ls`, as `ls` will return different error codes on linux(2) and macOS(1), and `cat` will provide same error code under both platforms. Change-Id: I7b178b8da5446e6610b0d5ecded82100be6963c7
-
- May 17, 2024
-
-
Won Jong Jeon authored
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: I1498313f56626011d39f765fed71f82be53b3d8d
-
Won Jong Jeon authored
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: I74f9ac096e5030a86bd7c1ffff542d9061b09ab4
-
- May 13, 2024
-
-
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I651ef963b6c14da58dc4cecd8bf4da8fe1a38417
-
- May 01, 2024
-
-
Jeremy Johnson authored
Change FP_SPECIAL testing to be used for DOT_PRODUCT cases only. Use default EXACT matching - where zeroes of different signs will be ignored when testing for equality Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I0461c42258611cae597f693507075b3ef15fbe19
-
- Apr 30, 2024
-
-
Tai Ly authored
also fixed traceback.format_exception calls to fix hang of framework testing due to failing tests. Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Ic943aec7981a71dc8f9c898a16ac3f408f07a370
-