dragon.losses

Functions

ctc_loss(…) : Compute the ctc loss with batched labels.

l1_loss(…) : Compute the element-wise absolute value difference.

l2_loss(…) : Compute the element-wise squared error.

nll_loss(…) : Compute the negative likelihood loss with sparse labels.

sigmoid_cross_entropy(…) : Compute the sigmoid cross entropy with contiguous targets.

sigmoid_focal_loss(…) : Compute the sigmoid focal loss with sparse labels.

smooth_l1_loss(…) : Compute the element-wise error transited from L1 and L2. [Girshick, 2015].

softmax_cross_entropy(…) : Compute the softmax cross entropy with contiguous targets.

sparse_softmax_cross_entropy(…) : Compute the softmax cross entropy with sparse labels.