提交 1b221a2c 编写于 作者: M Marianne Linhares Monteiro 提交者: GitHub

Removing duplicated tower_losses.append(tower_loss)

上级 2a5f2a95
......@@ -282,7 +282,6 @@ def _tower_fn(is_training, weight_decay, feature, label, tower_losses,
tower_loss = tf.losses.sparse_softmax_cross_entropy(
logits=logits, labels=label)
tower_loss = tf.reduce_mean(tower_loss)
tower_losses.append(tower_loss)
model_params = tf.trainable_variables()
tower_loss += weight_decay * tf.add_n(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册