Skip to content

Commit 0d0f954

Browse files
authored
Remove erroneous print statements
1 parent 20f59a1 commit 0d0f954

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

advanced_source/static_quantization_tutorial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def accuracy(output, target, topk=(1,)):
259259
_, pred = output.topk(maxk, 1, True, True)
260260
pred = pred.t()
261261
correct = pred.eq(target.view(1, -1).expand_as(pred))
262-
# print(target.view(1, -1).expand_as(pred), pred)
262+
263263
res = []
264264
for k in topk:
265265
correct_k = correct[:k].view(-1).float().sum(0, keepdim=True)
@@ -274,7 +274,6 @@ def evaluate(model, criterion, data_loader, neval_batches):
274274
cnt = 0
275275
with torch.no_grad():
276276
for image, target in data_loader:
277-
print(target)
278277
output = model(image)
279278
loss = criterion(output, target)
280279
cnt += 1

0 commit comments

Comments
 (0)