Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th committed Jun 7, 2024
1 parent ef9b3d5 commit 7927d93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/testsuite/spectral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function spectral_testsuite(Backend)
@testset "Grads" begin
if Backend != CPU
x = rand(Float32, 16, batch...)
gradtest_fn(s -> abs.(stft(s; n_fft=16)), x)
window = hann_window(16)

window = device(hann_window(16))
gradtest_fn(s -> abs.(stft(s; n_fft=16, window)), x)
gradtest_fn(s -> abs.(stft(s; n_fft=16)), x)
gradtest_fn((s, w) -> abs.(stft(s; n_fft=16, window=w)), x, window)
end
end

Expand Down

0 comments on commit 7927d93

Please sign in to comment.