Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
udibr authored and fchollet committed Aug 3, 2017
1 parent fc52d9a commit 1cb81f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/backend/theano_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ def sparse_categorical_crossentropy(target, output, from_logits=False):
target = T.cast(T.flatten(target), 'int32')
target = T.extra_ops.to_one_hot(target, nb_class=output.shape[-1])
target = reshape(target, shape(output))
return categorical_crossentropy(output, target, from_logits)
return categorical_crossentropy(target, output, from_logits)


def binary_crossentropy(target, output, from_logits=False):
Expand Down

0 comments on commit 1cb81f2

Please sign in to comment.