This project is mirrored from https://review.mlplatform.org/tosa/tosa_mlir_translator.
Pull mirroring updated .
- May 13, 2025
-
-
Won Jong Jeon authored
Add information on how to build a standalone MLIR Optimizer Driver and run unit tests. Update the versions of the tested prerequisites. Signed-off-by:
Won Jeon <won.jeon@arm.com> Change-Id: I23503d653aaa1444697324aa7114803a72f96fa9
-
- May 09, 2025
-
-
Also add a lit test to check that the nan_mode is recovered correctly Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Ie4a70095d733c0b71ed8bf24da9ea7f73a83bd59
-
Also change COND_IF IR format back to generic form in lit test. Since ERROR_IF checks are added in MLIR COND_IF op verifier. The existing simplified form is not supported anymore. Change-Id: If0a303303ac48af63f016eed833fdcf9dd4aaeb9 Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
- May 01, 2025
-
-
Michael Platings authored
With these changes it's no longer necessary for a user to make changes to their PATH before they can run the tests. The lit configuration handles it automatically. Also remove unnecessary and potentially incorrect settings from the lit configuration. Change-Id: Ibe032b0abc2c49709226535bbc0737069b80bb0d
-
- Apr 17, 2025
-
-
Tai Ly authored
Refactor to avoid .cast, .dyn_cast, .isa deprecated functions Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I1432be64a0888ab296a8d8acd8320f22b68cc1ec
-
- Apr 03, 2025
-
-
Michael Platings authored
1. Don't assume that the build directory is in the source dir. 2. Get include dirs automatically by adding a target dependency. Signed-off-by:
Michael Platings <michael.platings@arm.com> Change-Id: If6f9ff8eed45ebea977d01e79df9f0992adccd87
-
- Apr 02, 2025
-
-
Tai Ly authored
serialize uint8 as INT8 (already does not serialize uint16) remove DType.UINT8 and UINT16 from deserialization Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I03494e8b50773c7c55e98de9419805c42abba865
-
- Mar 31, 2025
-
-
Jerry-Ge authored
* Removed std::memcpy Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Ie1e12ff7f9d4fe047cae05d46afd7b7b706cff42
-
Tai Ly authored
Removes Yield Op from tosa serialization lib operators Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Icc5b3caade6287eda2b95a9f79f59765fd851e42
-
- Mar 11, 2025
-
-
Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Id6e303082f111b8478358bab99a538110164efd0
-
- Feb 20, 2025
-
-
TatWai Chong authored
tosa-opt is not always needed from typical projects such as torch-mlir. Set MLIR_TOSA_OPT=ON explicitly to CMake to build tosa-opt and enable lit testing. Change-Id: Ic9425a1c8cf598018b34dd5b81ad1040ae1c1183 Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
Fixes some issues with markdown rendering and adjusts the installation commands to make sure executables are on the users path and reduce duplication of paths using `TRANSLATOR_BUILD` and `LLVM_BUILD`. Change-Id: Ifdaffe8235e27ea6d9fbfb146afc897ecd4c1acf Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Feb 13, 2025
-
-
Luke Hutton authored
This commit changes the zero point attribute to an input to align with the 1.0 spec. Change-Id: Ida2958d5f5f7fe69d89dbe550b5db32fd79692a0 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Feb 11, 2025
-
-
udaya-ranga authored
Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: Ibeec5444a21e1f71a9fd1700bfcfcdc59a3082fa (cherry picked from commit c725f589cea936848c3713e05216fcb7c3c2cfb2)
-
- Feb 10, 2025
-
-
Peng Sun authored
* add LIT test for Rescale Op * update serialization library submodule Change-Id: I8b24d3274df83b36eca27c08c4fe1922a7e96683 Signed-off-by:
Peng Sun <peng.sun@arm.com>
-
- Feb 03, 2025
-
-
Base on the LLVM change: https://github.com/llvm/llvm-project/commit/f4943464d769e2eacd5c54dfaaf0468788abeb84 Should update the isFloat8 API to b.getType<Float*Type>() and llvm::isa<Float8*Type>() Signed-off-by:
Jerry Ge <jerry.ge@arm.com> Change-Id: Idddf40416ea5e16c640ce5b49def48878b323575
-
- Jan 30, 2025
-
-
Tai Ly authored
update lit tests for recent changes in: - rescale (rounding_mode) - negate (zero points) I also added .gitignore to ignore build directory Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I2e5d2e67fdf26dd313be3964acc33c87e64d9321
-
- Jan 27, 2025
-
-
Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: I354a1719c54e828c488378ac1c0c3c980d71ed1e
-
Change-Id: I19114488eeddc54b3bc3a00face9546f5b3efd6c Signed-off-by:
Freddie Liardet <frederick.liardet@arm.com>
-
- Jan 22, 2025
-
-
Luke Hutton authored
This commit changes the zero point attribute to an input to align with the 1.0 spec. Change-Id: I958a52d52ac3fcc74e78c04b0585f01ea170db77
-
- Jan 21, 2025
-
-
Enable serialization of `DenseResourceElementsAttr` that is commonly used for handling large constant data. Signed-off-by:
Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I93c6c27e57797b00fe49cc64b689a367724717cd
-
- Jan 20, 2025
-
-
Luke Hutton authored
Change from double_round boolean to rounding_mode rounding_mode_t enumeration Change-Id: I9213be7fabbebf89734f1fbc981810d090f234ae Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Jan 13, 2025
-
-
Tai Ly authored
This patch adapts tosa_mlir_translator to use the new tosa serialization schema where each op has its own attribute type Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I8c70f4e399c07181f1c5213ff137834b3d08afbf
-
- Jan 10, 2025
-
-
udaya-ranga authored
Signed-off-by:
Udaya Ranga <udaya.ranga@arm.com> Change-Id: Ie3f4337754ebb85a46770558de4e2d8693b149e4
-
- Jan 09, 2025
-
-
Tai Ly authored
When deserializing PadOp, construct a rank-1 scalar value for pad_const input (instead of rank-0) Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I9033fbdd3b1304635ba7acd6ec9b034bbaa1687d
-
- Jan 08, 2025
-
-
Ian Tayler Lessa authored
Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: Iab0c65dc6dab2d63f40d0ecac533b8626742b79d
-
Ian Tayler Lessa authored
Previously we were using isSigned=false which would raise an error on negative values. Also, int4 was being cast to uint8_t, which meant that then it would get implicily zero-extended to uint64_t and representing the wrong number when interpreted as a signed value. Signed-off-by:
Ian Tayler Lessa <ian.taylerlessa@arm.com> Change-Id: I9770d896efe55b5f8fe66a12754d6ed69a3165db
-
- Jan 07, 2025
-
-
Tai Ly authored
This patch adjusts to Transpose operator's perms operand changing to attribute Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I2443099c60642647939a823e68ce27f3a6a873b7
-
- Jan 02, 2025
-
-
Tai Ly authored
This patch adjust tosa_mlir_translator for the renaming of Operator ReduceProd to ReduceProduct Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I3973633ebd3387bfec2681f0e79c1227edf1a88b
-
- Dec 12, 2024
-
-
TatWai Chong authored
Includes CONV2D, CONV3D, DEPTHWISE_CONV2D, and TRANSPOSE_CONV2D. Change-Id: I7835535a4ad28b2736a0d7a0af1ca9f34a44f3b7 Signed-off-by:
TatWai Chong <tatwai.chong@arm.com>
-
- Dec 03, 2024
-
-
Luke Hutton authored
Passing an APInt array helps avoid a failure only observed when building and running in debug mode. This assert checks that the storage data type of the array that has been passed matches expected MLIR type. Change-Id: I2a8418282f47b2ea765c1ee93b47df7d5cb49e52 Signed-off-by:
Luke Hutton <luke.hutton@arm.com>
-
- Nov 15, 2024
-
-
Peng Sun authored
* Removed unused lines and variables * Corrected path to `TosaOps.td` Change-Id: Ibf51adb88c05ad3d88be253bf1978d3cdee2d090 Signed-off-by:
Peng Sun <peng.sun@arm.com>
-
- Nov 13, 2024
-
-
TatWai Chong authored
serialization_lib:@2dd6ff16bb Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: I7f00f7ff1a694a86c5bb929b932bba62d1fd7da3
-
TatWai Chong authored
Include `PROPAGATE` and `IGNORE`. In Tosa v1.0, MAXIMUM, MINIMUM, REDUCE_MAX, REDUCE_MIN, MAX_POOL2D, CLAMP, and ARGMAX support this mode. Signed-off-by:
TatWai Chong <tatwai.chong@arm.com> Change-Id: I7e1f4fb59145d5f18504694e6140e5fb2b45376c
-
- Nov 11, 2024
-
-
Luke Hutton authored
This commit removes some dead code from deserialization. It seems this was removed from the serilaization component independently. Signed-off-by:
Luke Hutton <luke.hutton@arm.com> Change-Id: Id900549e8a8b3c7f4dfcb4e889fd1d1570f8fe1b
-
- Oct 23, 2024
-
-
Tai Ly authored
as part of upstream merge down, the QuantTypes.h has moved Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I3f0376e0ef58063ee94ef06ad860ae11ba4298e8
-
- Oct 21, 2024
-
-
TatWai Chong authored
serialization_lib:@3b378f9442e Change-Id: Ifa9127f492860a32380a5a72016999ab13f7e695
-
- Oct 07, 2024
-
-
Tai Ly authored
input_zp and weight_zp attributes are disallowed for floating point inputs for Conv2d, Conv3d, DepthwiseConv2d and TransposeConv2d the deserialization code previously constructed operators with attributes with default values of 0 for floating point inputs. This patch fixes this by specifying nullptr for input_zp_attr and weight_zp_attr instead. Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: I37a065f9f8093363b34465ccfe9bc1e0fe424ca7
-
- Oct 04, 2024
-
-
MulOp does not have attributes any longer since shift had become an input in 1.0rc0 Change-Id: Ie9f6bb3a2a3646a332994af4096657bb46c7dfed Signed-off-by:
Davide Grohmann <davide.grohmann@arm.com>
-
- Oct 01, 2024
-
-
Tai Ly authored
This patch implements changes required by new serialization_lib api's which use unique_ptr's Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: If3abbcf0be4425b1094c8a7bf0209abcc5c84c57
-