Skip to content

Commit ae3d3d3

Browse files
authored
Merge branch 'master' into windowsfix
2 parents 44f7267 + 75cbb36 commit ae3d3d3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/fastspeech2_libritts/train_fastspeech2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def generate_and_save_intermediate_result(self, batch):
168168
os.makedirs(dirname)
169169

170170
for idx, (mel_gt, mel_before, mel_after) in enumerate(
171-
zip(mel_gts, mels_before, mels_after), 1
171+
zip(mel_gts, mels_before, mels_after), 0
172172
):
173173

174174

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# TODO(@dathudeptrai) update requirement if needed.
2323
requirements = {
2424
"install": [
25-
"tensorflow-gpu>=2.3.0",
25+
"tensorflow-gpu>=2.3.1",
2626
"tensorflow-addons>=0.10.0",
2727
"setuptools>=38.5.1",
2828
"librosa>=0.7.0",

tensorflow_tts/models/fastspeech.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def gelu_new(x):
4545

4646
def swish(x):
4747
"""Swish activation function."""
48-
return x * tf.sigmoid(x)
48+
return tf.nn.swish(x)
4949

5050

5151
def mish(x):

tensorflow_tts/models/tacotron2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def gelu_new(x):
5252

5353
def swish(x):
5454
"""Swish activation function."""
55-
return x * tf.sigmoid(x)
55+
return tf.nn.swish(x)
5656

5757

5858
def mish(x):

0 commit comments

Comments
 (0)