FP16 support in serialization
* 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
diff --git a/schema/tosa.fbs b/schema/tosa.fbs
index d6d0f22..b3ab991 100644
--- a/schema/tosa.fbs
+++ b/schema/tosa.fbs
@@ -31,6 +31,7 @@
INT48,
FLOAT,
UINT16,
+ FP16,
}
enum ResizeMode:uint32 {
@@ -168,6 +169,7 @@
stride: [int32];
input_zp: int32;
output_zp: int32;
+ accum_dtype: DType;
}
table ConvAttribute {
@@ -176,6 +178,7 @@
dilation: [int32];
input_zp: int32;
weight_zp: int32;
+ accum_dtype: DType;
}
table TransposeConvAttribute {
@@ -184,6 +187,7 @@
output_shape: [int32];
input_zp: int32;
weight_zp: int32;
+ accum_dtype: DType;
}
table PadAttribute {
@@ -262,11 +266,13 @@
table MatMulAttribute {
a_zp: int32;
b_zp: int32;
+ accum_dtype: DType;
}
table FullyConnectedAttribute {
input_zp: int32;
weight_zp: int32;
+ accum_dtype: DType;
}
table NegateAttribute {