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_window returns [nan] for window_length=1 when the length is not a constant (tf.function) #129234
kaiser_window special-cases a length of 1 only when it can read the length statically (window_length_const == 1, window_ops.py#L73). With a dynamic length, for example a tf.function input, halflen_float becomes 0, so arg / halflen_float is 0/0 = nan and the window is [nan].
hann_window/hamming_window handle the same case with a cond on window_length == 1, and they correctly return [1.] in the same setting. kaiser_window has no such guard.
Expected:[1.] (matches eager mode and np.kaiser(1, beta)).
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