You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/cpp/wav2vec2.cc
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,9 @@ namespace ctranslate2 {
86
86
Encodes the input features.
87
87
88
88
Arguments:
89
-
features: Mel spectogram of the audio, as a float array with shape
90
-
``[batch_size, 80, 3000]``.
89
+
features: hidden_states (up to v.4.3.1, https://github.com/OpenNMT/CTranslate2/blob/59c7dda738892df7a064aa360d0e45a4c3840b07/python/tests/test_transformers.py#L1028) or
90
+
raw audio, as a float array with shape (followed by VAD)
91
+
``[batch_size, 409, 1024]`` or ``[batch_size, 1, 131200]``
91
92
to_cpu: Copy the encoder output to the CPU before returning the value.
0 commit comments