This project is mirrored from https://review.mlplatform.org/tosa/reference_model.
Pull mirroring updated .
- 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
-
Jeremy Johnson authored
Enable lazy_data_gen mode support for all CTS tests in tosa_verif_conformance_generator Add support for reading SHAPEs of [0] in ref model. Change datagenerator to use serialization_lib save_npy to write out data files in correct format. Fix SHAPE to be output as int64 numpy format. Clean up unused data generator functions in tosa_verif_build_tests Add datagenerator tests for numpy format output. Merge test_datagenerator.py tests into test_tosa_datagenerator.py Disable cond_if_const test generation is lazy_data_gen is requested as the work-around for loading const data late does not work with these tests - some proper functionality to support lazy data gen is needed. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I9e18c960fbd636463ddf9e0bc2bf6f2ac9a760f5
-
Jeremy Johnson authored
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I62eee00683873a589393ef0bf413663a1a28042d
-
- Apr 10, 2025
-
-
Previously the error message reported the compute type internal to the reference model as not matching, but the relevant dtype is the serialization storage dtype. These two match in all cases except the --precise_mode=1 reference model with floating point dtype. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I08e1e2cf5fa95b242d870af9364e635dda254c0e
-
MSVC build showed up a problem in unit tests. Correct hardcoded ulpmax value for float, not double, and use nextafter function belonging to type. Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: If998abdff49a7b3b1098a7d82d98ce6c3e158591
-
Coverity identified that without initialization, `TOSAREF_TENSOR_ALLOCATE(1, float)` can potentially be problematic and use stale data Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: Ib7b3391ae5f33fcbce9fb3d98198e6adce9b44fc
-
- Apr 08, 2025
-
-
Won Jong Jeon authored
Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: If81c415059c98f1f58be70a41d9c7cc02edd3e62
-
- Apr 03, 2025
-
-
Michael Platings authored
Instead use CMake's FetchContent feature. Git submodules have many well-documented pain points. A similar change has previously been attempted but was reverted by revision 2d87391f because FetchContent's git-clone was found to occasionally fail for no discernable reason. The difference with this change is that it downloads source archives instead of cloning Git repos. This is believed to cause less load and therefore reduce the likelihood of getting rate-limited. Should failures start to occur again then the sources should be pre-downloaded and FETCHCONTENT_SOURCE_DIR_<uppercaseName> CMake variables should be used to point at them. Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: I12873b540b3fccece6e1e6bb885d574a586f0307
-
- Apr 02, 2025
-
-
Tai Ly authored
This patch removes references to DType_UINT8 and DType_UINT16 Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Ia53def0c78f7fb17a1c32e110ee05fa7b0aa577b
-
Large object files required to build Multi threaded for speed Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I46a93f00a2532ba9c721f183eb0f5ca8839050fc
-
Avoids multiple definition link error with MSVC Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I100daa4578b47890c7bfabf4808fab493dbdad8c
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I1ea1306a25bbc4834271983375a91e9f3d6528a1
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Id764133242413c36966c4b82822fa20617965332
-