Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
KsenijaS committed Jan 28, 2021
1 parent 9e7f1ac commit 3ba0370
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/onnx/test_pytorch_onnx_onnxruntime.py
Original file line number Diff line number Diff line change
Expand Up @@ -4292,6 +4292,13 @@ def forward(self, x):
x = torch.randn(4, 2, 4, requires_grad=True)
self.run_test(UnfoldModel(), x)

class UnfoldModel(torch.nn.Module):
def forward(self, x):
return x.unfold(dimension=2, size=x.shape[1], step=1)

x = torch.randn(4, 2, 4, requires_grad=True)
self.run_test(UnfoldModel(), x)

def test_prelu(self):
class PReluModel(torch.nn.Module):
def __init__(self):
Expand Down

0 comments on commit 3ba0370

Please sign in to comment.