mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Update dit.py
This commit is contained in:
parent
59cba78889
commit
d679567814
@ -92,11 +92,11 @@ class InputEmbedding(nn.Module):
|
||||
|
||||
def forward(
|
||||
self,
|
||||
x: float["b n d"],
|
||||
cond: float["b n d"],
|
||||
text_embed: float["b n d"],
|
||||
x: float["b n d"], # noqa: F722
|
||||
cond: float["b n d"], # noqa: F722
|
||||
text_embed: float["b n d"], # noqa: F722
|
||||
drop_audio_cond=False,
|
||||
): # noqa: F722
|
||||
):
|
||||
if drop_audio_cond: # cfg for cond audio
|
||||
cond = torch.zeros_like(cond)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user