fix unused parameters
This commit is contained in:
parent
57d6f6d366
commit
0c60f22197
|
@ -282,8 +282,7 @@ class FlatDiffusion(nn.Module):
|
|||
else:
|
||||
code_emb, cond_emb, mel_pred = self.timestep_independent(codes, conditioning_input, x.shape[-1], prenet_latent, True)
|
||||
if prenet_latent is None:
|
||||
unused_params.extend(list(self.latent_conditioner.parameters()))
|
||||
|
||||
unused_params.extend(list(self.latent_conditioner.parameters()) + [self.latent_fade])
|
||||
unused_params.append(self.unconditioned_embedding)
|
||||
|
||||
blk_emb = self.time_embed(timestep_embedding(timesteps, self.model_channels)) + cond_emb
|
||||
|
|
Loading…
Reference in New Issue
Block a user