AlexandrosChariton commited on
Commit
a4b21d1
1 Parent(s): ef15aed

replaced max with avg in comment

Browse files

Looks like a typo, this does not look like max pooling.

Files changed (1) hide show
  1. README.md +1 -1
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, max pooling.
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:")