Update README.md
Browse files
README.md
CHANGED
|
@@ -60,7 +60,7 @@ embedding_mean = torch.mean(last_hidden_state[0], dim=0)
|
|
| 60 |
print(embedding_mean.shape) # expect to be 768
|
| 61 |
|
| 62 |
# embedding with max pooling
|
| 63 |
-
embedding_max = torch.max(
|
| 64 |
print(embedding_max.shape) # expect to be 768
|
| 65 |
```
|
| 66 |
|
|
|
|
| 60 |
print(embedding_mean.shape) # expect to be 768
|
| 61 |
|
| 62 |
# embedding with max pooling
|
| 63 |
+
embedding_max = torch.max(last_hidden_state[0], dim=0)[0]
|
| 64 |
print(embedding_max.shape) # expect to be 768
|
| 65 |
```
|
| 66 |
|