This project is mirrored from https://review.mlplatform.org/tosa/reference_model.
Pull mirroring updated .
- Jul 29, 2025
-
-
Jeremy Johnson authored
Set up python version and python module dependencies to match README.md for tosa tools. Fix other python modules to particular versions for consistency. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iffaab11f695d34952fdc27028f70ce45dd51faba
-
Jeremy Johnson authored
* Correct unsigned data conversion for RESCALE * Force FP64 values from normal_min for SIN max_compare values Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I3861cf98181e80cf6322f0616001decb2bc3f3cc
-
- Jul 28, 2025
-
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ie53dcdf06fdd246aaea3094afc5611bb8daaa978
-
Added cmake toolchain file Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I3f7aff9af97b68aad218e2940ad7d2ca40ad710f
-
- Jul 21, 2025
-
-
Jeremy Johnson authored
Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I9e121db3303749fff38da4cebf6bb0d11f3cd250
-
- Jul 17, 2025
-
-
Jeremy Johnson authored
Reduce the files sizes of tosa_test_gen.py and tosa_arg_gen.py by moving classes into their own files. Moved OutputShaper to tosa_output_shaper.py from tosa_test_gen.py Moved build_* functions to new TosaBuildGen class in tosa_build_gen.py from tosa_test_gen.py Moved TosaTensorGen to tosa_tensor_gen.py from tosa_arg_gen.py Moved TosaQuantGen to tosa_quant_gen.py from tosa_arg_gen.py Moved TosaTensorValuesGen to tosa_tensor_values_gen.py from tosa_arg_gen.py Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I5c2179905a12acc101ba862f1ea368ac25f259f7
-
- Jul 16, 2025
-
-
Jeremy Johnson authored
Fix ERROR_IF test by adding support for rank 0 output shapes by changing input shape as long as it isn't also rank 0. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I133fb78a7c1163787b104052fac17f699007c01b
-
- Jul 15, 2025
-
-
Philip742 authored
Restrict channel size for ERRORIF_ResizeOutputShapeMismatch to avoid over size tensor Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Iac91b73eeb62f907d4ea007c71f295c49e43e439
-
- Jul 14, 2025
-
-
Jerry Xu authored
Signed-off-by:
Jerry Xu <Jerry.Xu@Arm.com> Change-Id: Ic9ad8e9ecb3b504cef819a113ceecee2a011b3c0
-
Luke Hutton authored
This section adds a comment stating that running operations outside the constraints of level=8k may lead to undefined behaviour. Change-Id: I5f6ea12ecce96ce6d8a1cb7a14de7e0b73c40bb9 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
Enable missing integer special tests for CONST and IDENTITY by adding a new data node test set. Signed-off-by:
Madeleine Dunn <madeleine.dunn@arm.com> Change-Id: I6ba496852ba248549b9eb52f2dd7f08663d2c3f7
-
This commit removes some ambiguity in the README by merging duplicate sections. Signed-off-by:
Luke Hutton <luke.hutton@arm.com> Change-Id: If5eb9e4352b0f98754a8fd64771c807791813ea4
-
- Jul 11, 2025
-
-
Jeremy Johnson authored
Reduce tensor size dimension for rank 6 bool to keep it less than 50MB input file size per input. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I01553f2ba5ac636267331c44322d5deec3d6dfb8
-
- Jul 10, 2025
-
-
Jeremy Johnson authored
Enable easier comparison of generated tests by enforcing Linux line endings on all platforms. Fix possible Windows issues by using replace instead of rename. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ie89dbbf99ea98e5b9acf513b47d14c82e767a842
-
- Jul 09, 2025
-
-
Philip742 authored
Integer special tests Added missing ranks for int8 TILE tests where int8 type was already specified Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I164a466e65c5a3074fe5f984073ac5140b866168
-
- Jul 04, 2025
-
-
Previous code cast to a float32 Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I5de24658b6f02ddb2b933d48c5f37002470640a8
-
Unsigned inputs are now allowed for int8 and int16. These tests make sure they are accepted, as well as a test that checks they are only accepted if the integer width matches. Signed-off-by:
Madeleine Dunn <madeleine.dunn@arm.com> Change-Id: I1c737ecbd215ff4a9e1ff8273ff9904a391bcbbd
-
- Jul 03, 2025
-
-
Update POW conformance to match the new conformance rules that take into consideration the latest LOG and EXP conformance and the fix for subnormals introduced after v1.0. Add PRECOMPUTED verification mode, that takes the bounds passed by the Reference Model to be the pre-computed allowable absolute error. Add unit tests for PRECOMPUTED mode. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I09be3b2dadf7ed9bf7c6c91c64b34c7d4e149868
-
Jeremy Johnson authored
Ensure floating point operation for all RESIZE functionality Change-Id: Iea5cb5e482e3e76a298a4a71ad96a760d9a0ef79 Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
Introduced the following tests: - a sanity test to verify basic model functionality(in memory). - Tests for DType variants to validate behaviour for different data types. - Unit tests generated using tosa_verif_build_tests. Also adding selective test execution for unit tests via pytest markers ('pyb_smoke' and 'pyb_fullsuite'). Sanity and DType tests run by default. To run unit tests, use: pytest -m "pyb_smoke" pytest -m "pyb_fullsuite" Signed-off-by:
Deeptanshu Sekhri <deeptanshu.sekhri@arm.com> Change-Id: I7ae3c25bc76362ac0374b07ba8ef79e154c214fc
-
- Jul 01, 2025
-
-
Peng Sun authored
Introduced a "Versioning" section describing the Calendar Versioning (CalVer) scheme used by the project. Change-Id: Ie7b5634c0bb4c39bde8fc9de53ba53501b7cbf0d Signed-off-by:
Peng Sun <peng.sun@arm.com>
-
- Jun 30, 2025
-
-
Yuvaraj Venkatesh authored
Change-Id: Ia2c8507bc2559738e8011056b7526f7b3f2e16a6 Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com>
-
Jeremy Johnson authored
To support BF16 on Windows correctly, add support for floating point fixed data as well as integer. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iad8f16ccff2df56df3f0f67e41e2fba5ecd149e9
-
Jeremy Johnson authored
Enable long path name support by including manifest file when building dlls and exes on Windows. Update tosa_verif_run_tests: * Use replace instead of rename when moving results files, to mimic behaviour of Linux "mv" on Windows. * Also rework the verify results loop to rename the result files first and then verify them. * Remove expected_result_file support as not allowed in desc.json. Change-Id: I9973f22a62371dafc6de030d886349faf18f276b Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
- Jun 27, 2025
-
-
Ian Tayler Lessa authored
This now correctly computes the ULP bound relative to the maximum absolute input, while previously we were computing it relative to the reference output. Extend the unit test coverage for max resize verification to catch regressions and other bugs in bfloat16 and float16 Refactor a calcAbsErrorBound function matching the spec to use across verification code. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I04b08d5d160258c560dbfde3b70247d76bf3f225
-
Ian Tayler Lessa authored
RELATIVE allows error relative to some fixed 'max' value, i.e. fixed error for all outputs in an operation. Renaming it to MAX_RELATIVE allows us to add a second mode, OUTPUT_RELATIVE, which will allow error relative to each output in an operator. The OUTPUT_RELATIVE mode will be coming as a separate patch. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ia70549c19ec781b1172cb1a2a7fd0da581489ca5
-
- Jun 26, 2025
-
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I57cba4cdcf31e923cf5ef33277a6fb0776920597
-
- Jun 25, 2025
-
-
Jeremy Johnson authored
Fix for reading and correctly checking the test requirements versus the chosen profiles/extensions. Add tests for checking all combinations. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I8991cdacb34701c156a69c58aa549d3cfec73802
-
- Jun 23, 2025
-
-
Note does not cover test commands Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ib1cb340290cf5c663e00185aaaaad68388bb4477
-
- Jun 19, 2025
-
-
Previously we were causing an internal error in allocation instead of signlaling an ERROR in the graph. Also fixes the shape given to the Eigen tensor used to represent shape_t values of rank 0. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Signed-off-by:
Peng Sun <peng.sun@arm.com> Change-Id: I682fe0360b002b04af7b08e590d4f1acb4850d5c
-
- Introduced a new typedef: registration_callback_v2_t, which uses const char* instead of std::string for domain and operator names. - Updated MasterRegistry::register_function to include a deprecated overload that forwards std::string parameters to the new const char* version. - Updated loadSharedLibs() to support both v2 and legacy v1 custom operator libraries. It attempts to resolve the v2 interface first, and falls back to v1 if necessary. Change-Id: I9c0d7b768c1b9be5daeaf9617c6fd46000a32758 Signed-off-by:
Peng Sun <peng.sun@arm.com>
-
Jeremy Johnson authored
Use distrubution classes to make random number generation behave the same on Windows and Linux Added generate unit test to check if values match on a given platform Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ibf5a452e12326cf4ca5194c7ab83a9e1bdb1ee66
-
- Jun 18, 2025
-
-
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: Ia29ed6c2f0cc41061c58997de1f5487c900196e4
-
- Jun 17, 2025
-
-
Philip742 authored
Signed-off-by:
Philip Wilkinson <philip.wilkinson@arm.com> Change-Id: I3d54dfa61186a00aaee4d548041dbdac1d509788
-
- Jun 16, 2025
-
-
- Implement ewise unary operator tests covering floating-point edge cases - Covers ABS, FLOOR and CEIL - Adjust ABS operator implementation to correctly handle sign of zero inputs. - Register new elementwise unary op test file (ewise_unary_tests.cpp) in CMakeLists. Signed-off-by:
Jerry Zhao <Jerry.Zhao@arm.com> Signed-off-by:
Ian Tayler Lessa <Ian.TaylerLessa@arm.com> Change-Id: I03a74877afd195125dcca03dce6cd0903c8a142e
-
- Jun 13, 2025
-
-
Peng Sun authored
- Apply element-wise `max(abs(x), normal_min)` to handle subnormal values and ensure numerical stability in bounds mode. - Updated ops: CONV2D, CONV3D, DEPTHWISE_CONV2D, MATMUL, TRANSPOSE_CONV2D, FFT2D, RFFT2D, AVG_POOL2D Co-authored-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Signed-off-by:
Peng Sun <peng.sun@arm.com> Change-Id: I5a2c3a44be647c5acb08d67e045af8250f9380bc
-
- Jun 11, 2025
-
-
Jeremy Johnson authored
* Paths unsupported in load library for python 3.9 * RESCALE min/max calculations not promoted to int64 * Utils product() calculation also not promoted to large enough storage * Fixed color printing output * Made conformance generator build ops in sorted order for consistence * Updated default model file locations and tool help messages * Fixed TransposePermsOutputShapeMismatch ERROR_IF Change-Id: I18cfa49e7016ee5a5453b5669c39e587175a15f5 Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com>
-
- Previously, SYSTEM was incorrectly applied to normal includes as well - Adjusted CMake to restrict SYSTEM usage to external dependencies (e.g., FlatBuffers) Signed-off-by:
Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com> Change-Id: If484b7fb8a708d571b47fb1f17c456d3e6e9849f
-
- Jun 10, 2025
-
-
Jeremy Johnson authored
Only produce any CPP files in lazy data gen mode. Signed-off-by:
Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I32e25eb078722e16e2d2d3c2b5f7eb84290f695d
-
- Jun 09, 2025
-
-
- Replace all instances of half_float::half with ct::float16 - Remove some special code in fpTrunc for handling bfloat16 as cfloat.h can do that special handling now - Update serialization_lib submodule - Update unit tests to match new serialization_lib version Signed-off-by:
Eirene Vlassi Pandi <eirene.vlassipandi@arm.com> Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I6374f2712e943a756322940eea753b7c2f57f943
-