Update README.md
Browse files
README.md
CHANGED
|
@@ -32,10 +32,10 @@ encoded_input = tokenizer(prompt, return_tensors='pt')
|
|
| 32 |
outputs = model(**encoded_input)
|
| 33 |
|
| 34 |
token_embeddings = outputs.token_embeddings
|
| 35 |
-
sentence_embedding = outputs.sentence_embedding
|
| 36 |
|
| 37 |
-
print(f"token embeddings: {token_embeddings.shape}") # torch.Size([1, 7,
|
| 38 |
-
print(f"sentence_embedding: {sentence_embedding.shape}") # torch.Size([1,
|
| 39 |
|
| 40 |
```
|
| 41 |
|
|
|
|
| 32 |
outputs = model(**encoded_input)
|
| 33 |
|
| 34 |
token_embeddings = outputs.token_embeddings
|
| 35 |
+
sentence_embedding = outputs.sentence_embedding:
|
| 36 |
|
| 37 |
+
print(f"token embeddings: {token_embeddings.shape}") # torch.Size([1, 7, 1024])
|
| 38 |
+
print(f"sentence_embedding: {sentence_embedding.shape}") # torch.Size([1, 1024])
|
| 39 |
|
| 40 |
```
|
| 41 |
|