Fix CI errors.

This commit is contained in:
Fangjun Kuang 2021-12-22 15:26:26 +08:00
parent fbc1bc3a6b
commit 7f4749a4d6
4 changed files with 15 additions and 6 deletions

View File

@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
torch: ["1.10.0"]
torchaudio: ["0.10.0"]
k2-version: ["1.9.dev20211101"]

View File

@ -32,7 +32,7 @@ jobs:
# os: [ubuntu-18.04, macos-10.15]
# disable macOS test for now.
os: [ubuntu-18.04]
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8]
torch: ["1.8.0", "1.10.0"]
torchaudio: ["0.8.0", "0.10.0"]
k2-version: ["1.9.dev20211101"]
@ -106,6 +106,12 @@ jobs:
if [[ ${{ matrix.torchaudio }} == "0.10.0" ]]; then
cd ../transducer
pytest -v -s
cd ../transducer_stateless
pytest -v -s
cd ../transducer_lstm
pytest -v -s
fi
- name: Run tests
@ -125,4 +131,10 @@ jobs:
if [[ ${{ matrix.torchaudio }} == "0.10.0" ]]; then
cd ../transducer
pytest -v -s
cd ../transducer_stateless
pytest -v -s
cd ../transducer_lstm
pytest -v -s
fi

View File

@ -13,5 +13,4 @@ The following table lists the differences among them.
|------------------------|-----------|--------------------|
| `transducer` | Conformer | LSTM |
| `transducer_stateless` | Conformer | Conv1d + Embedding |
| `transducer_lstm ` | LSTM | LSTM |

View File

@ -23,8 +23,6 @@ To run this file, do:
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from decoder import Decoder