Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba3cb31

Browse files
authored
Update losses.py
1 parent bda41af commit ba3cb31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inception/inception/slim/losses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def cross_entropy_loss(logits, one_hot_labels, label_smoothing=0,
163163
smooth_positives = 1.0 - label_smoothing
164164
smooth_negatives = label_smoothing / num_classes
165165
one_hot_labels = one_hot_labels * smooth_positives + smooth_negatives
166-
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits,
167-
one_hot_labels,
166+
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits=logits,
167+
labels=one_hot_labels,
168168
name='xentropy')
169169
weight = tf.convert_to_tensor(weight,
170170
dtype=logits.dtype.base_dtype,

0 commit comments

Comments
 (0)