Skip to content

Commit 9e068c4

Browse files
pplantingaRogier van DalenTParcollet
authored
Fix input normalization and global normalization variance calculation (#2835)
Co-authored-by: Rogier van Dalen <r.vandalen@samsung.com> Co-authored-by: Parcollet Titouan <parcollet.titouan@gmail.com>
1 parent 256d25f commit 9e068c4

4 files changed

Lines changed: 665 additions & 329 deletions

File tree

speechbrain/nnet/autoencoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def __init__(
389389
self.decoder = decoder
390390
self.latent_padding = latent_padding
391391
if norm is None:
392-
norm = GlobalNorm()
392+
norm = GlobalNorm(length_dim=len_dim)
393393
self.norm = norm
394394
self.len_dim = len_dim
395395
self.mask_out = mask_out

0 commit comments

Comments
 (0)