Skip to content

Commit a708b7a

Browse files
authored
Merge pull request #165 from sp-nitech/istft_out_len [skip ci]
Fix output length truncation for center=True
2 parents 724ba52 + 39003dc commit a708b7a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
steps:
3131
- name: Clone
32-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
32+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3333

3434
- name: Python
35-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
35+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
3636
with:
3737
python-version: ${{ matrix.python }}
3838
architecture: x64
@@ -52,7 +52,7 @@ jobs:
5252
run: make test-all OPT="--dtype double"
5353

5454
- name: Coverage
55-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
55+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
5656
with:
5757
fail_ci_if_error: true
5858
files: ./coverage.xml

diffsptk/modules/unframe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ def _forward(
181181
raise ValueError("Input must be at least 2D tensor.")
182182

183183
N = y.size(-2)
184+
if out_length is None and center:
185+
out_length = N * frame_period
184186

185187
if 4 <= d:
186188
batch_dims = y.size()[:-2]

0 commit comments

Comments
 (0)