Ver Fonte

Fix Core ML quantization null check

Lutz Roeder há 6 anos atrás
pai
commit
fb246b6d46
1 ficheiros alterados com 1 adições e 2 exclusões
  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));
     }