Keras

Latest version: v3.4.0

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

Scan your dependencies

Page 1 of 12

3.4.0

Highlights

- Add support for arbitrary, deeply nested input/output structures in Functional models (e.g. dicts of dicts of lists of inputs or outputs...)
- Introduce `keras.dtype_policies.DTypePolicyMap` for easy configuration of dtype policies of nested sublayers of a subclassed layer/model.
- New ops:
- `keras.ops.argpartition`
- `keras.ops.scan`
- `keras.ops.lstsq`
- `keras.ops.switch`
- `keras.ops.dtype`
- `keras.ops.map`
- `keras.ops.image.rgb_to_hsv`
- `keras.ops.image.hsv_to_rgb`

What's changed

- Add support for optional Functional inputs.
- Add support for `float8` inference for `Dense` and `EinsumDense` layers.
- Add custom `name` argument in all Keras Applications models.
- Add `axis` argument in `keras.losses.Dice`.
- Enable `keras.utils.FeatureSpace` to be used in a `tf.data` pipeline even when the backend isn't TensorFlow.
- `StringLookup` layer can now take `tf.SparseTensor` as input.
- `Metric.variables` is now recursive.
- Add `training` argument to `Model.compute_loss()`.
- Add `dtype` argument to all losses.
- `keras.utils.split_dataset` now supports nested structures in dataset.
- Bugs fixes and performance improvements.

**Full Changelog**: https://github.com/keras-team/keras/compare/v3.3.3...v3.4.0

3.3.3

This is a minor bugfix release.

3.3.2

This is a simple fix release that re-surfaces legacy Keras 2 APIs that aren't part of Keras package proper, but that are still featured in `tf.keras`. No other content has changed.

3.3.1

This is a simple fix release that moves the legacy `_tf_keras` API directory to the root of the Keras pip package. This is done in order to preserve import paths like `from tensorflow.keras import layers` without making any changes to the TensorFlow API files.

No other content has changed.

3.3.0

What's Changed

* Introduce float8 training.
* Add LoRA to ConvND layers.
* Add `keras.ops.ctc_decode` for JAX and TensorFlow.
* Add `keras.ops.vectorize`, `keras.ops.select`.
* Add `keras.ops.image.rgb_to_grayscale`.
* Add `keras.losses.Tversky` loss.
* Add full `bincount` and `digitize` sparse support.
* Models and layers now return owned metrics recursively.
* Add pickling support for Keras models. Note that pickling is not recommended, prefer using Keras saving APIs.
* Bug fixes and performance improvements.

In addition, the codebase structure has evolved:

- All source files are now in `keras/src/`.
- All API files are now in `keras/api/`.
- The codebase structure stays unchanged when building the Keras pip package. This means you can `pip install` Keras directly from the GitHub sources.

New Contributors

* kapoor1992 made their first contribution in https://github.com/keras-team/keras/pull/19484
* IMvision12 made their first contribution in https://github.com/keras-team/keras/pull/19393
* alanwilter made their first contribution in https://github.com/keras-team/keras/pull/19438
* chococigar made their first contribution in https://github.com/keras-team/keras/pull/19323
* LukeWood made their first contribution in https://github.com/keras-team/keras/pull/19555
* AlexanderLavelle made their first contribution in https://github.com/keras-team/keras/pull/19575

**Full Changelog**: https://github.com/keras-team/keras/compare/v3.2.1...v3.3.0

3.2.1

What's Changed

This is a minor bugfix release.


**Full Changelog**: https://github.com/keras-team/keras/compare/v3.2.0...v3.2.1

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.