Update README.md
Browse files
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
|