Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,6 @@ references = ["hello world", "hello world"]
|
|
| 19 |
candidates = ["hi universe", "bye world"]
|
| 20 |
|
| 21 |
with torch.no_grad():
|
| 22 |
-
scores = model(**tokenizer(references, candidates, return_tensors='pt'))[0]
|
| 23 |
-
|
| 24 |
-
print(scores) # tensor([[0.9877], [0.0475]])
|
| 25 |
```
|
|
|
|
| 19 |
candidates = ["hi universe", "bye world"]
|
| 20 |
|
| 21 |
with torch.no_grad():
|
| 22 |
+
scores = model(**tokenizer(references, candidates, return_tensors='pt'))[0].squeeze()
|
| 23 |
+
print(scores) # tensor([0.9877, 0.0475])
|
|
|
|
| 24 |
```
|