nn.loss #
fn loss_loss #
fn loss_loss[T](loss types.Loss, input &autograd.Variable[T], target &vtl.Tensor[T]) !&autograd.Variable[T]
fn mse_loss #
fn mse_loss[T]() &MSELoss[T]
fn sigmoid_cross_entropy_loss #
fn sigmoid_cross_entropy_loss[T]() &SigmoidCrossEntropyLoss[T]
fn softmax_cross_entropy_loss #
fn softmax_cross_entropy_loss[T]() &SoftmaxCrossEntropyLoss[T]
fn (MSELoss[T]) loss #
fn (_ &MSELoss[T]) loss(input &autograd.Variable[T], target &vtl.Tensor[T]) !&autograd.Variable[T]
fn (SigmoidCrossEntropyLoss[T]) loss #
fn (_ &SigmoidCrossEntropyLoss[T]) loss(input &autograd.Variable[T], target &vtl.Tensor[T]) !&autograd.Variable[T]
fn (SoftmaxCrossEntropyLoss[T]) loss #
fn (_ &SoftmaxCrossEntropyLoss[T]) loss(input &autograd.Variable[T], target &vtl.Tensor[T]) !&autograd.Variable[T]
struct MSELoss #
struct MSELoss[T] {}
MSELoss
struct SigmoidCrossEntropyLoss #
struct SigmoidCrossEntropyLoss[T] {}
SigmoidCrossEntropyLoss
struct SoftmaxCrossEntropyLoss #
struct SoftmaxCrossEntropyLoss[T] {}
SoftmaxCrossEntropyLoss