Skip to content

Commit b94a33c

Browse files
committed
fix libtorch pt2 generation
1 parent a40b556 commit b94a33c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

qa/common/gen_qa_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,8 @@ def forward(self, INPUT0, INPUT1):
13521352
ep = torch.export.export(
13531353
AddSubNet(swap),
13541354
(
1355-
torch.randn(*input_shape),
1356-
torch.randn(*input_shape),
1355+
torch.randn(*input_shape, device="cuda"),
1356+
torch.randn(*input_shape, device="cuda"),
13571357
),
13581358
)
13591359
torch.export.save(ep, model_version_dir + "/model.pt2")
@@ -2112,7 +2112,7 @@ def create_models(
21122112
)
21132113
create_libtorch_pt2_modelfile(
21142114
models_dir,
2115-
8,
2115+
0,
21162116
model_version,
21172117
input_shape,
21182118
output0_shape,

0 commit comments

Comments
 (0)