Skip to content

Commit c6617f2

Browse files
authored
minor black error fix (#2246)
1 parent 47961cd commit c6617f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ignite/engine/test_create_supervised.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _():
102102
@trainer.on(Events.ITERATION_COMPLETED(every=gradient_accumulation_steps))
103103
def _():
104104
theta[0] -= accumulation[0] / gradient_accumulation_steps
105-
assert pytest.approx(model.weight.data[0, 0].item(), abs=1.e-5) == theta[0]
105+
assert pytest.approx(model.weight.data[0, 0].item(), abs=1.0e-5) == theta[0]
106106
assert pytest.approx(trainer.state.output[-1], abs=1e-5) == loss[0]
107107
accumulation[0] = loss[0] = 0.0
108108

0 commit comments

Comments
 (0)