Lutz Roeder 5 лет назад
Родитель
Сommit
ff19d47689
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      source/armnn.js

+ 4 - 1
source/armnn.js

@@ -513,7 +513,10 @@ armnn.TensorType = class {
             case 5: this._dataType = 'qint16'; break; // QuantisedSymm16
             case 6: this._dataType = 'quint8'; break; // QAsymmU8
             case 7: this._dataType = 'qint16'; break; // QSymmS16
-            default: throw new armnn.Error("Unknown data type '" + JSON.stringify(dataType) + "'.");
+            case 8: this._dataType = 'qint8'; break; // QAsymmS8
+            case 9: this._dataType = 'qint8'; break; // QSymmS8
+            default:
+                throw new armnn.Error("Unknown data type '" + JSON.stringify(dataType) + "'.");
         }
         this._shape = new armnn.TensorShape(tensorInfo.dimensions);
     }