Skip to content

Commit

Permalink
add unit tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Xuesong Yang <[email protected]>
  • Loading branch information
XuesongYang committed Jan 18, 2025
1 parent 1aad73e commit d6b05ac
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 0 deletions.
1 change: 1 addition & 0 deletions nemo/collections/tts/modules/transformer_2412.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ def __init__(
"""
if has_xattn and (xa_d_memory is None or xa_n_heads is None):
raise ValueError("It requires that `xa_d_memory` and `xa_n_heads` are specified when `has_xattn` is True!")

super().__init__()
self.dropout = torch.nn.Dropout(p_dropout)
self.p_dropout_out = p_dropout_out
Expand Down
Loading

0 comments on commit d6b05ac

Please sign in to comment.