Skip to content

Commit

Permalink
Fix args order (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
james77777778 authored Aug 25, 2023
1 parent 1f9c7d3 commit 3fda026
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions keras_core/ops/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,11 @@ def stft(
"""
if any_symbolic_tensors((x,)):
return STFT(
sequence_length, sequence_stride, fft_length, center, window
sequence_length=sequence_length,
sequence_stride=sequence_stride,
fft_length=fft_length,
window=window,
center=center,
).symbolic_call(x)
return backend.math.stft(
x,
Expand Down Expand Up @@ -883,7 +887,11 @@ def istft(
"""
if any_symbolic_tensors(x):
return ISTFT(
sequence_length, sequence_stride, fft_length, length, center, window
sequence_length=sequence_length,
sequence_stride=sequence_stride,
fft_length=fft_length,
window=window,
center=center,
).symbolic_call(x)
return backend.math.istft(
x,
Expand Down

0 comments on commit 3fda026

Please sign in to comment.