Skip to content

Commit

Permalink
Update losses.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwicke authored Jan 8, 2017
1 parent bda41af commit ba3cb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inception/inception/slim/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def cross_entropy_loss(logits, one_hot_labels, label_smoothing=0,
smooth_positives = 1.0 - label_smoothing
smooth_negatives = label_smoothing / num_classes
one_hot_labels = one_hot_labels * smooth_positives + smooth_negatives
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits,
one_hot_labels,
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=logits,
labels=one_hot_labels,
name='xentropy')
weight = tf.convert_to_tensor(weight,
dtype=logits.dtype.base_dtype,
Expand Down

0 comments on commit ba3cb31

Please sign in to comment.