Commit ·
22ccee9
1
Parent(s): 57c6335
Update README.md
Browse files
README.md
CHANGED
|
@@ -176,7 +176,7 @@ with torch.no_grad():
|
|
| 176 |
test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
|
| 177 |
|
| 178 |
# Calculate similarity scores
|
| 179 |
-
similarity_score = cos(
|
| 180 |
```
|
| 181 |
|
| 182 |
## 引用 Citation
|
|
|
|
| 176 |
test_representation = torch.mean(training_outputs.hidden_states[-1].squeeze(), dim=0)
|
| 177 |
|
| 178 |
# Calculate similarity scores
|
| 179 |
+
similarity_score = cos(training_representation, test_representation)
|
| 180 |
```
|
| 181 |
|
| 182 |
## 引用 Citation
|