leonardvorbeck
commited on
Commit
•
da0ab9e
1
Parent(s):
5d9d4cd
Update README.md
Browse files
README.md
CHANGED
@@ -18,10 +18,10 @@ license: apache-2.0
|
|
18 |
|
19 |
## Note : Model has not been initialized. If you want to use it without further finetuning, do a forward pass first to recalculate the normalized weights of the positional convolutional layer :
|
20 |
|
21 |
-
|
22 |
with torch.no_grad():
|
23 |
model_hf(torch.randn((1,300_000)))
|
24 |
-
|
25 |
|
26 |
[Facebook's Wav2Vec2](https://ai.facebook.com/blog/wav2vec-20-learning-the-structure-of-speech-from-raw-audio/)
|
27 |
|
|
|
18 |
|
19 |
## Note : Model has not been initialized. If you want to use it without further finetuning, do a forward pass first to recalculate the normalized weights of the positional convolutional layer :
|
20 |
|
21 |
+
```ipython
|
22 |
with torch.no_grad():
|
23 |
model_hf(torch.randn((1,300_000)))
|
24 |
+
```
|
25 |
|
26 |
[Facebook's Wav2Vec2](https://ai.facebook.com/blog/wav2vec-20-learning-the-structure-of-speech-from-raw-audio/)
|
27 |
|