Skip to content

Commit

Permalink
Update openvino.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jul 20, 2024
1 parent 4a772b9 commit 097e6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/openvino.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 097e6ca

Please sign in to comment.