Skip to content

Commit 324f6d6

Browse files
author
yunchaoyang1 user
committed
Fix Sphinx docstring error in Gemma4ConformerBlock
The `*0.5` in the forward flow docstring was parsed as RST inline emphasis. Adding `::` makes the block a literal code block.
1 parent 8cfaa0d commit 324f6d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/fairseq2/models/gemma4/audio/conformer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ def forward(
321321
class Gemma4ConformerBlock(TransformerEncoderLayer):
322322
"""Gemma4 conformer block.
323323
324-
Forward flow:
324+
Forward flow::
325+
325326
FFN1: clamp -> pre_norm -> ffn -> clamp -> post_norm -> *0.5 -> residual
326327
Attn: clamp -> pre_norm -> self_attn -> clamp -> post_norm -> residual
327328
Conv: (mask) -> pre_norm -> conv -> residual

0 commit comments

Comments
 (0)