From 097e6cae5815ce29ed127801abc5c48d4b4baeca Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Fri, 19 Jul 2024 18:35:03 -0700 Subject: [PATCH] Update openvino.js --- source/openvino.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/openvino.js b/source/openvino.js index 45833841b2..d23b796a3f 100644 --- a/source/openvino.js +++ b/source/openvino.js @@ -768,6 +768,9 @@ openvino.TensorType = class { constructor(precision, shape) { precision = precision ? precision.toLowerCase() : precision; switch (precision) { + case 'f4e2m1': this.dataType = 'float4e2m1'; break; + case 'f8e4m3': this.dataType = 'float8e4m3'; break; + case 'f8e5m2': this.dataType = 'float8e5m2'; break; case 'f16': this.dataType = 'float16'; break; case 'f32': this.dataType = 'float32'; break; case 'f64': this.dataType = 'float64'; break; @@ -789,7 +792,6 @@ openvino.TensorType = class { case 'bool': this.dataType = 'boolean'; break; case 'boolean': this.dataType = 'boolean'; break; case 'bin': this.dataType = 'bit'; break; - case 'f8e4m3': this.dataType = 'float8e4m3'; break; case 'string': this.dataType = 'string'; break; case '': this.dataType = '?'; break; case null: this.dataType = '?'; break;