Age | Commit message (Collapse) | Author |
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I9d1fcfb6fd70548b8c1dce8ea768b631bf87eb39
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: Icbc231ada16eeba38452c2c7cec8e66cf43d3c0e
|
|
Change-Id: I1a52c596ea225355fe505f783d875a01023ff63e
|
|
This patch removes the "type" field from PadAttribute and ClampAttribute
because they are unused and unneeded.
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I378291b340ecee86824f25b3887aa4511207db23
|
|
Adds type to PadAttribute and ClampAttribute so their pad_const
and max_val/min_val can be deserialized according to type
Adds conversion functions of U8 arrays to/from BF16/FP8 values
Also, refactor and expose TosaSerializer.convertDataToUint8Vec
for converting dtype/data to uint8 list for serialization
And modify convertDataToUint8Vec to serialize bf16 values into
2 bytes each, and serialize fp8 values into single bytes each.
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I05659e8187c76d359f1cc9f71c8c23cafd0e877f
|
|
Numpy rank 0 files correctly written as shape () instead of (1)
Constant tensors of rank 0 now have data written out
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ie4bad8f798674cdb0484955e9db684f7f4100145
|
|
This adds acc_type to ConvAttribute and TransposeConvAttribute
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I73bab71b2eb90f6451fadee21d5bed1811ecbfd7
|
|
This patch implements following changes to attribute fields:
- PadAttribute: delete padding field, replace pad_const_int
and pad_const_fp fields by pad_const, a field of
ubyte array
- ClampAttribute: replace min_int, max_int, min_fp and max_fp
fields by min_val and max_val, fields of ubyte arrays
- RescaleAttribute: delete multiplier and shift fields
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I5b075d29677cffca9ff2292708141d48410e7e72
|
|
removed attributes for Reshape, Slice and Tile Ops
renamed field accum_dtype to acc_type,
renamed then_branch/else_branch to then_graph/else_graph
renamed cond_branch/body_branch to cond_graph/body_graph
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I2001f19519987d9e64c18b1f11762f9d3b9be4ec
|
|
Signed-off-by: Won Jeon <won.jeon@arm.com>
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: Ife50592890be020b6c6122581eeb2175c8f331e0
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: Idd444ceb641993e2ed6b647505979ec9d5def796
|
|
Signed-off-by: Won Jeon <won.jeon@arm.com>
Change-Id: I1ffa49f3e5437be6757a6a2788e9de1a2e99a92c
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ifc5445c7129abb914a6cef952e27fccf47ea6397
|
|
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
|
|
Signed-off-by: Won Jeon <won.jeon@arm.com>
Change-Id: Icac013d42d88534dd1cd71ddb9f47e633a9b51d4
|
|
Change-Id: Iba6e06e1f40c2f2c2ca753787f0f57bae6e66747
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I4163390599afbbc93b02e3e72b2fe0f53a0bcf06
|
|
Signed-off-by: Won Jeon <won.jeon@arm.com>
Change-Id: I95e82ac2d7c6e412f6cda0c9ffb2fb94d25af1d2
|
|
Change-Id: I591accec7cd8499bd793924a4e22eed2454f66ea
|
|
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I22e73e2aa9fbd54610fed776da9fbd09a4adae25
|
|
Signed-off-by: Won Jeon <won.jeon@arm.com>
Change-Id: Iebeec3440fe6859e54d0d93de4cf7c704d2bcfe7
|
|
The recent flatbuffers version updated requires a change in the
serializer code
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I7f3e28af97cb9bc970811389102a3d5e33850838
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I2c4cb229356f874bf78cf635f6d69c79278f01f6
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: Ie046531ee1d6a3977760aa3f8013f326e7c071f9
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: If99d07bdad463346da957b6fa16231f818b86728
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: Ie139b262f7bd5966e72a3535ac2253e13d7b3604
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I2eb93e6e88ee358c9ec9562c3b4d876eb41cc38c
|
|
* Also add missing CustomAttribute.py (flatbuffers generated file)
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ib71847e03d622995dd86afcb6ec9ed2bc147ee7a
|
|
* 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
|
|
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: I79b3684ae1cf24e71ec7098ed7db5be5bc2f6fb2
|
|
+ Fixed a writeJson bug, only add input/outputs tensors from main block
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I2790c2ee47b2ca2a1d8730f846061e31fc0c39f6
|
|
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Ifb249836f8774e0797fd6650442c55da8a084a17
|
|
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Ibd15f21aa24168730c904224f08fd55e27aae41f
|
|
Change-Id: I6adfd59be1799fc004c9051daa409c902bc4bd1d
|
|
In preparation for release
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I58337a835b2afa47f80f27e4a0ebc70836a544ab
|
|
Change-Id: I98072019e3dbbf1eab0bc95f74a4546ed82519db
Signed-off-by: James Ward <james.ward@arm.com>
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I2cd6ae85f59fd62a62b7f03ae9667228b54e82db
|
|
* 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
|
|
Add way of saving CONSTs to numpy file for testing purposes.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ic3a22da8ec3432037832374090b7ceff345d48de
|
|
Change-Id: I34cc007cb9efc659fe772299217b9178cead9ce0
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I9ca5eb956b2ea7eb01e34ecbfb250748abdd0f04
|
|
In preparation for version 0.40 release
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I8c02f88bf8af7bdc6f23671bae057748f612e820
|
|
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
|
|
0.30 is released, future schema changes need a new version number.
Change-Id: I812d6f2a2539b21f902990298bda570cb1166a42
|
|
Preparing for v0.30 release
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I5426515f7cf0f83c9f606050969c94667f2dabb9
|
|
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>
|
|
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I61ace20482da93bf01e1cf073785baf2b30973d2
|
|
With recent schema changes, Outpad -> OutPad
Remove dilation from flatbuffer compatibility code
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: Ib1f63ddd4f483301b4b7cf17af2a4b25364cd35e
|
|
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
|
|
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
|