瀏覽代碼

Fix Core ML quantization null check

Lutz Roeder 6 年之前
父節點
當前提交
fb246b6d46
共有 1 個文件被更改,包括 1 次插入2 次删除
  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));
     }