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

Commit

Permalink
fix for shakeshake2_py with equal=True (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz authored and rsepassi committed Jan 12, 2018
1 parent f55462a commit cc43389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensor2tensor/layers/common_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def shakeshake2_py(x, y, equal=False, individual=False):
"""The shake-shake sum of 2 tensors, python version."""
if equal:
alpha = 0.5
if individual:
elif individual:
alpha = tf.random_uniform(tf.get_shape(x)[:1])
else:
alpha = tf.random_uniform([])
Expand Down

0 comments on commit cc43389

Please sign in to comment.