Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Feb 7, 2025
1 parent a3471fc commit 16c21c4
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,15 @@ def __call__(
Use :func:`log_probs_wb_from_logits` to get log probs
(might be just log_softmax, but there are some other cases).
:return: logits, enc, enc_spatial_dim
:param source: shape {..., in_spatial_dim}, for example {batch_dim, in_spatial_dim}, audio samples, 16khz
:param in_spatial_dim: input spatial dim
:param collected_outputs: if provided, will write intermediate encoder outputs into it
:return: logits, enc, enc_spatial_dim.
logits shape: {..., enc_spatial_dim, self.wb_target_dim}.
enc shape: {..., enc_spatial_dim, self.encoder.out_dim}.
enc_spatial_dim: output spatial dim.
Use :func:`log_probs_wb_from_logits` on the logits to get log probs
(which is just :func:`rf.log_softmax` in the standard case).
"""
# log mel filterbank features
source, in_spatial_dim = rf.audio.log_mel_filterbank_from_raw(
Expand Down

0 comments on commit 16c21c4

Please sign in to comment.