CrossEntropyLoss

class CrossEntropyLoss @JvmOverloads constructor(dim: Int = -1) : Loss(source)

Constructors

Link copied to clipboard
constructor(dim: Int = -1)

Functions

Link copied to clipboard
open override fun <T : DType, V> forward(preds: Tensor<T, V>, targets: Tensor<out DType, *>, ctx: ExecutionContext, reduction: Reduction): Tensor<T, V>