Skip to content

Commit 165c11b

Browse files
authored
test(autogram): Revert to using always using factory (#469)
* It's needed needed to create model on cuda
1 parent 4676f11 commit 165c11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/autogram/test_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def test_compute_partial_gramian(gramian_module_names: set[str], batch_dim: int
309309
the model parameters is specified.
310310
"""
311311

312-
model = SimpleBranched()
312+
model = ModuleFactory(SimpleBranched)()
313313
batch_size = 64
314314
inputs, targets = make_inputs_and_targets(model, batch_size)
315315
loss_fn = make_mse_loss_fn(targets)

0 commit comments

Comments
 (0)