Skip to content

Commit f9273ba

Browse files
committed
revert commit, use SyncBatchNormalization cause nan in FastSpeechPostnet
1 parent 4cbdd05 commit f9273ba

File tree

2 files changed

+1000
-1
lines changed

2 files changed

+1000
-1
lines changed

tensorflow_tts/models/fastspeech.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ def __init__(self, config, **kwargs):
517517
padding="same",
518518
name="conv_._{}".format(i),
519519
)
520-
batch_norm = tf.keras.layers.experimental.SyncBatchNormalization(
520+
batch_norm = tf.keras.layers.BatchNormalization(
521+
axis=-1,
521522
name="batch_norm_._{}".format(i)
522523
)
523524
self.conv_batch_norm.append((conv, batch_norm))

0 commit comments

Comments
 (0)