idea-teacher commited on
Commit
c8d57e5
1 Parent(s): f7aef8d

Update README.md

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