hooman650 commited on
Commit
8f45b92
·
1 Parent(s): 58177cc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -29,5 +29,5 @@ model.to("cuda")
29
  pairs = ["pandas usually live in the jungles"]
30
  with torch.no_grad():
31
  inputs = tokenizer(pairs, padding=True, truncation=True, return_tensors='pt', max_length=512)
32
- logits = model(**inputs, return_dict=True).logits
33
  ```
 
29
  pairs = ["pandas usually live in the jungles"]
30
  with torch.no_grad():
31
  inputs = tokenizer(pairs, padding=True, truncation=True, return_tensors='pt', max_length=512)
32
+ logits = model(**inputs)[0][:, 0]
33
  ```