tf.contrib.losses.hinge_loss(logits, target, scope=None)
Method that returns the loss tensor for hinge loss.
Args:
logits: The logits, a float tensor.
target: The ground truth output tensor. Its shape should match the shape of logits. The values of the tensor are expected to be 0.0 or 1.0.
scope: The scope for the operations performed in computing the loss.
Returns:
A Tensor of same shape as logits and target representing the loss values across the batch.
Raises:
ValueError: If the shape