Skip to content

Commit 61695b6

Browse files
committed
precommit v2
1 parent 655aef6 commit 61695b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/pytest/test_pytorch_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def test_linear(backend, io_type):
7575
)
7676
@pytest.mark.parametrize('backend', ['Vivado', 'Vitis', 'Quartus'])
7777
@pytest.mark.parametrize('io_type', ['io_parallel', 'io_stream'])
78-
7978
def test_activations(activation_function, backend, io_type):
8079
model = torch.nn.Sequential(nn.Linear(1, 1), activation_function).to()
8180
model.eval()
@@ -120,12 +119,14 @@ def __init__(self):
120119
def forward(self, x):
121120
return nn.functional.relu(x)
122121

122+
123123
class SoftmaxModel(nn.Module):
124124
def __init__(self):
125125
super().__init__()
126126

127127
def forward(self, x):
128-
return nn.functional.softmax(x,dim=-1)
128+
return nn.functional.softmax(x, dim=-1)
129+
129130

130131
class TanHModel(nn.Module):
131132
def __init__(self):

0 commit comments

Comments
 (0)