- coremltools.models.ml_program.compression_utils.affine_quantize_weights(mlmodel, mode='linear_symmetric', op_selector=None, dtype=<class 'numpy.int8'>)[source]
coremltools.compression_utils.affine_quantize_weights
is deprecated and will be removed in the future. Please usecoremltools.optimize.coreml.linear_quantize_weights
.
- coremltools.models.ml_program.compression_utils.palettize_weights(mlmodel, nbits=None, mode='kmeans', op_selector=None, lut_function=None)[source]
coremltools.compression_utils.palettize_weights
is deprecated and will be removed in the future. Please usecoremltools.optimize.coreml.palettize_weights
.
- coremltools.models.ml_program.compression_utils.sparsify_weights(mlmodel, mode='threshold_based', threshold=1e-12, target_percentile=1.0, op_selector=None)[source]
coremltools.compression_utils.sparsify_weights
is deprecated and will be removed in the future. Please usecoremltools.optimize.coreml.prune_weights
.