Commit
·
a4b21d1
1
Parent(s):
ef15aed
replaced max with avg in comment
Browse filesLooks like a typo, this does not look like max pooling.
README.md
CHANGED
|
@@ -64,7 +64,7 @@ encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tenso
|
|
| 64 |
with torch.no_grad():
|
| 65 |
model_output = model(**encoded_input)
|
| 66 |
|
| 67 |
-
# Perform pooling. In this case,
|
| 68 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
| 69 |
|
| 70 |
print("Sentence embeddings:")
|
|
|
|
| 64 |
with torch.no_grad():
|
| 65 |
model_output = model(**encoded_input)
|
| 66 |
|
| 67 |
+
# Perform pooling. In this case, average pooling
|
| 68 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
| 69 |
|
| 70 |
print("Sentence embeddings:")
|