Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mglsadf #36

Merged
merged 12 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
takenori-y committed Apr 13, 2023
commit 11b94b594c2816d6bd1d0bde326868d49af17712
4 changes: 2 additions & 2 deletions tests/test_mglsadf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def test_compatibility(
@pytest.mark.parametrize("mode", ["multi-stage", "single-stage", "freq-domain"])
def test_differentiable(device, ignore_gain, phase, mode, B=4, T=20, M=4):
if mode == "multi-stage":
params = {"cep_order": 100}
params = {"cep_order": 10}
elif mode == "single-stage":
params = {"ir_length": 200, "n_fft": 512}
params = {"ir_length": 20, "n_fft": 32}
elif mode == "freq-domain":
params = {"frame_length": 4, "fft_length": 16}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_yingram.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_compatibility(
):
if device == "cuda" and not torch.cuda.is_available():
return
if torch.get_default_dtype() != torch.float64:
if torch.get_default_dtype() != torch.float64: # pragma: no cover
return

frame = diffsptk.Frame(fl, fp, center=False).to(device)
Expand Down