Skip to content

Commit

Permalink
polished mle_losses
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaren committed Apr 27, 2019
1 parent b56d4f4 commit dda394e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions texar/losses/mle_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"binary_sigmoid_cross_entropy_with_clas"
]


def sequence_softmax_cross_entropy(labels,
logits,
sequence_length,
Expand Down Expand Up @@ -116,6 +117,7 @@ def sequence_softmax_cross_entropy(labels,

return losses


def sequence_sparse_softmax_cross_entropy(labels,
logits,
sequence_length,
Expand Down Expand Up @@ -205,6 +207,7 @@ def sequence_sparse_softmax_cross_entropy(labels,

return losses


def sequence_sigmoid_cross_entropy(labels,
logits,
sequence_length,
Expand Down Expand Up @@ -303,6 +306,7 @@ class dimension. Must not set `average_across_classes`

return losses


def binary_sigmoid_cross_entropy(pos_logits=None,
neg_logits=None,
average_across_batch=True,
Expand Down Expand Up @@ -381,6 +385,7 @@ class dimension. Must not set `average_across_classes`
else:
return loss


def binary_sigmoid_cross_entropy_with_clas(clas_fn,
pos_inputs=None,
neg_inputs=None,
Expand Down

0 comments on commit dda394e

Please sign in to comment.