Skip to content

Commit 8cfedad

Browse files
authored
Merge pull request #157 from sp-nitech/check [skip ci]
Check PyTorch 2.10
2 parents 8c55beb + f488fc0 commit 8cfedad

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
torch: 2.3.1
2222
torchaudio: 2.3.1
2323
- python: "3.14"
24-
torch: 2.9.1
25-
torchaudio: 2.9.1
24+
torch: 2.10.0
25+
torchaudio: 2.10.0
2626

2727
steps:
2828
- name: Clone

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ allowing users to integrate classic signal processing algorithms directly into n
88
[![Downloads](https://static.pepy.tech/badge/diffsptk)](https://pepy.tech/project/diffsptk)
99
[![ClickPy](https://img.shields.io/badge/downloads-clickpy-yellow.svg)](https://clickpy.clickhouse.com/dashboard/diffsptk)
1010
[![Python Version](https://img.shields.io/pypi/pyversions/diffsptk.svg)](https://pypi.python.org/pypi/diffsptk)
11-
[![PyTorch Version](https://img.shields.io/badge/pytorch-2.3.1%20%7C%202.9.1-orange.svg)](https://pypi.python.org/pypi/diffsptk)
11+
[![PyTorch Version](https://img.shields.io/badge/pytorch-2.3.1%20%7C%202.10.0-orange.svg)](https://pypi.python.org/pypi/diffsptk)
1212
[![PyPI Version](https://img.shields.io/pypi/v/diffsptk.svg)](https://pypi.python.org/pypi/diffsptk)
1313
[![Codecov](https://codecov.io/gh/sp-nitech/diffsptk/branch/master/graph/badge.svg)](https://app.codecov.io/gh/sp-nitech/diffsptk)
1414
[![License](https://img.shields.io/github/license/sp-nitech/diffsptk.svg)](https://github.com/sp-nitech/diffsptk/blob/master/LICENSE)

diffsptk/modules/fftcep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
7676
>>> fftcep = diffsptk.CepstralAnalysis(fft_length=16, cep_order=3)
7777
>>> x = diffsptk.ramp(19)
7878
>>> c = fftcep(stft(x))
79-
>>> c
80-
tensor([[-0.9663, 0.8190, -0.0932, -0.0152],
81-
[-0.8540, 4.6173, -0.5496, -0.3206]])
79+
>>> c.round(decimals=3)
80+
tensor([[-0.9660, 0.8190, -0.0930, -0.0150],
81+
[-0.8540, 4.6170, -0.5500, -0.3210]])
8282
8383
"""
8484
check_size(x.size(-1), self.in_dim, "dimension of spectrum")

diffsptk/modules/pitch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
133133
>>> pitch = diffsptk.Pitch(160, 8000, out_format="f0")
134134
>>> x = diffsptk.sin(1000, 80)
135135
>>> y = pitch(x)
136-
>>> y
137-
tensor([ 0.0000, 99.7280, 99.7676, 99.8334, 99.8162, 100.1602, 0.0000])
136+
>>> y.round()
137+
tensor([ 0., 100., 100., 100., 100., 100., 0.])
138138
139139
"""
140140
d = x.dim()

0 commit comments

Comments
 (0)