|
1 | 1 | # keras3 (development version) |
2 | 2 |
|
| 3 | +- `install_keras()` changes: if a GPU is available, the default is now to |
| 4 | + install a CPU build of TensorFlow and a GPU build of JAX. To use a GPU in the |
| 5 | + current session, call `use_backend("jax")`. |
| 6 | + |
| 7 | +## Added compatibility with Keras v3.6.0. User-facing changes: |
| 8 | + |
| 9 | +#### Breaking changes: |
| 10 | + |
| 11 | +- When using `get_file()` with `extract = TRUE` or `untar = TRUE`, the return value |
| 12 | + is now the path of the extracted directory, rather than the path of the archive. |
| 13 | + |
| 14 | +#### Other changes and additions: |
| 15 | + |
| 16 | +- Logging is now asynchronous in `fit()`, `evaluate()`, and `predict()`. This |
| 17 | + enables 100% compact stacking of `train_step` calls on accelerators (e.g. when |
| 18 | + running small models on TPU). |
| 19 | + - If you are using custom callbacks that rely on `on_batch_end`, this will |
| 20 | + disable async logging. You can re-enable it by adding |
| 21 | + `self$async_safe <- TRUE` to your callbacks. Note that the TensorBoard |
| 22 | + callback is not considered async-safe by default. Default callbacks like the |
| 23 | + progress bar are async-safe. |
| 24 | + |
| 25 | +- New bitwise operations: |
| 26 | + - `op_bitwise_and()` |
| 27 | + - `op_bitwise_invert()` |
| 28 | + - `op_bitwise_left_shift()` |
| 29 | + - `op_bitwise_not()` |
| 30 | + - `op_bitwise_or()` |
| 31 | + - `op_bitwise_right_shift()` |
| 32 | + - `op_bitwise_xor()` |
| 33 | + |
| 34 | +- New math operations: |
| 35 | + - `op_logdet()` |
| 36 | + - `op_trunc()` |
| 37 | + - `op_histogram()` |
| 38 | + |
| 39 | +- New neural network operation: `op_dot_product_attention()` |
| 40 | + |
| 41 | +- New image preprocessing layers: |
| 42 | + - `layer_auto_contrast()` |
| 43 | + - `layer_solarization()` |
| 44 | + |
| 45 | +- New Model functions `get_state_tree()` and `set_state_tree()`, for retrieving |
| 46 | + all model variables, including trainable, non-trainable, optimizer variables, |
| 47 | + and metric variables. |
| 48 | + |
| 49 | +- New `layer_pipeline()` for composing a sequence of layers. This class is useful |
| 50 | + for building a preprocessing pipeline. Compared to a `keras_model_sequential()`, |
| 51 | + `layer_pipeline()` has a few key differences: |
| 52 | + - It's not a Model, just a plain layer. |
| 53 | + - When the layers in the pipeline are compatible with `tf.data`, the pipeline |
| 54 | + will also remain `tf.data` compatible, regardless of the backend you use. |
| 55 | + |
| 56 | +- New argument: `export_savedmodel(verbose = )` |
| 57 | +- New argument: `op_normalize(epsilon = )` |
| 58 | + |
| 59 | +- Various documentation improvements and bug fixes. |
| 60 | + |
| 61 | + |
3 | 62 | # keras3 1.2.0 |
4 | 63 |
|
5 | 64 | - Added compatibility with Keras v3.5.0. User facing changes: |
|
0 commit comments