Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit cc43389

Browse files
albertzrsepassi
authored andcommitted
fix for shakeshake2_py with equal=True (#510)
1 parent f55462a commit cc43389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/layers/common_layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def shakeshake2_py(x, y, equal=False, individual=False):
7676
"""The shake-shake sum of 2 tensors, python version."""
7777
if equal:
7878
alpha = 0.5
79-
if individual:
79+
elif individual:
8080
alpha = tf.random_uniform(tf.get_shape(x)[:1])
8181
else:
8282
alpha = tf.random_uniform([])

0 commit comments

Comments
 (0)