summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2023-03-10 11:03:17 +0000
committerArne Juul <arnej@yahooinc.com>2023-03-10 11:03:17 +0000
commit11dc6cb2309ea5c9981f1ccd50f3cf417986eb0e (patch)
treecd92637a6f72dc2b54dda5c2b3e5953500b753d2
parentf91cb63554a8eab5bb3401177d2634b238fd957b (diff)
add BFLOAT16 from newer onnx.proto version
-rw-r--r--model-integration/src/main/protobuf/onnx.proto6
1 files changed, 5 insertions, 1 deletions
diff --git a/model-integration/src/main/protobuf/onnx.proto b/model-integration/src/main/protobuf/onnx.proto
index dc6542867e0..27f1fdef4b3 100644
--- a/model-integration/src/main/protobuf/onnx.proto
+++ b/model-integration/src/main/protobuf/onnx.proto
@@ -298,6 +298,10 @@ message TensorProto {
UINT64 = 13;
COMPLEX64 = 14; // complex with float32 real and imaginary components
COMPLEX128 = 15; // complex with float64 real and imaginary components
+ // Non-IEEE floating-point format based on IEEE754 single-precision
+ // floating-point number truncated to 16 bits.
+ // This format has 1 sign bit, 8 exponent bits, and 7 mantissa bits.
+ BFLOAT16 = 16;
// Future extensions go here.
}
@@ -461,4 +465,4 @@ message OperatorSetIdProto {
// The version of the operator set being identified.
// This field MUST be present in this version of the IR.
optional int64 version = 2;
-} \ No newline at end of file
+}