Explorar el Código

Fix Core ML quantization null check

Lutz Roeder hace 6 años
padre
commit
fb246b6d46
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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));
     }