xzuyn commited on
Commit
caa9e11
1 Parent(s): 794d2b6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -70,7 +70,7 @@ for sample in tqdm(data):
70
  ).to("cuda")
71
 
72
  with torch.no_grad():
73
- generated_label = model(**inputs).logits.argmax()
74
 
75
  if generated_label == true_label:
76
  passes += 1
 
70
  ).to("cuda")
71
 
72
  with torch.no_grad():
73
+ generated_label = model(**inputs).logits.argmax().item()
74
 
75
  if generated_label == true_label:
76
  passes += 1