Skip to content

Commit f623e3e

Browse files
committed
add missing add to cuda
1 parent f0e7da3 commit f623e3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pquant/core/torch/layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ def add_compression_layers(model, config, input_shape=None):
608608
model.to("cuda")
609609
if input_shape is not None:
610610
model(torch.rand(input_shape).to("cuda"))
611+
model.to("cuda")
611612
return model
612613

613614

0 commit comments

Comments
 (0)