This project is mirrored from https://review.mlplatform.org/tosa/reference_model.
Pull mirroring updated .
- May 14, 2025
-
-
TatWai Chong authored
- update the version of tools and packages - add high-level featue description - create verif/README.md to introduce detailed CTS information Change-Id: Id80810a700ddf8040954857813cce7464700f45b Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
Jeremy Johnson authored
Enable build tests to run in multi-processing mode Refactor main loop of tosa_verify_conformance_generator Improve logging for multiprocessing jobs Change to use concurrent.futures from multiprocessing Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I3b556a2d240acce4ff0e9faa8e815eba95489953
-
Yuvaraj Venkatesh authored
- Updated dumpTensor to use std::ostringstream instead of dynamic format strings with fprintf. - Parsed g_func_config.fp_format (e.g., "0.5") into width and precision using istringstream. - Applied std::fixed, std::setw, and std::setprecision to format the floating-point value safely and consistently. - Fixed few other openssf warnings. - Refactor dumpTensor function call. Change-Id: I8ccbab5ae4afa38803fc053ba5f423840aba50ce Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
- May 13, 2025
-
-
Jeremy Johnson authored
To include: * Allow adding placeholders without data * Set warnings as errors * Generate strict json by default when serializing * Avoid supplying unsupported linker flags * Use portable type with random engine Change-Id: I5c04f85dc6608fb955bd84f5f7c5a1a3a7ef57b6 Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
- May 12, 2025
-
-
Philip742 authored
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I135a43eb81592ac57f9f137117d003776b256775
-
- May 08, 2025
-
-
This target was incorrectly using the `-z nodlopen` linker option. Change-Id: Ie111c7ac968b707eb1d23aa81117ac1895209314 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
This commit aims to fix the MacOS build of the reference model by, more generally, ensuring unsupported linker flags are not supplied to the selected linker. Note: The "check_linker_flag" utility is used by this change which requires cmake >= 3.18, therefore, the minimum supported cmake version in this project has been bumped from 3.16 to 3.18. Change-Id: I17b1c176d328088554c231539ddfe3b057914547 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- May 06, 2025
-
-
Luke Hutton authored
This commit aims to reduce duplication by moving constants that are commonly defined across the code-base into a conventient 'config.h' header, that can be included wherever needed. Change-Id: Ibcf6979c37e0e664c9d9604116fa41d7619e5e43 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
Luke Hutton authored
Previously we were drifting between LP64’s default (long) and a hand-exported int64_t, which led to ABI/template mismatches (“Eigen::Index == long” vs “int64_t”). This commit changes eigen's default index type to int64_t to align with the reference models's usage of eigen. Change-Id: If88a6b137011c942044b6516e5a030e2db4bb92f Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- May 02, 2025
-
-
Eirene Vlassi Pandi authored
Signed-off-by:
Eirene Vlassi Pandi <eirene.vlassipandi@arm.com> Change-Id: I6b5f1003f657326a33a0ee743c1bdc2e7cf4b89a
-
Fix library load Set compatible preprocessor Export lib entry function Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I64df73653b920cf614575519fed8fcf33e7839ea
-
- Added documentation on load_npy and save_npy behavior. - Included usage examples showing support for both string and DType inputs. Signed-off-by:
Eirene Vlassi Pandi <eirene.vlassipandi@arm.com> Change-Id: I84ec2fd385109857633e8da3eaddea03acab9d16
-
- May 01, 2025
-
-
FP_SPECIAL and RESCALE_INEXACT modes now fail with reasonable error messages when no bounds file is provided. This follows the existing behaviour of DOT_PRODUCT and ABS_ERROR. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ib5133bd6b5c1f7994d7da1f7d41f71065aa0f0d3
-
This improves the FetchContent cache which avoids some build issues when changing branches and fixes builds for aarch64. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I2fbbf7ad041e32ad001bcf1eaddaa95ba15ca1a2
-
Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: I040377af437d3ab6546416867b0a4ef746e95918
-
-fcf-protection=full is not compatible with aarch64 targets and -D_FORTIFY_SOURCE=3 was introduced in GCC 12, while we need to support older versions too. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I52f70bbbbf532672aae26b670b6f1ee8d0ebc90c
-
- Apr 30, 2025
-
-
Update the bounds calculations to account for floating point rounding when summing the output zero points in rescale. Also add some unit tests for inexact rescale in the output_unsigned case because the "signless" input value could easily be interpreted incorrectly when converting to floating point. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ia2b1fba90162b78772ce15c2f4fc3a521967b4b4
-
- Apr 29, 2025
-
-
Ian Tayler Lessa authored
The comment was not properly updated in the TANH and POW conformance update patch Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ic631003b80cf7fa9a96b7da2f56753ea230cb790
-
This matches a recent specification change. Also adds some tests for the base_bound value in ABS_ERROR compliance which is used for these new conformance rules. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I47dee0cf531077bb8465d48a7fd24941f4d05b7a
-
SIN max_compare was not being set correctly which would set the wrong error bound for small values. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I942c18c8e87b537e8b6359975332b58e8f5ff41c
-
Yuvaraj Venkatesh authored
Change-Id: I2dce52162184291fea1342b0d97301f4d5556f92 Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
- Apr 28, 2025
-
-
Jeremy Johnson authored
Make tosa_verif_* tools assume they are in the ref_model repo with a local build directory. Update README with profile info, and updated commands to match assumption of local build directory. Add pytests for model file locations util. Fix paths for non-build items with build_sub_dirs. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I70cbcb64423b6782650166507016500268a2496d
-
Jeremy Johnson authored
And conformance generated folders. And generated test numpy files. Change-Id: I98b13d73d391e314744ea00cc35b61716c73a7d6 Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
OpRescale::checkTensorAttributes was missing checks related to the relationship between the size of multiplier and shift arrays and the value of the per_channel attribute. This patch adds those checks and adds some tests to catch regressions in the future. Some cleanup of the ERROR_IF code was also done with no expected change in behaviour. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I0b7a071af61c84fb733600a9f71f5ab7b1d754fc
-
- Apr 25, 2025
-
-
Michael Platings authored
cxxopts 2 is incompatible with CMake 4 so upgrade to 3.2.1 The latest version of doctest is still incompatible with CMake 4 so patch the sources to make it compatible. The patch command used is not pretty but it's pure CMake so doesn't rely on any other tools being installed. Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: I563d93004f73ef0e1cf7de740e7159c4aeaea1dc
-
- Apr 24, 2025
-
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Icef432f4936ebe7059db198e409edc94f1736820
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I85be7929d50772f6d5ee98c34fda98aa55912585
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I560983fadd10c25e748df34b8a3d7a7c2829ad93
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I0214f9d5f3ec9c2f8d9fc8700c96d0c67c07f1fb
-
- Apr 23, 2025
-
-
Peng Sun authored
* Templatize Dtype to handle both InDtype and OutDtype as needed * move value_extend64 lambda as templated function * add unit test Signed-off-by:
Peng Sun <peng.sun@arm.com> Change-Id: Ic482391efff1675744738880a495d19827817a59
-
Platform specific file names and paths Delete destination file before rename Use shell to find Python interpreter in test case Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Iec19b1533fa2bf1b982bdf0d250f438e57c48402
-
- Apr 22, 2025
-
-
Jeremy Johnson authored
Change-Id: I6b8923b2047982190f71772f5d3ee8f35f450e8a Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
Jeremy Johnson authored
Add batch tests to CONV2D, CONV3D, DEPTHWISE_CONV2D, TRANSPOSE_CONV2D Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ie9d3773ed41c03261152c7d187e22cf463091c0f
-
Jeremy Johnson authored
Remove exptected_return_code & expected_result_files from desc.json Clean up readme about desc.json Add "terminate_early" to desc.json schema and add override warning Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ib7f4c5365ccf58b3c6d1c7e11c4af6817931e6a2
-
Philip742 authored
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Id02aead904bcd3cf8f920c7129bb0e6c4154a141
-
- Apr 16, 2025
-
-
Jeremy Johnson authored
Loosen EXP compliance to have bounds calculated as: * FP32: 3 + 2*abs(a) * FP16/BF16: 1 + 2*abs(a) Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I921ce8630c5f113de9b2c4a39623337b7c0cc5a4
-
Updated to use new flatc build instruction and location Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: I2958db32fec4070508dc61ee85decffee586be6f
-
This makes it possible to determine whether a bounds file should be passed to `tosa_verify` without knowledge of the details for how different compliance modes work. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I3d7bac764ce13f636c7f82ce4a4aa595d82fb79c
-
- Apr 15, 2025
-
-
Jeremy Johnson authored
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ic5f1fdebce54cfc246db5297776024df24e2fa89
-
- Apr 14, 2025
-
-
Jeremy Johnson authored
Remove global random number test generation as not needed anymore, now that all tests have migrated to the new RNG. Fix concat pytest that broke due to removing global random number gen. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I95646ea799c07034cb730fa7be01392320c09044
-