Skip to content

Commit 0572462

Browse files
committed
update: test_size_of_parameter
1 parent becbd91 commit 0572462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_optimizer_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_size_of_parameter(optimizer):
219219
model: nn.Module = nn.Linear(1, 1, bias=False)
220220
model.requires_grad_(False)
221221

222-
with pytest.raises(ZeroDivisionError):
222+
with pytest.raises(ValueError):
223223
optimizer(model.parameters(), 100).step()
224224

225225

0 commit comments

Comments
 (0)