Commit
·
89f4b49
1
Parent(s):
20f85db
Update README.md
Browse files
README.md
CHANGED
@@ -181,7 +181,7 @@ with torch.no_grad():
|
|
181 |
test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
|
182 |
|
183 |
# Calculate similarity scores
|
184 |
-
similarity_score = cos(
|
185 |
```
|
186 |
|
187 |
## 引用 Citation
|
|
|
181 |
test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
|
182 |
|
183 |
# Calculate similarity scores
|
184 |
+
similarity_score = cos(training_representation, test_representation)
|
185 |
```
|
186 |
|
187 |
## 引用 Citation
|