Skip to content

Commit e19983d

Browse files
committed
update: test_closure
1 parent ee3ea6c commit e19983d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_optimizers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def test_pc_grad_optimizers(reduction):
219219
@pytest.mark.parametrize('optimizer', {config[0] for config in OPTIMIZERS}, ids=names)
220220
def test_closure(optimizer):
221221
param = simple_parameter()
222+
param.grad = None
222223

223224
optimizer_name: str = optimizer.__name__
224225

0 commit comments

Comments
 (0)