# tensorplay.nn.functional.cross_entropy Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.cross_entropy.html ```python tensorplay.nn.functional.cross_entropy(input, target, weight=None, size_average=None, ignore_index=-100, reduce=None, reduction='mean', label_smoothing=0.0) ``` Compute the cross entropy loss between input logits and target. the class-probability path, positive label_smoothing blends the NLL with a smoothed uniform term, and otherwise this is nll_loss(log_softmax(input), target) with N-d support. See CrossEntropyLoss for details.