Small fixes.

This commit is contained in:
Fangjun Kuang 2022-06-15 12:03:02 +08:00
parent 46430a5024
commit feb9fd05e8

View File

@ -33,13 +33,13 @@ jobs:
# disable macOS test for now. # disable macOS test for now.
os: [ubuntu-18.04] os: [ubuntu-18.04]
python-version: [3.7, 3.8] python-version: [3.7, 3.8]
torch: ["1.8.0", "1.10.0"] torch: ["1.8.0", "1.11.0"]
torchaudio: ["0.8.0", "0.10.0"] torchaudio: ["0.8.0", "0.11.0"]
k2-version: ["1.15.1.dev20220427"] k2-version: ["1.15.1.dev20220427"]
exclude: exclude:
- torch: "1.8.0" - torch: "1.8.0"
torchaudio: "0.10.0" torchaudio: "0.11.0"
- torch: "1.10.0" - torch: "1.11.0"
torchaudio: "0.8.0" torchaudio: "0.8.0"
fail-fast: false fail-fast: false
@ -67,7 +67,7 @@ jobs:
# numpy 1.20.x does not support python 3.6 # numpy 1.20.x does not support python 3.6
pip install numpy==1.19 pip install numpy==1.19
pip install torch==${{ matrix.torch }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html pip install torch==${{ matrix.torch }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
if [[ ${{ matrix.torchaudio }} == "0.10.0" ]]; then if [[ ${{ matrix.torchaudio }} == "0.11.0" ]]; then
pip install torchaudio==${{ matrix.torchaudio }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html pip install torchaudio==${{ matrix.torchaudio }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
else else
pip install torchaudio==${{ matrix.torchaudio }} pip install torchaudio==${{ matrix.torchaudio }}