Răsfoiți Sursa

Fix Core ML quantization null check

Lutz Roeder 6 ani în urmă
părinte
comite
fb246b6d46
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      src/coreml.js

+ 1 - 2
src/coreml.js

@@ -843,9 +843,8 @@ coreml.Tensor = class {
                     shape = [];
                 }
             }
+            this._quantization = data.quantization || null;
         }
-
-        this._quantization = data.quantization || null;
         this._type = new coreml.TensorType(dataType, new coreml.TensorShape(shape));
     }