aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2023-02-27deserialization bug fixTai Ly
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: Ib53f093ce6ae72974193057f7c46edd784753e11
2023-01-27Remove zero pad from float attrribute serializationJames Ward
* For Clamp/Pad float attributes * Necessary for the outputs from Python and C++ code to be consistent Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I41530aa1805968becd861e4dee190a88d1973cec
2023-01-23Remove accumulator attributes from all but AVG_POOL2DJames Ward
* Also add missing CustomAttribute.py (flatbuffers generated file) Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Ib71847e03d622995dd86afcb6ec9ed2bc147ee7a
2023-01-18Schema changes for CLAMP, PAD float attributesJames Ward
* Float attributes now serialized as uint8 vectors, but treated as floats at input/output to serialization Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I417b0fabe0ef11fea263fe937b57d49bbfdb00da
2023-01-13Add FFT2d and RFFT2d serialization supportLuke Hutton
Signed-off-by: Luke Hutton <luke.hutton@arm.com> Change-Id: I79b3684ae1cf24e71ec7098ed7db5be5bc2f6fb2
2023-01-11Allow test generators to directly add basicBlocks through the serializerJerry Ge
+ Fixed a writeJson bug, only add input/outputs tensors from main block Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I2790c2ee47b2ca2a1d8730f846061e31fc0c39f6
2023-01-10Remove redundent code after flatbuffers 2.0 updateJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: Ifb249836f8774e0797fd6650442c55da8a084a17
2023-01-09Add TosaSerializerRegion to python version of serialization_libJerry Ge
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: Ibd15f21aa24168730c904224f08fd55e27aae41f
2023-01-04Add attributes to serialization of custom opEric Kunze
Change-Id: I4a1d7675b247efcf34aadd59eac17b966e3705af Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2023-01-04Remove serialization testEric Kunze
Too simple, did not provide much testing value Change-Id: I35b388ebae8d43d901781f4eefa20c6b83b96456
2022-12-15[region] Add TosaSerializationRegion to serialization_libJerry Ge
- Rationale: add this fix to support constants access between multiple blocks by another layer of abstraction called Region - Changes: - flatbuffers schema update, regenerate header files - add TosaSerializationRegion for the handler - other relevant fixes Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I4bb72503abfd629ae017d2f905184efbab244aa8
2022-12-07Update revision to 0.51.0 draftEric Kunze
Change-Id: I6adfd59be1799fc004c9051daa409c902bc4bd1d
2022-12-06Update serialization lib version to 0.50.0v0.50.0v0.50Eric Kunze
In preparation for release Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I58337a835b2afa47f80f27e4a0ebc70836a544ab
2022-12-06Update pre-commit flake8 to new locationEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I9b6af85f27ea0e5618e2537b03ec956939d31fed
2022-10-26BF16 support in TOSA serializationJames Ward
Change-Id: I98072019e3dbbf1eab0bc95f74a4546ed82519db Signed-off-by: James Ward <james.ward@arm.com>
2022-10-04Rename FLOAT type to FP32Jeremy Johnson
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I2cd6ae85f59fd62a62b7f03ae9667228b54e82db
2022-10-04FP16 support in serializationJames Ward
* Allow serialization of fp16 data * Add package to support integrated half data-type (half_float::half), independent of native float: http://half.sourceforge.net/ * Allow passing of accumulate data-type in serialization Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I54357f02e3776d81958228f699ea5044f2014f4b
2022-09-15Fix for CONST floats always truncated to integer values.Jeremy Johnson
Add way of saving CONSTs to numpy file for testing purposes. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ic3a22da8ec3432037832374090b7ceff345d48de
2022-09-13Update serialization lib to flatbuffers 2.0.6Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I64ac03a2fa8711c2050efd5fedbc34a4c2a67bd5
2022-09-08Increment revision to 0.41 draftEric Kunze
Change-Id: I34cc007cb9efc659fe772299217b9178cead9ce0
2022-08-30Remove draft tag for 0.40 releasev0.40.0v0.40Eric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I9ca5eb956b2ea7eb01e34ecbfb250748abdd0f04
2022-08-29Update version to 0.40 draftEric Kunze
In preparation for version 0.40 release Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I8c02f88bf8af7bdc6f23671bae057748f612e820
2022-08-25Modify CMakeLists to ease integration with Arm NN.Colm Donelan
* Add option to disable building test executables. * Add option to specify an external source of Flatbuffers library. * Allow third_party/flatbuffers to contain either source or prebuilt package. * Remove default STATIC and rely on cmake's BUILD_SHARED_LIBS. * Add PUBLIC_HEADERS to install target. * Specify use of GNU installation directory norms. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I780c3345b9e55ec7928b917648174c33fe29e7fb
2022-08-03Update TOSA resize to match specificationTatWai Chong
Attribute stride and shift are removed, and has new scale and border. For serializing int16 attributes, add a new member vector container and a building function to do so. Signed-off-by: TatWai Chong <tatwai.chong@arm.com> Change-Id: I6d101a37d294dcf0a4d5bbb6c64bfa3c49a98f9e
2022-07-11Fix bug in bool to u8 conversionEric Kunze
Can't assume that the boolean is represented as 8-bits. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ic7bbf6dc92f243f9c4cf0bb606dde127ba8684e3
2022-07-06Bump schema version number to 0.31 draftEric Kunze
0.30 is released, future schema changes need a new version number. Change-Id: I812d6f2a2539b21f902990298bda570cb1166a42
2022-06-16Remove the draft tag from the schema for v0.30v0.30.0v0.30Eric Kunze
Preparing for v0.30 release Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I5426515f7cf0f83c9f606050969c94667f2dabb9
2022-06-15Remove quantinfo typesEric Kunze
Any needed information has been moved into the attributes for each operator. This aligns with the structure of the attributes in the TOSA specification, and generally simplifies the code. Change-Id: I8243e91b09de1a9115f8af09c5e7def7e8f2866b Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2022-06-13Fix version number in python serializerEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I61ace20482da93bf01e1cf073785baf2b30973d2
2022-06-13Fix mistake in python serializerEric Kunze
With recent schema changes, Outpad -> OutPad Remove dilation from flatbuffer compatibility code Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ib1f63ddd4f483301b4b7cf17af2a4b25364cd35e
2022-06-13Remove dilation from transpose_conv2dEric Kunze
The specification does not have dilation for transpose_conv2d. Removed dilation from the attributes for transpose. Rename outpad to out_pad for transpose conv2d to align with specification Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ifb0fb7121a6bf33601420366ce86f2f0b56353de
2022-06-13Update serializer version numberEric Kunze
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Id8ada4e2f0bcd2048c8bb9d0a20909c674bb637b
2022-06-13Increment version to 0.25Eric Kunze
Also insert the TOSA file identifier in the flatbuffer. Reports a warning if the identifier is not present when loading. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I1cd4a9cc78e898ba5015e29be1c65cb640dd6a00
2022-06-07Change to flatbuffers 1.12 as the submoduleEric Kunze
The code should be compatible with both flatbuffers 2.0 and 1.12 through try/except blocks. Generally other projects seem to still be using 1.12, so move the submodule back to 1.12 for maximum compatibility. Change-Id: I9733c7df0a7e4226f87473e19e48d3a80a3db6c6 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2022-06-07Align the serialization schema with TOSA 0.24.0 specificationTatWai Chong
The operators are pool, conv, reshape, slice, transpose, and table. Signed-off-by: TatWai Chong <tatwai.chong@arm.com> Change-Id: I425ab407e699159f75834f31ad2d48e206c71749
2022-05-26Add support for uint16_tJeremy Johnson
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ieab5c56db49549726dd5efb0d9b728713fc6f86a
2022-05-12Fix incompatible issue with clickTatWai Chong
Refer to https://github.com/psf/black/issues/2964, this error can be fixed by picking `click` to 8.0.4. Signed-off-by: TatWai Chong <tatwai.chong@arm.com> Change-Id: If3970e0cd31f2190cacb741530cb38a31c943938
2022-02-17Cleanup code warningsEric Kunze
Change-Id: Ia2a68d8fa9de12f85353d4828a93b05367d86353
2022-01-06Add python package supportJeremy Johnson
Move tosa_serializer into its own namespace Fix up for pre-commit black/flake8 Remove import dependency on reference model Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I8693fb7c00d224142a66dcb19eac74ac77c6224b