aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-19Remove draft tag from 0.90 serializationv0.90.0v0.90Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ie914b6a0d8a6643cdfa78ead2392bb9b0c37c1f6
2024-03-19Revert "Update version to 0.100.0"Eric Kunze
This reverts commit 8137a4369acefa4c01f08db95a2b1b290e8dd70a. This commit was not meant to be included in the 0.90 branch. Change-Id: Ie6f557a9d6b7c2492eb3c9331bb42883d309434a
2024-03-19Revert "[serialization_lib] Add support for FP8E4M3 and FP8E5M2"Eric Kunze
This reverts commit a029f1f02707f40f6990df53fd4f56684490d58f. This commit was not meant to be included in the 0.90 branch. Change-Id: I5b252f2603a7554efab2b997faaf2b59d62ee3cd
2024-02-08Change backward compatibility for 0.90.0Won Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I437ca381725248e7bb25e7086b7b43c7f1571fb8
2024-02-06[serialization_lib] Add support for FP8E4M3 and FP8E5M2Won Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Ife50592890be020b6c6122581eeb2175c8f331e0
2024-02-02Update version to 0.100.0v0.100a0Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Idd444ceb641993e2ed6b647505979ec9d5def796
2024-01-23Fix serialize() for SHAPE data type and add CONST_SHAPE support for addConst()Won Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I1ffa49f3e5437be6757a6a2788e9de1a2e99a92c
2024-01-12[serialization_lib] Add tosa shape opsTai Ly
Added tosa shape ops to tosa.fbs also added convert I64 to and from U8 for storing const_shape data values Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I1e938dec7398fbcbe5be657dad65cdd61af5b597
2024-01-03Fix compiler warningsEric Kunze
No functional changes Change-Id: I938fecc941b14c065639e27a110ab1feb7c85ba9 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2023-11-21Add Rescale Attribute changesJames Ward
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Ifc5445c7129abb914a6cef952e27fccf47ea6397
2023-11-16[serialization_lib] Add local_bound to tosa_serializer.pyTai Ly
This adds local_bound to python attribute constructors for: ConvAttribute TransposeConvAttribute FFTAttribute RFFTAttribute Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I26ae8d718425e5563e281c44490348361c7d44b4
2023-11-13Add pyproject.toml to enable pip installRob Elliott
Signed-off-by: Rob Elliott <Robert.Elliott@arm.com> Change-Id: Ib052470d183db5a54a4cd26fc5df42e4c1bc5341
2023-11-09Update CustomOp's attribute NamesJerry Ge
- CustomOp's two attribute names have been changed to - domain to domain_name - operator to operator_name Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I382ff2cf98da0487f096938c3693428e91dce386
2023-11-07Allow serialization_lib to use an external flatbuffers targetDavide Grohmann
Before this change the only way to build the serialization_lib was to have the flatbuffers lib pre-built before calling cmake or to allow serialization_lib to build its own flatbuffers library. This commit make sure that you can build serialization_lib as part of the cmake build that builds flatbuffers (not in advance) by checking that flatbuffers is in the TARGET list. In that case it is simply linked by the serialization_lib library. Signed-off-by: Davide Grohmann <davide.grohmann@arm.com> Change-Id: I5a9d5f263ccfb36273977d6e6a2c8083598b0afb
2023-11-01Add support for local_bound attributeEric Kunze
local_bound is used to determine when fast convolution algorithms can be used in implementing the operation. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I9970a2544e90a620f46ac4d3d01cec90a15710a9
2023-09-21Fix deserialization of variable_nameTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I6b3984fb3834d4ea82b38c54e30b0a59b23cef45
2023-09-19Add variable_name to tensorsTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Ia142c8b1a9e0869daefb3eef71100fd0c2a0effc
2023-09-18Fix numpy deprecation warning message for unsigned int conversionWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Icac013d42d88534dd1cd71ddb9f47e633a9b51d4
2023-09-15Update Python table attribute to use int16vecsJerry Ge
Change-Id: Iba6e06e1f40c2f2c2ca753787f0f57bae6e66747 Signed-off-by: Jerry Ge <jerry.ge@arm.com>
2023-09-13Update version tags to 0.90 draftEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I4163390599afbbc93b02e3e72b2fe0f53a0bcf06
2023-09-07Add new signedness attributes to RESCALEEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I96202b90bff833654735a2f2306eb782d202b6e6
2023-09-06Enable backward compatibilityv0.90a0Jerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I572ae70f8d693c89739ab892a31157235700c3f2
2023-08-23Add is_unranked flag to TensorsTai Ly
This adds a bool field, is_unranked to TosaTensor in tosa.fbs to indicate whether a tensor with shape = {} is an unranked tensor or an 0-D tensor. For older tosa files without this field, the default value is false. Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I86950050b522565509863c483cd3a3c1c50f8f69
2023-08-22[Serialization_lib] Support StatefulOps for TOSAJerry Ge
- Add variable in TosaTensor to schema file - Update TosaSerializationTensor regarding variable change - Rename internal zero_pad() and expose interface as ForceAlignTensorData() Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I36fa64eb0802cb5b8d3564ea7233460ef8c9f539
2023-08-21Add assertion message to avoid warning message for C++14Won Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I95e82ac2d7c6e412f6cda0c9ffb2fb94d25af1d2
2023-08-18[fix] explicitly declare template specialization for readFromNpyFileTatWai Chong
Not all compiler/linker can link the typed call side to the desired type of specialized template function without having explicit declaration in the header file. Dtype mismatch will happen during reading numpy file when wrong caller-callee pair linked. Change-Id: If97c2a12d9cb602e08c8c31e828f85577cf002e6 Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
2023-08-15Fix for placeholderFilename being passed to basicBlockRob Elliott
Change-Id: I591accec7cd8499bd793924a4e22eed2454f66ea
2023-08-14Enable passing in custom names for addConstJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I22e73e2aa9fbd54610fed776da9fbd09a4adae25
2023-08-12Add SHAPE data type to TOSA serialization Python codeWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Iebeec3440fe6859e54d0d93de4cf7c704d2bcfe7
2023-08-10Add DIM operator to serialization libraryWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I7c68f94a088e206c99d34d152601cf342bff5541
2023-08-02Simplify overloaded writeToNpyFiles and readFromNpyFilesTatWai Chong
templatize these functions instead to reduce redundant code. Signed-off-by: TatWai Chong <tatwai.chong@arm.com> Change-Id: Ie8b6f7d2b489c3508fea72481ce38f0db6d0c490
2023-07-27Fix error in python serializerEric Kunze
The recent flatbuffers version updated requires a change in the serializer code Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I7f3e28af97cb9bc970811389102a3d5e33850838
2023-07-25Enable const data to be saved as input filesJeremy Johnson
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I2c4cb229356f874bf78cf635f6d69c79278f01f6
2023-07-18Update to use GenTextTai Ly
changed GenerateText to GenText, with reversed return polarity. updated flatbuffer to v23.5.26, and regenerated headers Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I7278dfe9c7b55b9afbe2329e3058b63a1cdce586
2023-07-07Fix strcpy overflowJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I3be64f4e2b7bad57f2c9c0d946434daa5330bf2b
2023-07-05Support reading anydtype into a 32-bit bufferJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: Ic6b43539fcb2d75c5614d3addccd24a06e9f2a31
2023-06-07Add ERF operator to serialization_libWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Idc253e51e7a613cfc0c7da653073a71bf0fcb162
2023-06-07Add u8 array to float conversion checkWon Jeon
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: Idfd668b0ce8f8f587e00ca7b03063ce58d789ac4
2023-06-01Update version to 0.80.0 draftEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ie046531ee1d6a3977760aa3f8013f326e7c071f9
2023-05-25Remove draft tag from 0.70 serialization libraryv0.70.0v0.70Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: If99d07bdad463346da957b6fa16231f818b86728
2023-05-23Change default value for draft versionEric Kunze
Default draft = True means that a TOSA flatbuffer with no value stored for the draft flag is true. Serialized TOSA with draft = False are release versions. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I1304292ef83008a61a2a72e03171d00d5fe13442
2023-05-19Support int16, uint16, int8, uint8 types numpy reader/writer for ↵Jerry Ge
serialization_lib Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I287fcda4e895ecfc35083d6cb02140a251c0deb5
2023-05-18Modify TOSA schema to force version to be writtenEric Kunze
Previously if the values were the default, they would not be written to the file Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ibdf13d3ce672d3e8f062a7853d65a966ab5b0877
2023-05-12Support updating serialized tensor shape for shape inferenceJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I44b9fd37e8890bfec02c647857a43bcb6800da80
2023-05-08Fix empty shaped serialized tensorJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I512181cca1a3b1ed5d9a5435dbf11d7efcdbc2a5
2023-04-06Fix serialize/deserialize bug when there are two or more regionsTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Icd865b03765f672e3aa28ddaf6a290617ec3f530
2023-04-04Add readFromNpyFile and writeToNpyFile for double dataTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Icc023cbe6aa8843cc37d25e740bc6ce05bb7abb2
2023-03-16Update version to 0.70.0 draftEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ie139b262f7bd5966e72a3535ac2253e13d7b3604
2023-03-08Update version number to 0.60 for releasev0.60.0Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I2eb93e6e88ee358c9ec9562c3b4d876eb41cc38c
2023-03-07Put fethrowexcept under HALF_ENABLE_CPP11_NOEXCEPT macroDmitriy Smirnov
Change-Id: I014db667d5be3deb419ef0aa4ab4d69598db607e Signed-off-by: Dmitriy Smirnov <dmitriy.smirnov@arm.com>