idea-teacher commited on
Commit
b9ba9a9
•
1 Parent(s): 5c205bf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -184,7 +184,7 @@ with torch.no_grad():
184
  test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
185
 
186
  # Calculate similarity scores
187
- similarity_score = cos(training_input, test_input)
188
  ```
189
 
190
  ## 引用 Citation
 
184
  test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
185
 
186
  # Calculate similarity scores
187
+ similarity_score = cos(training_representation, test_representation)
188
  ```
189
 
190
  ## 引用 Citation