From 0b6d7c271af1e6593e6a2cf14b32acea765f4b64 Mon Sep 17 00:00:00 2001 From: Tai Ly Date: Fri, 8 Mar 2024 17:03:25 +0000 Subject: [serialization_lib] Fix Clamp and Pad Attributes 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 Change-Id: I5b075d29677cffca9ff2292708141d48410e7e72 --- schema/tosa.fbs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'schema') diff --git a/schema/tosa.fbs b/schema/tosa.fbs index 2bb3470..028765d 100644 --- a/schema/tosa.fbs +++ b/schema/tosa.fbs @@ -182,9 +182,7 @@ table TransposeConvAttribute { } table PadAttribute { - padding: [int32]; - pad_const_int: int32; - pad_const_fp: [ubyte] (force_align: 8); + pad_const: [ubyte] (force_align: 8); } table AxisAttribute { @@ -199,17 +197,13 @@ table ResizeAttribute { } table ClampAttribute { - min_int: int32; - max_int: int32; - min_fp: [ubyte] (force_align: 8); - max_fp: [ubyte] (force_align: 8); + min_val: [ubyte] (force_align: 8); + max_val: [ubyte] (force_align: 8); } table RescaleAttribute { input_zp: int32; output_zp: int32; - multiplier: [int32]; - shift: [int32]; scale32: bool; double_round: bool; per_channel: bool; -- cgit v1.2.1