(engine, case)
| 109 | |
| 110 | |
| 111 | def _step(engine, case): |
| 112 | _, dtype = CONFIGS[case] |
| 113 | loss = engine(torch.randn(1, HIDDEN, device=engine.device, dtype=dtype)) |
| 114 | engine.backward(loss) |
| 115 | engine.step() |
| 116 | |
| 117 | |
| 118 | @pytest.mark.parametrize("case", list(CONFIGS)) |
no test coverage detected