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

Commit 2bc2189

Browse files
davidmraucopybara-github
authored andcommitted
Merge of PR #1627
PiperOrigin-RevId: 258823663
1 parent 41e35ef commit 2bc2189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/utils/expert_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ def local_moe(x,
10441044
noisy_gating=True,
10451045
noise_epsilon=1e-2)
10461046
importance = tf.reduce_sum(gates, 0)
1047-
loss = loss_coef * (cv_squared(importance) + cv_squared(load))
1047+
loss = (cv_squared(importance) + cv_squared(load))
10481048
else:
10491049
assert hparams.gating_type == "vq"
10501050
tf.logging.info("Using VQ gating")

0 commit comments

Comments
 (0)