Add line feed character in the doc of cross_entropy

del_some_in_makelist
Yibing Liu 7 years ago
parent c67c54a8e7
commit 4177e80545

@ -403,8 +403,8 @@ def cross_entropy(input, label, **kwargs):
A 2-D tensor with shape [N x 1], the cross entropy loss. A 2-D tensor with shape [N x 1], the cross entropy loss.
Raises: Raises:
`ValueError`: 1) If the 1st dimension of `input` and `label` are not equal; 2) If `ValueError`: 1) If the 1st dimension of `input` and `label` are not equal; 2) If \
`soft_label == true`, and the 2nd dimension of `input` and `label` are not `soft_label == true`, and the 2nd dimension of `input` and `label` are not \
equal; 3) If `soft_label == false`, and the 2nd dimension of `label` is not 1. equal; 3) If `soft_label == false`, and the 2nd dimension of `label` is not 1.
Examples: Examples:

Loading…
Cancel
Save