This project is mirrored from https://review.mlplatform.org/tosa/reference_model.
Pull mirroring updated .
- Apr 16, 2025
-
-
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
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I54a08a14c5d229ba8affc41bdef0a99d34889a9d
-
Not portable Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ie847772de825e43b7244579534356f2ce6e1ef89
-
Jeremy Johnson authored
openssf warning fixes incorrectly changed nextafter function for ULPMax value. Added extra unit tests to catch FP16/FP32 changes in future. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I883d97ce1c71ae08226fe36ba545b391cb041b49
-
- Apr 01, 2025
-
-
Jerry-Ge authored
Refactored: * std::memcpy to std::copy_n * snprintf usages to C++ std::string Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: I6ebeea6d1be86e35d44e949d47bbfa01c51f8c8d
-
- Mar 31, 2025
-
-
Change-Id: If8b8a38bfe99cc0d4d7bca79f3df87c36f06ddb2 Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
Tai Ly authored
This updates serialization_lib githash to the version that removed Yield Op and Yield attribute Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I9e31e24ca93648e351f3a52604e2dce0492c1382
-
- Mar 28, 2025
-
-
The current version of the specification only allows output zero points to be subtracted as integers, so the FP32 implementation was updated to reflect that. The error bound was fixed to now use the output before the zero point is added to compute the error scale. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I5d2834b22180137880ffa905567ff1722d61c060
-
- Mar 27, 2025
-
-
The allocation was done to infer acc_type which can be inferred from the given parameter. Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: I41f1ec875172e6d0b69291dbeea6d25abcbce44e
-
Jeremy Johnson authored
Add ConvBiasShapeMismatch test to CONVOLUTION ops Add ConcatNoInputList test to CONCAT Re-enable StartSmallerZero, SizeSmallerEqualZero for SLICE Add TileMultiplesOutputShapeMismatch test to TILE Change to TransposePermsOutputShapeMismatch test to improve TRANSPOSE Add RescalePerChannelRank0 test to RESCALE Fix up RESCALE ERROR_IF tests to be generated without relying on any unecessary extensions. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I6a25881ffeb606dbf568cc017a8caa3736e04de1
-
Yuvaraj Venkatesh authored
Change-Id: I11e66b8fd7a3681118cfbc372df30d7c523d4c1d Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
- Mar 26, 2025
-
-
Peng Sun authored
Signed-off-by:
Peng Sun <peng.sun@arm.com> Change-Id: I7cb0294f619d41cdcee3737848ce87fd8401ed41
-
- Mar 25, 2025
-
-
Affects NEGATE, RESCALE, AVG_POOL2D, MAX_POOL2D. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I5257b110f79f2fcd0423d140b3adee9034f036d5
-
- Mar 24, 2025
-
-
Yuvaraj Venkatesh authored
Change-Id: I744b66726850bb289a57c18b6a70224b9f71ffe5 Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
Jeremy Johnson authored
RESCALE with rounding mode of INEXACT_ROUND in ref model precise mode when running a compliance test will return the minimum allowed integer, and will also produce a bounds file with the maximum allowed integer value so that compliance can be performed using these two values as the range for the implementation. Refactor RESCALE op to use common lambda function and fix scaling checks. Fix misspelling of Verfier in tosa_verify. Rename abs_mode to bounds_mode in ref model. Remove big endian flag from ref model internal config. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I1ed22c4fbb0215ff5564db6e300e7c77dd405164
-
- Mar 20, 2025
-
-
Jeremy Johnson authored
Make the test_requirements lists always be in the same order so there are no unnecessary differences when generating the tests. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iadaa8c440b0e528a3bf11d5bdf49e01f9093540a
-
- Mar 19, 2025
-
-
Yuvaraj Venkatesh authored
- Added __attribute__((format(printf, ...)) to func_debug_warning() to enable compile-time format string checking. - Added explicit type casts (static_cast<uint32_t>, static_cast<size_t>, etc.) to resolve implicit conversions. - Ensured proper type usage in loop variables and arithmetic calculations. Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com> Change-Id: I6c99c148c4332ba02b855fe46e1c3e4cbeddfea9
-
- Mar 18, 2025
-
-
To build the pybindings to the reference model use BUILD_PYBIND=1 pip install . Signed-off-by:
Per Åstrand <per.astrand@arm.com> Change-Id: I2edc3fcfaef8ad5287224e2b49c01e52f010de30
-
Re-enable support for building on MacOS by using dlfcn for shared libraries. Signed-off-by:
Per Åstrand <per.astrand@arm.com> Change-Id: I31de79238fc5b1fe4c8b74785df174e9cfbe92b3
-
Jeremy Johnson authored
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I5b5d4026f2ff7b940d05e55eb0cf5d5b6aa235f3
-
- Mar 17, 2025
-
-
Reduce excessive build time for Release Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I966632329eb6461f27120d6c919715f92fa55f99
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I6f62b2b0cf3c2717d6b0809310039e3f0c6f70f9
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ifb1a65fc44a256931008a363c1ba8f032feb83fd
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I6e299f8110646d28ee2adb82139b334287c03fb2
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I316a072c3cf6cb5bb083aa1bcc9206f3fa27c33c
-