Skip to content

Commit

Permalink
test(resnet9): move model to cpu for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joennlae committed Sep 20, 2023
1 parent 4e2d88e commit 3b4b6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/test/model_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ def download_model(
dtype=torch.qint8,
)

model_int8.to("cuda")
model_int8.to("cpu")
criterion = nn.CrossEntropyLoss()

acc1, acc5, loss = evaluate(
model_int8,
criterion=criterion,
data_loader=data_loader_val,
device="cuda",
device="cpu",
)

assert acc1 > 0.90
Expand Down

0 comments on commit 3b4b6c8

Please sign in to comment.