bert
jburtoft commited on
Commit
292e896
1 Parent(s): a4c53de

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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, 384])
38
- print(f"sentence_embedding: {sentence_embedding.shape}") # torch.Size([1, 384])
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