2
0
Эх сурвалжийг харах

Fix Core ML quantization null check

Lutz Roeder 6 жил өмнө
parent
commit
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));
     }