Fix raise
This commit is contained in:
parent
36e8894f5c
commit
f962a9d744
@ -165,6 +165,8 @@ class PrenormResidual(nn.Module):
|
||||
elif norm_type == "adaln":
|
||||
assert n_levels is not None
|
||||
self.norm = AdaLN(d_model, n_levels)
|
||||
else:
|
||||
raise NotImplementedError(norm_type)
|
||||
self.dropout = nn.Dropout(p_dropout)
|
||||
|
||||
def forward(self, x, m, l):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user