Update README.md
Browse files
README.md
CHANGED
@@ -26,6 +26,7 @@ import torch
|
|
26 |
|
27 |
sentence = "Let's have a [MASK]."
|
28 |
|
|
|
29 |
encoded_inputs = tokenizer([sentence], padding='longest')
|
30 |
input_ids = torch.tensor(encoded_inputs['input_ids'])
|
31 |
attention_mask = torch.tensor(encoded_inputs['attention_mask'])
|
|
|
26 |
|
27 |
sentence = "Let's have a [MASK]."
|
28 |
|
29 |
+
model.eval()
|
30 |
encoded_inputs = tokenizer([sentence], padding='longest')
|
31 |
input_ids = torch.tensor(encoded_inputs['input_ids'])
|
32 |
attention_mask = torch.tensor(encoded_inputs['attention_mask'])
|