Skip to content

Commit d97ae1f

Browse files
committed
refactor: Apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 9a9d7f0 commit d97ae1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ptq/training/vgg16/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test(model, dataloader, crit, epoch):
167167
model.eval()
168168
with torch.no_grad():
169169
for data, labels in dataloader:
170-
data, labels = data.cuda(), labels.cuda(async=True)
170+
data, labels = data.cuda(), labels.cuda(non_blocking=True)
171171
out = model(data)
172172
loss += crit(out, labels)
173173
preds = torch.max(out, 1)[1]

0 commit comments

Comments
 (0)