Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -71,8 +71,7 @@ def _get_audio_output_lengths_for_tower(
|
||||
merge_factor: int,
|
||||
conv_params: list[tuple[int, int, int]],
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Calculate the output lengths after audio processing.
|
||||
"""Calculate the output lengths after audio processing.
|
||||
|
||||
The output length accounts for:
|
||||
1. Convolution layers (downsampling)
|
||||
@@ -86,6 +85,7 @@ def _get_audio_output_lengths_for_tower(
|
||||
|
||||
Returns:
|
||||
Output lengths after all processing [batch_size]
|
||||
|
||||
"""
|
||||
# First, calculate the output length after convolutions
|
||||
if hasattr(audio_tower, "_get_feat_extract_output_lengths"):
|
||||
|
||||
Reference in New Issue
Block a user