Skip to content

Commit b8a122f

Browse files
authored
Merge pull request #1292 from pytorch/anuragd/fix_finetune_qat_dataloader
chore: Fix dataloader in finetune_qat script
2 parents b6b690c + 149033c commit b8a122f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/int8/training/vgg16/finetune_qat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def main():
261261
state = ckpt["state"]
262262

263263
data = iter(training_dataloader)
264-
images, _ = data.next()
264+
images, _ = next(data)
265265

266266
writer.add_graph(model, images.cuda())
267267
writer.close()

0 commit comments

Comments
 (0)