You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tf.signal.kaiser_bessel_derived_window returns window_length - 1 samples for odd lengths #129235
The docstring says the result has shape [window_length]. For odd lengths the implementation (window_ops.py#L127-L131) builds two halves of window_length // 2 samples each, so the output is one sample short. For window_length=1 it is empty.
KBD windows are normally defined for even lengths only, so the right behavior is probably to raise a clear error for odd window_length (or document the restriction), not to quietly return a shorter window. Right now callers that pair the window with a frame of window_length samples get a shape mismatch later on, far from the cause.
Expected: either shape [window_length], or a ValueError/InvalidArgumentError for odd lengths.
Hi @bodapatisaikrishna,
Thanks for reporting this issue and submitting a fix for TensorFlow. Once the PR is merged, the issue will be resolved. We appreciate your contribution.
Activity
Kayyuri commentedon Oct 19, 2026
Hi @bodapatisaikrishna,
Thanks for reporting this issue and submitting a fix for TensorFlow. Once the PR is merged, the issue will be resolved. We appreciate your contribution.
google-ml-butler commentedon Oct 22, 2026
Are you satisfied with the resolution of your issue?
Yes
No
Fix kaiser_window NaN for dynamic length 1 and reject odd KBD lengths