Chirag Wattamwar
Chirag Wattamwar
## Description Fixes: #23128 TensorFlow and openvino backends computed abs(x1 - x2)
### Description `keras.random.shuffle(..., axis=-1)` produces incorrect results with the Torch backend. Negative axes are not canonicalized before building shuffle indices, so `axis=-1` is treated as the literal axis value instead...
`warm_start=True` reuses model weights when called in `fit()`. However, when `model` is already a Keras `Model`, `_get_model()` always calls `clone_model(self.model)` and doesn't check `self.warm_start`. So multiple clone models are created...
## Description Fixes: #23071 `tf_dataset_adapter.py` uses a `tf.lookup.StaticHashTable` with default 1.0 instead of dense `tf.gather` and handles empty class_weight={} by returning ones. Also added a regression test for the same...
## Description Fixes: #23068 When sampling_rate is set, WAV decode no longer truncates with desired_samples=output_sequence_length before resampling. After resampling `_trim_and_pad_audio()` applies output_sequence_length to the returned audio. Updated the doc to...
Fixes part 3 of #22595 ## Description ## Contributor Agreement **Please check all boxes below before submitting your PR for review:** - [x] I am a human, and not a...
In `keras/src/trainers/data_adapters/torch_data_loader_adapter.py`, `get_numpy_iterator()` converts torch tensor leaves with `tree.map_structure(...)` but then wraps the whole result in `tuple(...)`. This changes the root structure: 1. A dict batch becomes a tuple of...
`Model.fit(..., class_weight=...)` handles missing `class_weight` entries differently upon the input. For `tf.data.Dataset` inputs Keras builds a dense `class_weight_tensor` from `range(max(class_weight.keys()) + 1)` and then calls `tf.gather(class_weight_tensor, y_classes)`. If the dataset...
`tf.audio.decode_wav(... desired_samples=output_sequence_length)` truncates in the source sampling rate before `tfio.audio.resample()` runs. A 48 kHz file with `sampling_rate=16000` and `output_sequence_length=16000` can produce about 5333 samples after resampling and not 16000. repro:...
## Summary Add a backend-agnostic, serializable `keras.layers.LinearAttention` layer for kernelized self-attention with linear sequence complexity and constant-size state during causal streaming. The layer should support: - Causal and non-causal self-attention...