Tensorflow-model-optimization

Latest version: v0.8.0

Safety actively analyzes 629436 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.7.0

TFMOT 0.7.0 adds updates for Quantization Aware Training (QAT) and Pruning API. Adds support for structured (MxN) pruning.
QAT now also has support for layers with swish activations and ability to disable per-axis quantization in the default 8bit scheme.
Adds support for combining pruning, QAT and weight clustering.

Keras Quantization API:
Tested against TensorFlow 2.6.0, 2.5.1 and nightly with Python 3.
* Added QuantizeWrapperV2 class which preserves order of weights is the default for quantize_apply.
* Added a flag to disable per-axis quantizers in default8_bit scheme.
* Added swish as supported activation.

Keras pruning API:
Tested against TensorFlow 2.6.0, 2.5.1 and nightly with Python 3.
* Added structural pruning with MxN sparsity.

Keras clustering API:
* Added support for RNNSimple, LSTM, GRU, StackedRNNCells, PeepholeLSTMCell, and Bidirectional layers.
* Updated and fixed sparsity-preserving clustering.
* Added an experimental quantization schemes for Quantization Aware Training for collaborative model.optimization:
- Pruning-Clustering-preserving QAT: pruned and clustered model can be QAT trained with preserved sparsity and the number of clusters.
* Updated Clustering initialization default to KMEANS_PLUS_PLUS.

0.6.0

Actual commit for release: d6556c2a591c928fc8b9b723b4909639193ecf14

TFMOT 0.6.0 adds some additional features for Quantization Aware Training.
Adds support for overriding and subclassing default quantization
schemes. Adds input quantizer for annotated quantized layers without annotated
input layers. Also adds pruning policy for pruning registries
for different hardware supports. Also adds Conv2DTranspose support and tanh
activations.

Keras quantization API:
Tested against TensorFlow 2.4.2, 2.5.0 and nightly with Python 3.

Keras pruning API:
Tested against TensorFlow 2.4.2, 2.5.0 and nightly with Python 3.

Keras clustering API:
* Added *ClusteringSummaries* to create additional output for the clustering
progress for TensorBoard.
* Added ClusterableLayer API to support clustering of a keras custom layer.
In addition, now clustering can be done for bias of the layer.
* Introduced two new experimental quantization schemes for Quantization Aware Training
for collaborative model optimization:
- Prune Preserve QAT: pruned model can be QAT trained with preserved sparsity;
- Cluster Preserve QAT: clustered model can be QAT trained with preserved clustering;
* Added a new feature to clustering: average gradient aggregation, which can
improve performance for some models.
* Updated clustering results in the documentation.
* Tested against TensorFlow 1.14.0, 2.0.0, and nightly, and Python 3.

0.5.0

Actual commit for release: https://github.com/tensorflow/model-optimization/commit/525accb4d3ed3bc6d345143fb0fa1d8faa0ce23d.

TFMOT 0.5.0 adds some additional features for Quantization Aware Training. QAT now supports Keras layers `SeparableConv2D` and `SeparableConv1D`. It also provides a new Quantizer `AllValuesQuantizer` which allows for more flexibility with range selection.

Keras clustering API:
Tested against TensorFlow 1.14.0 and 2.3.0 with Python 3.

Keras quantization API:
Tested against TensorFlow 2.3.0 with Python 3.

Keras pruning API:
Tested against TensorFlow 1.14.0 and 2.3.0 with Python 3.

0.4.1

TFMOT 0.4.1 fixes a bug which makes 0.4.0 quantization code fail when run against `tf-nightly` since July 31, 2020. The code now works against different versions on TF, and is not broken by changes to `smart_cond` in core TF.

Keras clustering API:

* Tested against TensorFlow 1.14.0, 2.0.0, and nightly, and Python 3.

Keras quantization API:

* Tested against TensorFlow nightly, and Python 3.

Keras pruning API:

* Tested against TensorFlow 1.14.0, 2.0.0, and nightly, and Python 3.

0.4.0

TFMOT 0.4.0 is the last release to support Python 2. Python 2 support [officially ended on January 1, 2020](https://www.python.org/dev/peps/pep-0373/#update) and [TF 2.1.0](https://github.com/tensorflow/tensorflow/releases/tag/v2.1.0) was the last release to support Python 2.

Keras clustering API:

* New API for weight clustering
* Major Features
* Support for clustering convolutional (except DepthwiseConv), Dense and other commonly used standard Keras layers
* Support for different initialization methods for the cluster centroids: density-based, linear, random
* Fine-tuning of cluster centroids during training
* Tested against TensorFlow 1.14.0, 2.0.0, and nightly, and Python 3.

Keras quantization API:

* Bug Fixes and Other Changes
* Fixed Sequential model support for BatchNorm layers that follow Conv/DepthwiseConv ([issue](https://github.com/tensorflow/model-optimization/issues/378)).
* Improved error message for not using `quantize_scope` with custom Keras layers and objects.
* Tested against TensorFlow nightly, and Python 2/3.

Keras pruning API:

* Tested against TensorFlow 1.14.0, 2.0.0, and nightly, and Python2/3.

0.3.0

This is the final release of TensorFlow Model Optimization 0.3.0.

Keras quantization API:
- This includes the initial release of the Keras quantization API.
- Tested against TensorFlow nightly

Keras pruning API:
- Features:
- Added support for TensorFlowOpLayer
- Bugs Fixes:
- Fixed edge case of propagating training=True to BatchNormalization layer when the arg is passed to call
function instead of relying on tf.keras.backend.learning_phase().
- Removed usage of _log_metrics API, which is no longer available in TF 2.2.0+.
- Tested against TensorFlow nightly, 1.14.0 and 2.0.0.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.