Skip to content

Commit

Permalink
skip
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Nov 22, 2024
1 parent fdb1a25 commit 14dec19
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torchaudio
from packaging import version

class Model(nn.Module):
def __init__(self):
Expand All @@ -33,6 +34,9 @@ def forward(self, x, y, z, w):
return out0, out1, out2, out3

def test():
if version.parse(torchaudio.__version__) < version.parse('0.10.0'):
return True

net = Model()
net.eval()

Expand Down
4 changes: 4 additions & 0 deletions tools/pnnx/tests/ncnn/test_torchaudio_InverseSpectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torchaudio
from packaging import version

class Model(nn.Module):
def __init__(self):
Expand All @@ -38,6 +39,9 @@ def forward(self, x, y, z, w):
return out0, out1, out2, out3

def test():
if version.parse(torchaudio.__version__) < version.parse('0.10.0'):
return True

net = Model()
net.eval()

Expand Down
4 changes: 4 additions & 0 deletions tools/pnnx/tests/test_torchaudio_F_inverse_spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torchaudio
from packaging import version

class Model(nn.Module):
def __init__(self):
Expand All @@ -29,6 +30,9 @@ def forward(self, x, y, z, w):
return out0, out1, out2, out3

def test():
if version.parse(torchaudio.__version__) < version.parse('0.10.0'):
return True

net = Model()
net.eval()

Expand Down
4 changes: 4 additions & 0 deletions tools/pnnx/tests/test_torchaudio_InverseSpectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torchaudio
from packaging import version

class Model(nn.Module):
def __init__(self):
Expand All @@ -34,6 +35,9 @@ def forward(self, x, y, z, w):
return out0, out1, out2, out3

def test():
if version.parse(torchaudio.__version__) < version.parse('0.10.0'):
return True

net = Model()
net.eval()

Expand Down

0 comments on commit 14dec19

Please sign in to comment.