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

Commit

Permalink
Merge of PR #1627
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 258823663
  • Loading branch information
davidmrau authored and copybara-github committed Jul 18, 2019
1 parent 41e35ef commit 2bc2189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensor2tensor/utils/expert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def local_moe(x,
noisy_gating=True,
noise_epsilon=1e-2)
importance = tf.reduce_sum(gates, 0)
loss = loss_coef * (cv_squared(importance) + cv_squared(load))
loss = (cv_squared(importance) + cv_squared(load))
else:
assert hparams.gating_type == "vq"
tf.logging.info("Using VQ gating")
Expand Down

0 comments on commit 2bc2189

Please # to comment.