tf.keras.backend.binary_crossentropy

View source on GitHub

Binary crossentropy between an output tensor and a target tensor.

Arguments
target A tensor with the same shape as output.
output A tensor.
from_logits Whether output is expected to be a logits tensor. By default, we consider that output encodes a probability distribution.
Returns
A tensor.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/backend/binary_crossentropy